搜索了一下这个报错,一般是缺包或没有在applicationcontext.xml文件头声明,但修改过后依旧报这个错,麻烦大神帮看一下。
pom.xml的相关依赖如下:
org.apache.cxf
cxf-rt-frontend-jaxws
3.1.9
org.apache.cxf
cxf-rt-bindings-soap
3.1.7
org.apache.cxf
cxf-rt-transports-http
3.1.9
org.apache.cxf
cxf-rt-rs-extension-providers
3.1.7
spring配置文件的文件头如下:
<?xml version="1.0" encoding="UTF-8"?>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxrs="http://cxf.apache.org/jaxrs"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xmlns:cxf="http://cxf.apache.org/core"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:util="http://www.springframework.org/schema/util"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://cxf.apache.org/jaxrs http://cxf.apache.org/schemas/jaxrs.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util-3.0.xsd
">
webservice配置如下:
class="com.csair.cims.copdisplay.sms.webservice.impl.SmsWSImpl">
jaxws:serviceBeans
/jaxws:serviceBeans
jaxws:providers
class="com.csair.cims.webserice.rest.exception.InvokeFaultExceptionMapper" />
/jaxws:providers
jaxws:inInterceptors
class="com.csair.cims.webserice.rest.authentication.AuthenticationInterceptor">
/jaxws:inInterceptors
jaxws:outInterceptors
/jaxws:outInterceptors
/jaxws:endpoint
报错信息摘录如下:
lineNumber: 24; columnNumber: 84; cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element 'jaxws:endpoint'.
在MAVEN库中确认相关依赖已经下载下来了,能加的声明都加了,实在不知道为什么还会报这个错。