web-services - Tomcat 没有启动我的网络服务

标签 web-services tomcat jakarta-ee tomcat7 cxf

我使用 [Spring、Apache Cxf、Tomcat、intellij Idea] 创建了一个网络服务 在我配置tomcat并运行它之后。我明白了 Output log on console 我的网络服务: My web service class 网站.xml: web.xml Spring 应用上下文: Spring-applicationContext

最佳答案

您似乎缺少用于 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/

相关文章:

android - 如何将 JSON 响应转换为字符串并显示在屏幕上?

java - 如何在 Tomcat 8 上增加 JVM 内存

jsp lang参数在struts 1.1中自动存入cookie

jakarta-ee - EJB 中的类实例化

java - 使用 Eclipse Helios 进行 Web 项目

web-services - 如何在 Swift 中调用网络服务?

web-services - 向最终用户计量和计费 azure 成本

eclipse - Tomcat 4.1 无法在 eclipse 中启动,但可以通过终端启动

apache - 从用户启动 Tomcat

ios - Restkit 和 SSL 证书错误