[jboss-dev-forums] [Design of EJB 3.0] - Re: EJBTHREE-1396 MockServer must report startup / shutdown

jaikiran do-not-reply at jboss.com
Wed Nov 5 08:09:07 EST 2008


Furthermore, this patch includes a fix to a minor issue which i observed on my local (Windows) setup. I have my Maven repository at C:\Documents and Settings\jaikiran_pai\.m2\repository. Note the space character in the folder names. This used to always fail on my setup with:

14:46:59,056 INFO  [RemoteAccessTestCase] Launching in separate process: C:\jdk1.5.0_10\bin\java -cp C:\Documents and Settings\jaikiran_pai\.m2\repository\apache-log4j\log4j\1.2.14\log4j-1.2.14.jar;C:\Documents and Settings\jaikiran_pai\.m2\repository\apache-xerces\xercesImpl\2.9.1\xercesImpl-2.9.1.jar; [...the rest of the classpath] -ea org.jboss.ejb3.test.proxy.remoteaccess.MockServer org.jboss.ejb3.test.proxy.remoteaccess.unit.RemoteAccessTestCase
  | java.lang.NoClassDefFoundError: and
  | 
  | Exception in thread "main" @SLTests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 29.563 sec <<< FAILURE!
  | 

The patch that i posted includes the fix to enclose the classpath in double quotes:

@@ -243,7 +261,8 @@
  |        command.append(File.separatorChar);
  |        command.append(RemoteAccessTestCase.EXECUTABLE_JAVA);
  |        command.append(" -cp "); // Classpath
  | -
  | +      command.append("\"");
  | +      
  |        command.append(classes);
  |        command.append(File.pathSeparatorChar);
  |        command.append(testClasses);
  | @@ -251,10 +270,16 @@
  |        command.append(conf);
  |        command.append(File.pathSeparatorChar);
  |        command.append(depCp); // Dependency CP
  | +      command.append("\"");
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187002#4187002

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4187002



More information about the jboss-dev-forums mailing list