EAR-deployment with remote JBoss: "Cannot obtain Arquillian config"
chrigel Jul 3, 2012 3:29 AMHello
I just want to access some local EJBs in a remote JBoss containter with Arquillian. All works fine as long as I deploy my EJBs in a simple JAR. But as soon as I switch to an EAR-deployment, Arquillian couldn’t obtain the Arquillian config for my EJB and the tests aborts with an exception after a timeout:
java.lang.IllegalStateException: Cannot obtain Arquillian config for: ch.test.arquillian.HelloEJBTest
at org.jboss.as.arquillian.service.ArquillianService.getArquillianConfig(ArquillianService.java:183)
at org.jboss.as.arquillian.service.ArquillianService.getArquillianConfig(ArquillianService.java:193)
at org.jboss.as.arquillian.service.ArquillianService.access$300(ArquillianService.java:69)
at org.jboss.as.arquillian.service.ArquillianService$ExtendedJMXTestRunner.runTestMethod(ArquillianService.java:222)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:111)
at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:45)
at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:235)
at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:138)
at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:250)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:791)
at org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.invoke(PluggableMBeanServerImpl.java:498)
at org.jboss.as.jmx.PluggableMBeanServerImpl.invoke(PluggableMBeanServerImpl.java:246)
at org.jboss.remotingjmx.protocol.v1.ServerProxy$InvokeHandler.handle(ServerProxy.java:1034)
at org.jboss.remotingjmx.protocol.v1.ServerProxy$MessageReciever$1.run(ServerProxy.java:215)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
I’m really out of ideas, how to fix this problem.
It would be really great if you could give me some hint what I might be doing wrong!
In the attachement, I’ve added my small sample project.
Thanks a lot,
Christoph
-
arquillian-ear.zip 8.4 KB