1

对于正在部署到 WebSphere 7.0 环境的应用程序,我收到以下错误。

servlet       E com.ibm.ws.webcontainer.servlet.ServletWrapper service SRVE0068E: Uncaught exception created in one of the service methods of the servlet action in application foo. Exception created : java.lang.NoClassDefFoundError: com.sun.jersey.api.client.filter.ClientFilter
    at java.lang.J9VMInternals.verifyImpl(Native Method)
    at java.lang.J9VMInternals.verify(J9VMInternals.java:72)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)

现在,我目前让这个应用程序在另一种 WebSphere 7.0 环境中工作,但我无法让它在我需要的环境中工作。

我已经设置了 webcontainer 自定义属性。名称:com.ibm.ws.webcontainer.invokeFiltersCompatibility 值:true

我已将球衣罐(jersey-bundle-1.10.jar)添加到类路径中。我已将 jar 添加到 WebServer 上的 lib 目录中。

出于某种原因,它无法解析此类,我知道它可以在另一个环境中工作。是否有一些技巧可以让 RESTful 客户端在以前从未运行过 Jersey 的服务器上工作。

4

0 回答 0