MDB Support in AS 7

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

MDB Support in AS 7

Martin Schwartzman

I just built today’s jboss-as-7.1.0.Alpha1-SNAPSHOT. I used the jboss-as-quickstarts-7.0.0.CR1\helloworld example and added an MDB. I modified the HelloWorldServlet to send a TextMessage to the MDB but it seems MDB’s are still not working? Any idea when MDB’s will be working in JBoss AS 7? Below is the error message I get in the standalone log.

 

09:15:51,233 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 1) Deployment of "jboss-as-helloworld.war" was rolled back with failure message {"Services with missing/unavailable dependencies" => ["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\" ]","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.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.0 missing [ jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.env/jms/QueueConnectionFactory ]","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.1 missing [ jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.env/queue/wpsCompressQueue ]"]}

09:15:51,233 INFO  [org.jboss.weld] (MSC service thread 1-7) Stopping weld service

09:15:51,249 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment jboss-as-helloworld.war in 25ms

09:15:51,249 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 2) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Services with missing/unavailable dependencies" => ["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\" ]","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.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.0 missing [ jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.env/jms/QueueConnectionFactory ]","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.1 missing [ jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.env/queue/wpsCompressQueue ]"]}}}

 

Thanks,

 

Martin


_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: MDB Support in AS 7

Jaikiran Pai
Hi Martin,

See this http://community.jboss.org/message/614486#614486

-Jaikiran
On Tuesday 12 July 2011 09:21 PM, Martin Schwartzman wrote:

>
> I just built today’s jboss-as-7.1.0.Alpha1-SNAPSHOT. I used the
> jboss-as-quickstarts-7.0.0.CR1\helloworld example and added an MDB. I
> modified the HelloWorldServlet to send a TextMessage to the MDB but it
> seems MDB’s are still not working? Any idea when MDB’s will be working
> in JBoss AS 7? Below is the error message I get in the standalone log.
>
> 09:15:51,233 INFO [org.jboss.as.server.controller]
> (DeploymentScanner-threads - 1) Deployment of
> "jboss-as-helloworld.war" was rolled back with failure message
> {"Services with missing/unavailable dependencies" =>
> ["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\"
> ]","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.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.0
> missing [
> jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.env/jms/QueueConnectionFactory
> ]","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.1
> missing [
> jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.env/queue/wpsCompressQueue
> ]"]}
>
> 09:15:51,233 INFO [org.jboss.weld] (MSC service thread 1-7) Stopping
> weld service
>
> 09:15:51,249 INFO [org.jboss.as.server.deployment] (MSC service thread
> 1-2) Stopped deployment jboss-as-helloworld.war in 25ms
>
> 09:15:51,249 ERROR [org.jboss.as.deployment]
> (DeploymentScanner-threads - 2) {"Composite operation failed and was
> rolled back. Steps that failed:" => {"Operation step-2" => {"Services
> with missing/unavailable dependencies" =>
> ["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\"
> ]","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.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.0
> missing [
> jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.env/jms/QueueConnectionFactory
> ]","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.1
> missing [
> jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.env/queue/wpsCompressQueue
> ]"]}}}
>
> Thanks,
>
> Martin
>
>
>
> _______________________________________________
> jboss-as7-dev mailing list
> [hidden email]
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev

_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: MDB Support in AS 7

Carlo de Wolf
In reply to this post by Martin Schwartzman
Hi Martin,

MDB functionality is coming soon. I'm building it up at https://github.com/wolfc/jboss-as/tree/AS7-579.

Can you try that branch to deploy your app?
If it gives a stack trace, please post it in this thread.

Carlo

On 07/12/2011 05:51 PM, Martin Schwartzman wrote:

I just built today’s jboss-as-7.1.0.Alpha1-SNAPSHOT. I used the jboss-as-quickstarts-7.0.0.CR1\helloworld example and added an MDB. I modified the HelloWorldServlet to send a TextMessage to the MDB but it seems MDB’s are still not working? Any idea when MDB’s will be working in JBoss AS 7? Below is the error message I get in the standalone log.

 

09:15:51,233 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 1) Deployment of "jboss-as-helloworld.war" was rolled back with failure message {"Services with missing/unavailable dependencies" => ["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\" ]","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.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.0 missing [ jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.env/jms/QueueConnectionFactory ]","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.1 missing [ jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.env/queue/wpsCompressQueue ]"]}

09:15:51,233 INFO  [org.jboss.weld] (MSC service thread 1-7) Stopping weld service

09:15:51,249 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment jboss-as-helloworld.war in 25ms

09:15:51,249 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 2) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Services with missing/unavailable dependencies" => ["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\" ]","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.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.0 missing [ jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.env/jms/QueueConnectionFactory ]","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.1 missing [ jboss.naming.context.java.module.jboss-as-helloworld.jboss-as-helloworld.env/queue/wpsCompressQueue ]"]}}}

 

Thanks,

 

Martin

_______________________________________________ jboss-as7-dev mailing list [hidden email] https://lists.jboss.org/mailman/listinfo/jboss-as7-dev


_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
Reply | Threaded
Open this post in threaded view
|

Re: MDB Support in AS 7

Carlo de Wolf
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




_______________________________________________
jboss-as7-dev mailing list
[hidden email]
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev