Ah yes, at the moment you have to specify a manual dependency on the hornetq-ra module.

See https://github.com/wolfc/jboss-as/blob/AS7-579/testsuite/spec/src/test/resources/ejb3/mdb/MANIFEST.MF

Don't know how to specify this in a war, but somebody on the dev list will...

Carlo

On 07/12/2011 11:39 PM, Martin Schwartzman wrote:

Carlo,

 

I used the downloaded zip wolfc-jboss-as-f896114.zip from github. Using it I built jboss-as-7.1.0.Alpha1-SNAPSHOT. I deployed my test app and got the following from the standalone/log

 

15:33:30,807 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-6) Starting deployment of "jboss-as-helloworld.war"

15:33:30,932 INFO  [org.jboss.weld] (MSC service thread 1-3) Processing CDI deployment: jboss-as-helloworld.war

15:33:30,978 INFO  [org.jboss.weld] (MSC service thread 1-6) Starting Services for CDI deployment: jboss-as-helloworld.war

15:33:30,994 INFO  [org.jboss.weld.Version] (MSC service thread 1-6) WELD-000900 1.1.2 (AS7)

15:33:31,010 INFO  [org.jboss.weld] (MSC service thread 1-7) Starting weld service

15:33:31,010 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-3) MSC00001: Failed to start service jboss.deployment.unit."jboss-as-helloworld.war".component.HelloWorldMDB.CREATE: org.jboss.msc.service.StartException in service jboss.deployment.unit."jboss-as-helloworld.war".component.HelloWorldMDB.CREATE: Failed to start service

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1786)

                at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)

                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_25]

                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_25]

                at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]

Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.hornetq.ra.inflow.HornetQActivationSpec from [Module "deployment.jboss-as-helloworld.war:main" from Service Module Loader]

                at org.jboss.as.ejb3.component.EJBUtilities.createActivationSpecs(EJBUtilities.java:84)

                at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentCreateService.createComponent(MessageDrivenComponentCreateService.java:69)

                at org.jboss.as.ee.component.BasicComponentCreateService.start(BasicComponentCreateService.java:78)

                at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)

                ... 4 more

Caused by: java.lang.ClassNotFoundException: org.hornetq.ra.inflow.HornetQActivationSpec from [Module "deployment.jboss-as-helloworld.war:main" from Service Module Loader]

                at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:358)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:330)

                at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:307)

                at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:101)

                at java.lang.Class.forName0(Native Method) [:1.6.0_25]

                at java.lang.Class.forName(Class.java:247) [:1.6.0_25]

                at org.jboss.as.ejb3.component.EJBUtilities.createActivationSpecs(EJBUtilities.java:68)

                ... 7 more

 

15:33:31,447 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "jboss-as-helloworld.war" was rolled back with failure message {"Failed services" => {"jboss.deployment.unit.\"jboss-as-helloworld.war\".component.HelloWorldMDB.CREATE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"jboss-as-helloworld.war\".component.HelloWorldMDB.CREATE: Failed to start service"},"Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.env/wpsCompressQueue.jboss.deployment.unit.\"jboss-as-helloworld.war\".module.jboss-as-helloworld.jboss-as-helloworld.3 missing [ jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.env/queue/wpsCompressQueue ]","jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.\"env/org.jboss.as.quickstarts.helloworld.HelloWorldServlet/connectionFactory\".jboss.deployment.unit.\"jboss-as-helloworld.war\".module.jboss-as-helloworld.jboss-as-helloworld.2 missing [ jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.env/jms/QueueConnectionFactory ]","jboss.deployment.unit.\"jboss-as-helloworld.war\".jndiDependencyService missing [ jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.env/wpsCompressQueue, jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.\"env/org.jboss.as.quickstarts.helloworld.HelloWorldServlet/connectionFactory\" ]","jboss.deployment.unit.\"jboss-as-helloworld.war\".component.\"org.jboss.as.quickstarts.helloworld.HelloWorldServlet\".START missing [ jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.env/wpsCompressQueue, jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.\"env/org.jboss.as.quickstarts.helloworld.HelloWorldServlet/connectionFactory\" ]"]}

15:33:31,447 INFO  [org.jboss.weld] (MSC service thread 1-6) Stopping weld service

15:33:31,463 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) Stopped deployment jboss-as-helloworld.war in 25ms

15:33:31,478 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.unit.\"jboss-as-helloworld.war\".component.HelloWorldMDB.CREATE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"jboss-as-helloworld.war\".component.HelloWorldMDB.CREATE: Failed to start service"},"Services with missing/unavailable dependencies" => ["jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.env/wpsCompressQueue.jboss.deployment.unit.\"jboss-as-helloworld.war\".module.jboss-as-helloworld.jboss-as-helloworld.3 missing [ jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.env/queue/wpsCompressQueue ]","jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.\"env/org.jboss.as.quickstarts.helloworld.HelloWorldServlet/connectionFactory\".jboss.deployment.unit.\"jboss-as-helloworld.war\".module.jboss-as-helloworld.jboss-as-helloworld.2 missing [ jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.env/jms/QueueConnectionFactory ]","jboss.deployment.unit.\"jboss-as-helloworld.war\".jndiDependencyService missing [ jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.env/wpsCompressQueue, jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.\"env/org.jboss.as.quickstarts.helloworld.HelloWorldServlet/connectionFactory\" ]","jboss.deployment.unit.\"jboss-as-helloworld.war\".component.\"org.jboss.as.quickstarts.helloworld.HelloWorldServlet\".START missing [ jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.env/wpsCompressQueue, jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.\"env/org.jboss.as.quickstarts.helloworld.HelloWorldServlet/connectionFactory\" ]"]}}}

 

Martin