com.ibm.wsspi.uow.UOWManager的NoClassDefFoundError

时间:2014-09-08 17:51:37

标签: java spring maven noclassdeffounderror websphere-6.1

我的计算机上部署了一个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

2 个答案:

答案 0 :(得分:0)

查看此页Using Spring and Hibernate with WebSphere Application Server 尝试使用以下条目作为事务管理器而不是UOWManager。

答案 1 :(得分:0)

解决了问题......由于文件夹上的权限问题,Websphere没有完全更新,但声称已更新。我将其重新安装到另一个文件夹并成功运行更新。