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 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?