【发布时间】:2014-09-08 17:51:36
【问题描述】:
我在我的机器上部署了一个 Websphere 服务器,我要回来了:
java.lang.NoClassDefFoundError: com.ibm.wsspi.uow.UOWManager
每当我查看在 Websphere 上运行的应用程序的任何页面时都会发生这种情况。用 maven 编译没有问题,只有在运行时我才有这个问题。我做了一些研究,发现这个特殊的异常指向类路径的问题。这个类不应该随 Websphere 一起提供吗?我只需要将类路径指向它吗?
堆栈跟踪的前两行:
[9/8/14 16:36:46:278 GMT] 0000007c SpringServlet I Creating new child context from /WEB-INF/spring/appServlet/servlet-context.xml
[9/8/14 16:36:46:287 GMT] 0000007c ServletWrappe E SRVE0100E: Did not realize init() exception thrown by servlet service: java.lang.NoClassDefFoundError: com.ibm.wsspi.uow.UOWManager
【问题讨论】:
-
你用的是哪个版本的spring和websphere?
-
Websphere 6.1.0.41 和 Spring 3.1.2
-
试试这个solution
标签: java spring maven noclassdeffounderror websphere-6.1