Web services Tomcat没有';我不能启动我的web服务

Web services Tomcat没有';我不能启动我的web服务,web-services,tomcat,jakarta-ee,tomcat7,cxf,Web Services,Tomcat,Jakarta Ee,Tomcat7,Cxf,我使用[Spring、ApacheCXF、Tomcat、intellij Idea]创建了一个web服务 在我配置tomcat并运行它之后。我明白了 我的web服务: web.xml: Spring appContext: 您似乎缺少针对CXF标记的xsd的正确配置。您的配置文件中应该有以下一对: http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd 所以,在组合中,您将 <xmlns:xsi="http:

我使用[Spring、ApacheCXF、Tomcat、intellij Idea]创建了一个web服务 在我配置tomcat并运行它之后。我明白了 我的web服务: web.xml: Spring appContext:

您似乎缺少针对CXF标记的xsd的正确配置。您的配置文件中应该有以下一对:

http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
所以,在组合中,您将

<xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws" 
  xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">


另外,请确保您对CXF前端标记具有必要的依赖关系,特别是:CXF-rt-frontend-jaxws.jar

您能发布您的tomcat日志错误吗?我解决了我的log4j问题,现在真正的异常是:嵌套异常是org.xml.sax.SAXParseException:cvc复杂类型。2.4.c:匹配的通配符是严格的,但是在我的SpringAppContext中找不到问题所在元素的声明,谢谢@kolossus