Hi,
I'm having a problem running two
j2ee applications on Websphere 5.1.2 application server. Both of the applications use the Coroutine4java.jar and the corojdk.dll. The problem is that which ever one loads second gets these errors :
Either
Caused by: java.lang.UnsatisfiedLinkError: Native Library C:\WINDOWS\system32\corojdk11.dll already loaded in another classloader
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:2111)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2025)
at java.lang.Runtime.loadLibrary0(Runtime.java:824)
at java.lang.System.loadLibrary(System.java:908)
at com.neva.Coroutine.<clinit>(Coroutine.java:213)
at com.neva.COMClassObject.CoInitialize(COMClassObject.java:153)
at com.xyenterprise.PCMUtils.PCMAPIMgr.<init>(PCMAPIMgr.java:129)
Or this :
[9/8/06 17:27:31:054 EDT] 18962a5f DispatchActio E org.apache.struts.actions.DispatchAction TRAS0014I: The following exception was logged java.lang.reflect.InvocationTargetException
java.lang.NoClassDefFoundError: com/neva/Coroutine
at com.neva.COMClassObject.CoInitialize(COMClassObject.java:153)
at com.xyenterprise.PCMUtils.PCMAPIMgr.<init>(PCMAPIMgr.java:129)
Which ever application loads first runs fine. There seems to be some kind of conflict in how the class loaded is using the dll file and or the jar file.
I have the jars all defined in a shared library and the .dll file is located in the Windows\system32 directory.
Does anybody have a suggestion on how to fix this?
Thanks
Chris