我正在尝试将 Spring Web 应用程序从 WebSphere 应用程序服务器 7 迁移到 WebSphere liberty profile 8.5。我在应用程序启动时收到“java.lang.NoClassDefFoundError: commonj/work/WorkException”。我使用功能管理器配置了数据源和公共库,但找不到配置 WorkManager 的方法。
有人可以告诉我如何实现这一目标吗?
这是异常日志:
java.lang.NoClassDefFoundError: commonj/work/WorkException
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:162)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:76)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:990)
... 29 more
Caused by: java.lang.NoClassDefFoundError: commonj/work/WorkException
at com.foo.mytravel.business.TravelBusinessDelegate.<init>(TravelBusinessDelegate.java:55)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:147)
... 31 more