Tomcat 无法访问 Spring3 WAR 文件中的 JAR

发布于 2024-10-21 14:59:29 字数 1531 浏览 2 评论 0原文

我正在使用运行 tc server v6 的 Spring 3.0、Spring-WS、SpringSource 工具套件开发 SOAP Web 服务。当我在服务器上运行应用程序时,我在 SpringSource 工具套件中收到以下异常。

type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: 
        Wrapper cannot find servlet class org.springframework.ws.transport.http.MessageDispatcherServlet or a class it depends on 
    at com.springsource.insight.collection.tcserver.request.HttpRequestOperationCollectionValve.invoke(HttpRequestOperationCollectionValve.java:60)      
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)      
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)      
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)      
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)     
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:379)      
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)      
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)      
    at java.lang.Thread.run(Thread.java:619)"

org.springframework.ws.transport.http.MessageDispatcherServlet 类包含在我的类路径上的 spring-ws-core-2.0.0.RELEASE.jar 中。我已经验证 .JAR 包含在 WAR 文件中,但仍然出现上述异常。

在独立安装的 Tomcat 和随 STS 分发的嵌入式 TC Lite 服务器中都会出现此错误。

I am developing a SOAP web service using Spring 3.0, Spring-WS, SpringSource toolsuite running tc server v6. When I run the application on the server, I get the following exception in SpringSource toolsuite.

type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception javax.servlet.ServletException: 
        Wrapper cannot find servlet class org.springframework.ws.transport.http.MessageDispatcherServlet or a class it depends on 
    at com.springsource.insight.collection.tcserver.request.HttpRequestOperationCollectionValve.invoke(HttpRequestOperationCollectionValve.java:60)      
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)      
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)      
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)      
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)     
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:379)      
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)      
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)      
    at java.lang.Thread.run(Thread.java:619)"

The org.springframework.ws.transport.http.MessageDispatcherServlet class is contained within the spring-ws-core-2.0.0.RELEASE.jar which is on my classpath. I have verified that the .JAR is contained within the WAR file but still getting the above exception.

This error occurs in both a stand-alone installation of Tomcat, and the embedded TC Lite server distributed with the STS.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

把回忆走一遍 2024-10-28 14:59:29

您可能缺少一些其他依赖 jar。

Wrapper cannot find servlet class org.springframework.ws.transport.http.MessageDispatcherServlet or a "class it depends on"

依赖,检查 ws-core 的 pom 依赖关系。尝试修改 ws-core 的 pom 范围进行编译(如果是这样的话,从提供的)

You are probably missing some other dependent jar.

Wrapper cannot find servlet class org.springframework.ws.transport.http.MessageDispatcherServlet or a "class it depends on"

The depends on, check the pom dependencies for the ws-core. Try modifying the pom scope for the ws-core to compile (from provided if it is so)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文