[jboss-user] [JBoss Tools] - MDB Deployment using Eclipse with AS7.1

Laura delli Paoli do-not-reply at jboss.com
Wed Jun 6 04:39:31 EDT 2012


Laura delli Paoli [https://community.jboss.org/people/lauradp] created the discussion

"MDB Deployment using Eclipse with AS7.1"

To view the discussion, visit: https://community.jboss.org/message/740098#740098

--------------------------------------------------------------
Hello everybody!
I successfully developped a Producer Consumer application and deployed it in Eclipse IDE by adding it to my jBoss AS 7.1 server.

My MDB is:
+ at MessageDriven(activationConfig = {+
+                    @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),+
+                    @ActivationConfigProperty(propertyName = "destination", propertyValue = "queue/TestQ") })+
+public class QueueReader implements MessageListener {+
+.....+

Now I have to change my app in order to use ejb-jar.xml to configure my MDB so I changed my MDB in:
+ at MessageDriven+
+public class QueueReader implements MessageListener+

and I wrote the following ejb-jar.xml:

+<?xml version="1.0" encoding="UTF-8"?>+
+<ejb-jar+ 
+          xmlns=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee"+ 
+          xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"+ 
+          xsi:schemaLocation=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee  http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd"+
+          version="3.1">+
+               <enterprise-beans>+
+                              <message-driven>+
+                                             <ejb-name>JBossQueueReader</ejb-name>+
+                                             <ejb-class>reader.QueueReader</ejb-class>+
+                                             <transaction-type>Container</transaction-type>+
+                                             <activation-config>+
+                                                            <activation-config-property>+
+                                                                      <activation-config-property-name>destinationType</activation-config-property-name>+
+                                                                      <activation-config-property-value>javax.jms.Queue</activation-config-property-value>+
+                                        </activation-config-property>+
+                                                            <activation-config-property>+
+                                                                      <activation-config-property-name>destination</activation-config-property-name>+
+                                              <activation-config-property-value>queue/TestQ</activation-config-property-value>+
+                                                            </activation-config-property>+
+                                        </activation-config>+
+                         </message-driven>+
+          </enterprise-beans>+
+</ejb-jar>+

with these changes when I start my server I get the following error:

+10:33:43,177 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC00001: Failed to start service jboss.deployment.unit."JBossQueueReader.jar".component.QueueReader.START: org.jboss.msc.service.StartException in service jboss.deployment.unit."JBossQueueReader.jar".component.QueueReader.START: Failed to start service+
+          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]+
+          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) [rt.jar:1.6.0_32]+
+          at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [rt.jar:1.6.0_32]+
+          at java.lang.Thread.run(Unknown Source) [rt.jar:1.6.0_32]+
+Caused by: java.lang.RuntimeException: javax.resource.spi.InvalidPropertyException: Destination is mandatory+
+          at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponent.start(MessageDrivenComponent.java:171)+
+          at org.jboss.as.ee.component.ComponentStartService.start(ComponentStartService.java:44)+
+          at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]+
+          at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA.jar:1.0.2.GA]+
+          ... 3 more+
+Caused by: javax.resource.spi.InvalidPropertyException: Destination is mandatory+
+          at org.hornetq.ra.inflow.HornetQActivationSpec.validate(HornetQActivationSpec.java:643)+
+          at org.jboss.jca.core.rar.EndpointImpl.activate(EndpointImpl.java:157)+
+          at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponent.start(MessageDrivenComponent.java:169)+
+          ... 6 more+


+10:33:43,200 INFO  [org.jboss.as] (MSC service thread 1-6) JBAS015951: Admin console listening on  http://127.0.0.1:9990 http://127.0.0.1:9990+
+10:33:43,202 ERROR [org.jboss.as] (MSC service thread 1-6) JBAS015875: JBoss AS 7.1.1.Final "Brontes" started (with errors) in 4759ms - Started 250 of 334 services (1 services failed or missing dependencies, 82 services are passive or on-demand)+
+10:33:43,207 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015870: Deploy of deployment "JBossQueueReader.jar" was rolled back with failure message {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"JBossQueueReader.jar\".component.QueueReader.START" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"JBossQueueReader.jar\".component.QueueReader.START: Failed to start service"}}+
+10:33:43,213 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015871: Deploy of deployment "jboss-as-helloworld.jar" was rolled back with no failure message+
+10:33:43,254 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment jboss-as-helloworld.jar in 39ms+
+10:33:43,449 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment JBossQueueReader.jar in 237ms+
+10:33:43,451 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report+
+JBAS014777:   Services which failed to start:      service jboss.deployment.unit."JBossQueueReader.jar".component.QueueReader.START: org.jboss.msc.service.StartException in service jboss.deployment.unit."JBossQueueReader.jar".component.QueueReader.START: Failed to start service+


+10:33:43,457 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) JBAS014654: Composite operation was rolled back+
+10:33:43,461 ERROR [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) {"JBAS014653: Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"JBossQueueReader.jar\".component.QueueReader.START" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"JBossQueueReader.jar\".component.QueueReader.START: Failed to start service"}}}}+

Is there any other step to performed in order to have my application working anyway??
I need to separate configuration from classes.

Thanks 
Laura

Note: full JBoss trace is attached.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/740098#740098]

Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120606/77ae6a81/attachment-0001.html 


More information about the jboss-user mailing list