[jboss-as7-dev] Missing Java EE API classes in Arq (via JMX)

Carlo de Wolf cdewolf at redhat.com
Tue Mar 15 07:34:48 EDT 2011


At a glance it looks like the wrong class loader is used to deserialize 
the exception.

Carlo

-------------------------------------------------------------------------------
Test set: org.jboss.as.test.embedded.demos.ejb3.StatefulBeanTestCase
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.25 sec 
<<< FAILURE!
testSFSB(org.jboss.as.test.embedded.demos.ejb3.StatefulBeanTestCase)  
Time elapsed: 0.03 sec <<< ERROR!
java.lang.ClassNotFoundException: javax.ejb.EJBException from [Module 
"org.jboss.arquillian.protocol.jmx:main" from local module loader 
@5b6df84b (roots: 
/home/carlo/work/jboss-as/testsuite/smoke/target/modules,/home/carlo/work/jboss-as/testsuite/smoke/../../build/target/jboss-7.0.0.Alpha2/modules)]
         at 
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:184)
         at 
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:357)
         at 
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:329)
         at 
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:306)
         at 
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:100)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:247)
         at 
java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:603)
         at 
java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1574)
         at 
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
         at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
         at 
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
         at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
         at 
java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
         at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
         at 
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
         at 
org.jboss.arquillian.protocol.jmx.Utils.deserialize(Utils.java:78)
         at 
org.jboss.arquillian.protocol.jmx.JMXMethodExecutor.invoke(JMXMethodExecutor.java:108)
         at 
org.jboss.arquillian.impl.handler.ContainerTestExecuter.callback(ContainerTestExecuter.java:50)
         at 
org.jboss.arquillian.impl.handler.ContainerTestExecuter.callback(ContainerTestExecuter.java:40)
         at 
org.jboss.arquillian.impl.event.MapEventManager.fire(MapEventManager.java:63)
         at 
org.jboss.arquillian.impl.context.AbstractEventContext.fire(AbstractEventContext.java:115)
         at 
org.jboss.arquillian.impl.EventTestRunnerAdaptor.test(EventTestRunnerAdaptor.java:160)
         at 
org.jboss.arquillian.junit.Arquillian$6.evaluate(Arquillian.java:247)
         at 
org.jboss.arquillian.junit.Arquillian$4.evaluate(Arquillian.java:210)
         at 
org.jboss.arquillian.junit.Arquillian$5$1.evaluate(Arquillian.java:228)
         at 
org.jboss.arquillian.junit.Arquillian$MultiStatementExecutor.execute(Arquillian.java:300)
         at 
org.jboss.arquillian.junit.Arquillian$5.evaluate(Arquillian.java:224)
         at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)
         at 
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
         at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
         at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
         at 
org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
         at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
         at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
         at 
org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:166)
         at 
org.jboss.arquillian.junit.Arquillian$3$1.evaluate(Arquillian.java:189)
         at 
org.jboss.arquillian.junit.Arquillian$MultiStatementExecutor.execute(Arquillian.java:300)
         at 
org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:185)
         at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
         at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:128)
         at 
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:59)
         at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:120)
         at 
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:103)
         at org.apache.maven.surefire.Surefire.run(Surefire.java:169)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:339)
         at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1011)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.jboss.modules.Module.run(Module.java:261)
         at org.jboss.modules.Main.main(Main.java:236)




More information about the jboss-as7-dev mailing list