the latest release of sure plugin sets the default value to forkMode is "once"
http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html try with -U to pickup the latest one if you have not done so hope this helps -D On 7/3/06, Ronen Yaari <[EMAIL PROTECTED]> wrote:
Maven does not spin new jvm by default only after I added: <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <forkMode>pertest</forkMode> </configuration> For my master POM it does spin new JVM and it solved the problem. -----Original Message----- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Monday, July 03, 2006 5:18 PM To: Maven Users List Subject: Re: Class Loader problem - maven 2 maven 2 spins new jvm per project to run test by default, how could this happens? what version of surefire plugin do you use? make sure to setup your PATH environment within surefire configuration too. java.library.path does not always work -D On 7/3/06, Ronen Yaari <[EMAIL PROTECTED]> wrote: > > > Markus, > > The Dll is not missing, please read the exception carefully, it state that > it cannot load it since another classloader already loaded it. > When I run the test (mvn test) from a specific project it runs fine, just > when I run my master POM file (that run all my projects one by one) I get > the error below. > > Thanks, > Ronen > > -----Original Message----- > From: Kowalkowski, Markus [mailto:[EMAIL PROTECTED] > Sent: Monday, July 03, 2006 3:19 PM > To: Maven Users List > Subject: AW: Class Loader problem - maven 2 > > 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:[EMAIL PROTECTED] > > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]