Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/399.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何在webSphere liberty profile server 8.5中配置spring commonj workManager_Java_Spring_Websphere Liberty_Workmanagers_Commonj - Fatal编程技术网

Java 如何在webSphere liberty profile server 8.5中配置spring commonj workManager

Java 如何在webSphere liberty profile server 8.5中配置spring commonj workManager,java,spring,websphere-liberty,workmanagers,commonj,Java,Spring,Websphere Liberty,Workmanagers,Commonj,我正在尝试将SpringWeb应用程序从WebSphereApplicationServer7迁移到WebSphereLiberty概要文件8.5。我在应用程序启动时得到“java.lang.NoClassDefFoundError:commonj/work/WorkException”。我使用FeatureManager配置了数据源和公共库,但找不到配置WorkManager的方法 有人能告诉我如何做到这一点吗 以下是异常日志: java.lang.NoClassDefFoundError:

我正在尝试将SpringWeb应用程序从WebSphereApplicationServer7迁移到WebSphereLiberty概要文件8.5。我在应用程序启动时得到“java.lang.NoClassDefFoundError:commonj/work/WorkException”。我使用FeatureManager配置了数据源和公共库,但找不到配置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
java.lang.NoClassDefFoundError:commonj/work/WorkException
位于org.springframework.beans.BeanUtils.InstanceClass(BeanUtils.java:162)
位于org.springframework.beans.factory.support.SimpleInstallationStrategy.instantiate(SimpleInstallationStrategy.java:76)
位于org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.InstanceBean(AbstractAutowireCapableBeanFactory.java:990)
... 还有29个
原因:java.lang.NoClassDefFoundError:commonj/work/WorkException
在com.foo.mytravel.business.TravelBusinessDelegate.(TravelBusinessDelegate.java:55)
位于sun.reflect.NativeConstructorAccessorImpl.newInstance0(本机方法)
位于sun.reflect.NativeConstructorAccessorImpl.newInstance(未知源)
位于sun.reflect.delegatingConstructor或AccessorImpl.newInstance(未知源)
位于java.lang.reflect.Constructor.newInstance(未知源)
位于org.springframework.beans.BeanUtils.InstanceClass(BeanUtils.java:147)
... 还有31个

Liberty配置文件不支持commonj或asynchbeans编程模型。相反,它支持JSR236编程模型和。你需要更新你的申请代码。

我也有同样的问题。通过将commonj-twm.jar添加到应用程序库中进行修复。

感谢您的回复。我是否可以将commonj workmanager作为外部库添加到服务器并使其工作?我无法更改应用程序代码,因为它是跨不同模块共享的通用组件。你能提出一些你知道的解决办法吗?我不知道有什么现成的解决办法。理论上,您可能会编写一个使用JSR236接口的commonj实现。@user3767688 commonj-有一个独立的实现。我自己也没用过。另请参阅