Hi all, A while ago I was testing the EJB3 embed + surefire, and it was working fine with the maven-surefire-plugin 2.2-SNAPSHOT. However, the maven-surefire-plugin 2.2 official is having issues, as well as 2.3-SNAPSHOT. ***The exact same embed-ejb3 junit test runs fine in eclipse.
<configuration> <forkMode>pertest</forkMode> <childDelegation>true</childDelegation> </configuration> Has anyone been keeping up with testing EJB3 through maven/surefire? I used to use Marco's example, but that was back with RC8 and surefire 2.2-SNAPSHOT, now something has changed :-( This was tested with jboss-embed-ejb3 RC8 and RC9. The surefire logs show: ========================== <error type="java.lang.RuntimeException" message="java.lang.ExceptionInInitializerError">java.lang.RuntimeExcepti on: java.lang.ExceptionInInitializerError at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.boot(EJB3StandaloneBoots trap.java:391) at com.ghsinc.junit.EmbeddedEjb3TestCase.startupEmbeddedJboss(EmbeddedEjb3T estCase.java:25) at com.ghsinc.junit.EmbeddedEjb3TestCase.setUp(EmbeddedEjb3TestCase.java:17 ) at junit.framework.TestCase.runBare(TestCase.java:125) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:2 10) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSe t(AbstractDirectoryTestSuite.java:135) at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(Abstr actDirectoryTestSuite.java:160) at org.apache.maven.surefire.Surefire.run(Surefire.java:81) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(Suref ireBooter.java:218) at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java :777) Caused by: java.lang.ExceptionInInitializerError at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.loadMBeanServer(EJB3Stan daloneBootstrap.java:407) at org.jboss.ejb3.embedded.EJB3StandaloneBootstrap.boot(EJB3StandaloneBoots trap.java:376) ... 23 more Caused by: org.jboss.util.NestedRuntimeException: Cannot load class org.jboss.mx.server.JBossMXServerConfig; - nested throwable: (java.lang.ClassNotFoundException: org.jboss.mx.server.JBossMXServerConfig) at org.jboss.util.Classes.instantiate(Classes.java:531) at org.jboss.mx.server.ServerConfig.getInstance(ServerConfig.java:74) at javax.management.MBeanServerFactory.&clinit&(MBeanServerFactory. java:79) ... 25 more Caused by: java.lang.ClassNotFoundException: org.jboss.mx.server.JBossMXServerConfig at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at org.apache.maven.surefire.booter.IsolatedClassLoader.loadClass(IsolatedC lassLoader.java:88) at org.jboss.util.Classes.loadClass(Classes.java:631) at org.jboss.util.Classes.loadClass(Classes.java:570) at org.jboss.util.Classes.instantiate(Classes.java:527) ... 27 more </error> ========================== --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]