我使用 [Spring、Apache Cxf、Tomcat、intellij Idea] 创建了一个网络服务 在我配置tomcat并运行它之后。我明白了 我的网络服务: 网站.xml: Spring 应用上下文:
最佳答案
您似乎缺少用于 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
关于web-services - Tomcat 没有启动我的网络服务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25102205/