【问题标题】:NoClassDefFoundError for com.ibm.wsspi.uow.UOWManagercom.ibm.wsspi.uow.UOWManager 的 NoClassDefFoundError
【发布时间】: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


【解决方案1】:

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

【讨论】:

    【解决方案2】:

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

    【讨论】:

      猜你喜欢
      • 2016-06-05
      • 2021-08-05
      • 2017-11-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-19
      相关资源
      最近更新 更多