[jira] Commented: (SUREFIRE-117) ability to add dependency to jvm's classpath rather in surefirebooter classloader
[ http://jira.codehaus.org/browse/SUREFIRE-117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103622 ] Nick Bower commented on SUREFIRE-117: - this will be more helpful perhaps [DEBUG] C:\Documents and Settings\nick\.m2\repository\commons-pool\commons-poo l\1.3\commons-pool-1.3.jar [DEBUG] Setting system property [localRepository]=[C:/Documents and Settings/nic k/.m2/repository] [DEBUG] Setting system property [basedir]=[c:\Documents and Settings\nick\worksp ace\DataFeeds] [DEBUG] Using JVM: c:\Java\jdk1.5.0_11\jre\bin\java [INFO] Surefire report directory: c:\Documents and Settings\nick\workspace\DataF eeds\target\surefire-reports [INFO] Building jar: c:\DOCUME~1\nick\LOCALS~1\Temp\surefirebooter63991.jar Forking command line: c:\Java\jdk1.5.0_11\jre\bin\java -jar c:\DOCUME~1\nick\LOC ALS~1\Temp\surefirebooter63991.jar c:\DOCUME~1\nick\LOCALS~1\Temp\surefire63989t mp c:\DOCUME~1\nick\LOCALS~1\Temp\surefire63990tmp java.lang.NoClassDefFoundError: org/apache/maven/surefire/booter/SurefireBooter Exception in thread main [INFO] [ERROR] BUILD FAILURE [INFO] ability to add dependency to jvm's classpath rather in surefirebooter classloader - Key: SUREFIRE-117 URL: http://jira.codehaus.org/browse/SUREFIRE-117 Project: Maven Surefire Issue Type: Bug Affects Versions: 2.0 (2.2 plugin) Environment: xp Reporter: Dan Tran Assignee: Kenney Westerhof Fix For: 2.4 Attachments: MSUREFIRE-121-booter.patch, MSUREFIRE-121.plugin.patch, MSUREFIRE-121.plugin.patch2, MSUREFIRE-121.plugin.patch3 I have a usecase where i have a jar file got loaded by -Xbootclasspath, that jar file then loads classes from another jar ( my dependency) expected in the classpath. The problem is that surefire plugin does not add my dependencies at JVM commanline thru -classpath option, but after the JVM starts -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (SUREFIRE-117) ability to add dependency to jvm's classpath rather in surefirebooter classloader
[ http://jira.codehaus.org/browse/SUREFIRE-117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103623 ] Nick Bower commented on SUREFIRE-117: - Ok I think I've found the issue here. It is the way in which the surefire jar manifest is being created. The created temporary surefire jar has no classes, but uses a class path entry in the manifest to point to the maven repository so that the system class loader is able to pre-load the dependencies (including the stated SurefireBooter for one). However on Windows, this manifest illegally contains paths with drive letters. Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: 1.5.0_11-b03 (Sun Microsystems Inc.) Main-Class: org.apache.maven.surefire.booter.SurefireBooter Class-Path: C:\Documents and Settings\nick\.m2\repository\org\codehaus \plexus\plexus-archiver\1.0-alpha-7\plexus-archiver-1.0-alpha-7.jar C :\Documents and Settings\nick\.m2\repository\junit\junit\3.8.1\junit- 3.8.1.jar C:\Documents and Settings\nick\.m2\repository\org\apache\ma ven\surefire\surefire-api\2.3\surefire-api-2.3.jar C:\Documents and S ettings\nick\.m2\repository\org\codehaus\plexus\plexus-container-defa ult\1.0-alpha-8\plexus-container-default-1.0-alpha-8.jar C:\Documents and Settings\nick\.m2\repository\classworlds\classworlds\1.1-alpha-2 \classworlds-1.1-alpha-2.jar C:\Documents and Settings\nick\.m2\repos itory\org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar C:\Do cuments and Settings\nick\.m2\repository\commons-lang\commons-lang\2. 1\commons-lang-2.1.jar C:\Documents and Settings\nick\.m2\repository\ org\apache\maven\surefire\surefire-booter\2.3\surefire-booter-2.3.jar c:\Documents and Settings\nick\workspace\DataFeeds\target\classes/ c :\Documents and Settings\nick\workspace\DataFeeds\target\test-classes / C:\Documents and Settings\nick\.m2\repository\com\metoceanengineers \plot-tools\1.1.0\plot-tools-1.1.0.jar C:\Documents and Settings\nick \.m2\repository\mysql\mysql-connector-java\5.0.6\mysql-connector-java -5.0.6.jar C:\Documents and Settings\nick\.m2\repository\org\objectwe b\carol\carol\2.0.5\carol-2.0.5.jar C:\Documents and Settings\nick\.m 2\repository\backport-util-concurrent\backport-util-concurrent\3.0\ba ckport-util-concurrent-3.0.jar C:\Documents and Settings\nick\.m2\rep ository\org\mule\transports\mule-transport-jms\1.4.1\mule-transport-j ms-1.4.1.jar C:\Documents and Settings\nick\.m2\repository\org\apache \geronimo\specs\geronimo-jms_1.1_spec\1.0.1\geronimo-jms_1.1_spec-1.0 .1.jar C:\Documents and Settings\nick\.m2\repository\commons-discover y\commons-discovery\0.2\commons-discovery-0.2.jar C:\Documents and Se ttings\nick\.m2\repository\org\mule\mule-core\1.4.1\mule-core-1.4.1.j ar C:\Documents and Settings\nick\.m2\repository\commons-lang\commons -lang\2.1\commons-lang-2.1.jar C:\Documents and Settings\nick\.m2\rep ository\com\metoceanengineers\rems-exporter\1.0.6\rems-exporter-1.0.6 .jar C:\Documents and Settings\nick\.m2\repository\org\mule\transport s\mule-transport-file\1.4.1\mule-transport-file-1.4.1.jar C:\Document s and Settings\nick\.m2\repository\org\mule\modules\mule-module-jotm\ 1.4.1\mule-module-jotm-1.4.1.jar C:\Documents and Settings\nick\.m2\r epository\commons-beanutils\commons-beanutils\1.7.0\commons-beanutils -1.7.0.jar C:\Documents and Settings\nick\.m2\repository\com\metocean engineers\netcdfjavalib\2.3.0\netcdfjavalib-2.3.0.jar C:\Documents an d Settings\nick\.m2\repository\log4j\log4j\1.2.13\log4j-1.2.13.jar C: \Documents and Settings\nick\.m2\repository\junit\junit\3.8.2\junit-3 .8.2.jar C:\Documents and Settings\nick\.m2\repository\jcmdline\jcmdl ine\1.0.1\jcmdline-1.0.1.jar C:\Documents and Settings\nick\.m2\repos itory\org\apache\geronimo\specs\geronimo-jta_1.0.1B_spec\1.0.1\geroni mo-jta_1.0.1B_spec-1.0.1.jar C:\Documents and Settings\nick\.m2\repos itory\commons-net\commons-net\1.4.1\commons-net-1.4.1.jar C:\Document s and Settings\nick\.m2\repository\jdom\jdom\1.0\jdom-1.0.jar C:\Docu ments and Settings\nick\.m2\repository\org\slf4j\jcl104-over-slf4j\1. 3.1\jcl104-over-slf4j-1.3.1.jar C:\Documents and Settings\nick\.m2\re pository\jfree\jfreechart\1.0.1\jfreechart-1.0.1.jar C:\Documents and Settings\nick\.m2\repository\commons-cli\commons-cli\1.0\commons-cli -1.0.jar C:\Documents and Settings\nick\.m2\repository\org\safehaus\j ug\jug\2.0.0\jug-2.0.0-asl.jar C:\Documents and Settings\nick\.m2\rep ository\xml-apis\xml-apis\1.3.03\xml-apis-1.3.03.jar C:\Documents and Settings\nick\.m2\repository\javax\activation\activation\1.1\activat ion-1.1.jar C:\Documents and Settings\nick\.m2\repository\howl\howl-l ogger\0.1.11\howl-logger-0.1.11.jar C:\Documents and Settings\nick\.m 2\repository\commons-io\commons-io\1.3.1\commons-io-1.3.1.jar C:\Docu ments and Settings\nick\.m2\repository\jfree\jcommon\1.0.0\jcommon-1. 0.0.jar C:\Documents and
[jira] Commented: (SUREFIRE-117) ability to add dependency to jvm's classpath rather in surefirebooter classloader
[ http://jira.codehaus.org/browse/SUREFIRE-117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_103154 ] developer.Abe commented on SUREFIRE-117: I am still getting the following when useSystemClassLoadertrue/useSystemClassLoader [INFO] [surefire:test] [INFO] Surefire report directory: C:\Source\test\trunk\core\target\surefire-repo rts [INFO] Building jar: c:\temp\surefirebooter37241.jar java.lang.NoClassDefFoundError: org/apache/maven/surefire/booter/SurefireBooter Exception in thread main [INFO] [ERROR] BUILD FAILURE [INFO] Is there a fix for work around. Currently using XP I have vendor required classes in jre/lib/ext Regards, Abe ability to add dependency to jvm's classpath rather in surefirebooter classloader - Key: SUREFIRE-117 URL: http://jira.codehaus.org/browse/SUREFIRE-117 Project: Maven Surefire Issue Type: Bug Affects Versions: 2.0 (2.2 plugin) Environment: xp Reporter: Dan Tran Assignee: Kenney Westerhof Fix For: 2.4 Attachments: MSUREFIRE-121-booter.patch, MSUREFIRE-121.plugin.patch, MSUREFIRE-121.plugin.patch2, MSUREFIRE-121.plugin.patch3 I have a usecase where i have a jar file got loaded by -Xbootclasspath, that jar file then loads classes from another jar ( my dependency) expected in the classpath. The problem is that surefire plugin does not add my dependencies at JVM commanline thru -classpath option, but after the JVM starts -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (SUREFIRE-117) ability to add dependency to jvm's classpath rather in surefirebooter classloader
[ http://jira.codehaus.org/browse/SUREFIRE-117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_97741 ] Kenney Westerhof commented on SUREFIRE-117: --- It works perfectly here, but it may be a windows issue. Could you please provide a testcase I can run here? ability to add dependency to jvm's classpath rather in surefirebooter classloader - Key: SUREFIRE-117 URL: http://jira.codehaus.org/browse/SUREFIRE-117 Project: Maven Surefire Issue Type: Bug Affects Versions: 2.0 (2.2 plugin) Environment: xp Reporter: Dan Tran Assignee: Kenney Westerhof Fix For: 2.4 Attachments: MSUREFIRE-121-booter.patch, MSUREFIRE-121.plugin.patch, MSUREFIRE-121.plugin.patch2, MSUREFIRE-121.plugin.patch3 I have a usecase where i have a jar file got loaded by -Xbootclasspath, that jar file then loads classes from another jar ( my dependency) expected in the classpath. The problem is that surefire plugin does not add my dependencies at JVM commanline thru -classpath option, but after the JVM starts -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (SUREFIRE-117) ability to add dependency to jvm's classpath rather in surefirebooter classloader
[ http://jira.codehaus.org/browse/SUREFIRE-117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_88442 ] Dan Tran commented on SUREFIRE-117: --- looking further, Kenney's approach of using java -jar to load a temp jar with Main-Class and Class-Path setup in manifest file is correct. However, it is currently not working here is error when attempt to enable loadSystemClassLoader=true error [INFO] Building jar: C:\DOCUME~1\dtran\LOCALS~1\Temp\surefirebooter45181.jar java.lang.NoClassDefFoundError: org/apache/maven/surefire/booter/SurefireBooter Exception in thread main /error here is the manifes file: Manifest-Version: 1.0 Archiver-Version: Plexus Archiver Created-By: 1.5.0_08-b03 (Sun Microsystems Inc.) Main-Class: org.apache.maven.surefire.booter.SurefireBooter Class-Path: c:\dev\maven-repo\org\apache\maven\surefire\surefire-boote r\2.4-SNAPSHOT\surefire-booter-2.4-SNAPSHOT.jar c:\dev\maven-repo\org \codehaus\plexus\plexus-archiver\1.0-alpha-7\plexus-archiver-1.0-alph a-7.jar c:\dev\maven-repo\junit\junit\3.8.1\junit-3.8.1.jar c:\dev\ma ven-repo\org\codehaus\plexus\plexus-container-default\1.0-alpha-8\ple xus-container-default-1.0-alpha-8.jar c:\dev\maven-repo\classworlds\c lassworlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar c:\dev\maven-repo\ org\codehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar c:\dev\mave n-repo\org\apache\maven\surefire\surefire-api\2.4-SNAPSHOT\surefire-a pi-2.4-SNAPSHOT.jar c:\dev\maven-repo\commons-lang\commons-lang\2.1\c ommons-lang-2.1.jar C:\dev\mojo\maven-native\maven-native-api\target\ classes/ C:\dev\mojo\maven-native\maven-native-api\target\test-classe s/ c:\dev\maven-repo\junit\junit\3.8.1\junit-3.8.1.jar c:\dev\maven-r epo\org\codehaus\plexus\plexus-container-default\1.0-alpha-9\plexus-c ontainer-default-1.0-alpha-9.jar c:\dev\maven-repo\classworlds\classw orlds\1.1-alpha-2\classworlds-1.1-alpha-2.jar c:\dev\maven-repo\org\c odehaus\plexus\plexus-utils\1.1\plexus-utils-1.1.jar c:\dev\maven-rep o\bcel\bcel\5.1\bcel-5.1.jar c:\dev\maven-repo\org\apache\maven\maven -plugin-api\2.0\maven-plugin-api-2.0.jar The manifest looks good, but I am still not able to find out while it encounters class not found exception thou still looking ability to add dependency to jvm's classpath rather in surefirebooter classloader - Key: SUREFIRE-117 URL: http://jira.codehaus.org/browse/SUREFIRE-117 Project: Maven Surefire Issue Type: Bug Affects Versions: 2.0 (2.2 plugin) Environment: xp Reporter: Dan Tran Assigned To: Kenney Westerhof Fix For: 2.4 Attachments: MSUREFIRE-121-booter.patch, MSUREFIRE-121.plugin.patch, MSUREFIRE-121.plugin.patch2, MSUREFIRE-121.plugin.patch3 I have a usecase where i have a jar file got loaded by -Xbootclasspath, that jar file then loads classes from another jar ( my dependency) expected in the classpath. The problem is that surefire plugin does not add my dependencies at JVM commanline thru -classpath option, but after the JVM starts -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (SUREFIRE-117) ability to add dependency to jvm's classpath rather in surefirebooter classloader
[ http://jira.codehaus.org/browse/SUREFIRE-117?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_85690 ] Dan Tran commented on SUREFIRE-117: --- The code shows that when useSystemClassLoader is enable, the generated command use -jar argument instead of -classpath which is wrong Start with this line to see more details Commandline cli = forkConfiguration.createCommandLine( bootClasspath, useSystemClassLoader ); ability to add dependency to jvm's classpath rather in surefirebooter classloader - Key: SUREFIRE-117 URL: http://jira.codehaus.org/browse/SUREFIRE-117 Project: Maven Surefire Issue Type: Bug Affects Versions: 2.0 (2.2 plugin) Environment: xp Reporter: Dan Tran Assigned To: Kenney Westerhof Fix For: 2.3 Attachments: MSUREFIRE-121-booter.patch, MSUREFIRE-121.plugin.patch, MSUREFIRE-121.plugin.patch2, MSUREFIRE-121.plugin.patch3 I have a usecase where i have a jar file got loaded by -Xbootclasspath, that jar file then loads classes from another jar ( my dependency) expected in the classpath. The problem is that surefire plugin does not add my dependencies at JVM commanline thru -classpath option, but after the JVM starts -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira