You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ronen Yaari <Ro...@panayainc.com> on 2006/07/03 12:17:05 UTC
Class Loader problem - maven 2
All,
I have 6 projects that each one has a POM file. I have a master POM file
that I run it in order to build/test/package my projects.
I use maven 2.
When my test runs I get the error below:
I guess that this happen because there are 2 different project that
their test load the same DLL from 2 different classloaders.
Does maven use different classloader for each project? (and does not
release them at the end).
How can I solve the problem below?
java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not
load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc
[Native Library C:\WINDOWS\system32\sapjcorfc.dll already loaded in
another classloader]. java.library.path [C:\Program
Files\Java\jdk1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\s
ystem32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
Files\Java\jdk1.5.0_06\bin;D:\Program Files\maven-2.0.4\bin]
at com.sap.mw.jco.JCO.<clinit>(JCO.java:738)
at
com.panaya.sap.utils.SapUtils.connectSAP(SapUtils.java:1140)
at com.panaya.sap.utils.SapUtils.<init>(SapUtils.java:175)
at com.panaya.sap.utils.SapUtils.<clinit>(SapUtils.java:149)
at
com.panaya.explorer.ui.controls.errormessages.ErrorMessagesPGraphTest.te
stValidGraph(ErrorMessagesPGraphTest.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)
Thanks,
Ronen
AW: Class Loader problem - maven 2
Posted by "Kowalkowski, Markus" <ma...@siemens.com>.
Hi Ronen,
your system is missing some native libraries from SAP. You have to install the JCO or SAP GUI software, to get all that libraries.
Markus
> -----Ursprüngliche Nachricht-----
> Von: Ronen Yaari [mailto:Ronen@panayainc.com]
> Gesendet: Montag, 3. Juli 2006 12:17
> An: users@maven.apache.org
> Betreff: Class Loader problem - maven 2
>
>
>
>
> All,
>
>
>
> I have 6 projects that each one has a POM file. I have a
> master POM file
> that I run it in order to build/test/package my projects.
>
> I use maven 2.
>
> When my test runs I get the error below:
>
>
>
> I guess that this happen because there are 2 different project that
> their test load the same DLL from 2 different classloaders.
>
> Does maven use different classloader for each project? (and does not
> release them at the end).
>
> How can I solve the problem below?
>
>
>
> java.lang.ExceptionInInitializerError: JCO.classInitialize():
> Could not
> load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
>
> JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc
> [Native Library C:\WINDOWS\system32\sapjcorfc.dll already loaded in
> another classloader]. java.library.path [C:\Program
> Files\Java\jdk1.5.0_06\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:
> \WINDOWS\s
> ystem32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
> Files\Java\jdk1.5.0_06\bin;D:\Program Files\maven-2.0.4\bin]
>
> at com.sap.mw.jco.JCO.<clinit>(JCO.java:738)
>
> at
> com.panaya.sap.utils.SapUtils.connectSAP(SapUtils.java:1140)
>
> at com.panaya.sap.utils.SapUtils.<init>(SapUtils.java:175)
>
> at
> com.panaya.sap.utils.SapUtils.<clinit>(SapUtils.java:149)
>
> at
> com.panaya.explorer.ui.controls.errormessages.ErrorMessagesPGr
> aphTest.te
> stValidGraph(ErrorMessagesPGraphTest.java:54)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
> orImpl.jav
> a:39)
>
>
>
>
>
>
>
> Thanks,
>
> Ronen
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org