qq_33171284 2017-04-25 02:55 采纳率: 0%
浏览 3157

发布webService,不缺依赖和声明但报错“没有声明 'jaxws:endpoint'”

搜索了一下这个报错,一般是缺包或没有在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库中确认相关依赖已经下载下来了,能加的声明都加了,实在不知道为什么还会报这个错。

  • 写回答

1条回答

  • threenewbee 2017-04-25 03:05
    关注
    评论

报告相同问题?

悬赏问题

  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名
  • ¥65 汇编语言除法溢出问题