Tomcat 球衣 SPI 错误
我在 Tomcat 5.5 上部署了 Jersey (1.4) 应用程序,当 Tomcat 启动时,我可以看到它加载所有资源和提供程序。但是一旦我访问任何网络服务,我就会收到这个奇怪的错误
java.lang.NoClassDefFoundError:com/sun/jersey/spi/inject/Errors$Closure
我花了很长时间找出发生了什么,但没有运气。
我使用 mvn eclipse:eclipse -Dwtpversion=1.5 将 Maven 项目转换为 Eclipse 项目。
有什么想法吗?
I have a Jersey (1.4) app deployed on Tomcat 5.5, when Tomcat starts up I can see its loading all the resources and providers. But as soon as I access any of the web services I get this strange error
java.lang.NoClassDefFoundError: com/sun/jersey/spi/inject/Errors$Closure
I spent good long time finding out what's going on but had no luck.
I converted maven project into eclipse project using mvn eclipse:eclipse -Dwtpversion=1.5.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当我的 maven
pom.xml
中存在与 nuxeo 相关的依赖项时,我收到此错误,该依赖项本身依赖于球衣库,但在早期版本(1.1.1)中。具体5)。我将 pom 更改为依赖于最新版本的 jersey-core、jersey-server 和 jersey-client 依赖项并运行
mvn eclipse:eclipse
,问题就消失了!这里面一定有阶级冲突。
I got this error when I also had a nuxeo related dependancy in my maven
pom.xml
, which itself has a dependency on jersey libraries, but at an earlier version (1.1.5 to be specific).I changed the pom to depend on the latest version of jersey-core, jersey-server and jersey-client dependencies and ran
mvn eclipse:eclipse
and the problem went away!There must have been a class clash involved.