5 Replies Latest reply on Aug 22, 2012 3:16 AM by Wolf-Dieter Fink

    Error deploying EJB JBoss AS6

    cgmedina Newbie

      Hi, I'm trying to deploy an ear project which contains two EJB projects: one that handles the persistence (using Postgres) and the other one handles the core jms operations. When I only deploy the project containing the persistence it works fine, but once I try to deploy the other one I get the following messages:

       

      DEPLOYMENTS IN ERROR:

        Deployment "jboss.jca:name=internal/mhzap101/mhzap101-ejb-core/ReporterBrokerBean/env/jdbc/mhzap101,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=internal/mhzap101/mhzap101-ejb-core/ReporterBrokerBean/env/jdbc/mhzap101,service=DataSourceBinding',whenRequired=MapControllerStateModel$ControllerStateWrapper@180f504{Installed},dependentState=MapControllerStateModel$ControllerStateWrapper@180f504{Installed} **

        Deployment "jboss.jca:name=internal/mhzap101/mhzap101-ejb-core/SqlAgentBrokerBean/env/jdbc/mhzap101,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=internal/mhzap101/mhzap101-ejb-core/SqlAgentBrokerBean/env/jdbc/mhzap101,service=DataSourceBinding',whenRequired=MapControllerStateModel$ControllerStateWrapper@180f504{Installed},dependentState=MapControllerStateModel$ControllerStateWrapper@180f504{Installed} **

        Deployment "jboss.j2ee:ear=mhzap101.ear,jar=mhzap101-ejb-core.jar,name=UtilityProcessRequestMessageBean,service=EJB3" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: Required config property RequiredConfigPropertyMetaData@d32028[name=destination descriptions=[DescriptionMetaData@ea0a39[language=es]]] for messagingType 'javax.jms.MessageListener' not found in activation config [ActivationConfigProperty(destinationType=javax.jms.Queue), ActivationConfigProperty(acknowledgeMode=Auto-acknowledge)] ra=jboss.jca:service=RARDeployment,name='jms-ra.rar'

        Deployment "jboss.jca:name=internal/mhzap101/mhzap101-ejb-core/UtilityProcessRequestMessageBean/env/jdbc/mhzap101,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=internal/mhzap101/mhzap101-ejb-core/UtilityProcessRequestMessageBean/env/jdbc/mhzap101,service=DataSourceBinding',whenRequired=MapControllerStateModel$ControllerStateWrapper@180f504{Installed},dependentState=MapControllerStateModel$ControllerStateWrapper@180f504{Installed} **

        Deployment "jboss.j2ee:ear=mhzap101.ear,jar=mhzap101-ejb-core.jar,name=UtilityProcessReturnMessageBean,service=EJB3" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: Required config property RequiredConfigPropertyMetaData@d32028[name=destination descriptions=[DescriptionMetaData@ea0a39[language=es]]] for messagingType 'javax.jms.MessageListener' not found in activation config [ActivationConfigProperty(destinationType=javax.jms.Queue), ActivationConfigProperty(acknowledgeMode=Auto-acknowledge)] ra=jboss.jca:service=RARDeployment,name='jms-ra.rar'

        Deployment "jboss.jca:name=internal/mhzap101/mhzap101-ejb-core/MessengerBean/env/jdbc/mhzap101,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=internal/mhzap101/mhzap101-ejb-core/MessengerBean/env/jdbc/mhzap101,service=DataSourceBinding',whenRequired=MapControllerStateModel$ControllerStateWrapper@180f504{Installed},dependentState=MapControllerStateModel$ControllerStateWrapper@180f504{Installed} **

        Deployment "jboss.jca:name=internal/mhzap101/mhzap101-ejb-core/ExporterBrokerBean/env/jdbc/mhzap101,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=internal/mhzap101/mhzap101-ejb-core/ExporterBrokerBean/env/jdbc/mhzap101,service=DataSourceBinding',whenRequired=MapControllerStateModel$ControllerStateWrapper@180f504{Installed},dependentState=MapControllerStateModel$ControllerStateWrapper@180f504{Installed} **

        Deployment "jboss.j2ee:ear=mhzap101.ear,jar=mhzap101-ejb-core.jar,name=UtilityProcessReplyMessageBean,service=EJB3" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: Required config property RequiredConfigPropertyMetaData@d32028[name=destination descriptions=[DescriptionMetaData@ea0a39[language=es]]] for messagingType 'javax.jms.MessageListener' not found in activation config [ActivationConfigProperty(destinationType=javax.jms.Queue), ActivationConfigProperty(acknowledgeMode=Auto-acknowledge), ActivationConfigProperty(messageSelector=JMSCorrelationID IS NULL)] ra=jboss.jca:service=RARDeployment,name='jms-ra.rar'

       

       

                at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1370) [:2.2.0.GA]

                at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1316) [:2.2.0.GA]

                at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:968) [:2.2.0.GA]

                at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:82) [:6.0.0.Final]

                at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.checkComplete(ProfileControllerContext.java:138) [:0.2.2]

                at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:246) [:0.2.2]

                at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2]

                at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2]

                at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]

                at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]

                at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]

                at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]

                at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]

                at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]

                at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2]

                at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2]

                at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2]

                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_25]

                at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [:1.6.0_25]

                at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.6.0_25]

                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_25]

                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [:1.6.0_25]

                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [:1.6.0_25]

                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]

       

       

      2012-08-20 18:38:54,105 INFO  [org.jboss.system.server.jmx.JMXKernel] (Thread-29) Server exit called, exiting the JVM now!

      2012-08-20 18:38:54,121 INFO  [STDOUT] (Thread-1) Posting Shutdown Request to the server...

       

       

      2012-08-20 18:38:54,121 INFO  [org.jboss.bootstrap.impl.base.server.AbstractServer] (Thread-30) Stopping: JBossAS [6.0.0.Final "Neo"]

      2012-08-20 18:38:54,183 INFO  [org.apache.coyote.http11.Http11Protocol] (Thread-30) Pausando Coyote HTTP/1.1 en puerto http-127.0.0.1-8080

      2012-08-20 18:38:54,183 INFO  [org.apache.coyote.http11.Http11Protocol] (Thread-30) Parando Coyote HTTP/1.1 en puerto http-127.0.0.1-8080

      2012-08-20 18:38:54,324 INFO  [org.apache.coyote.ajp.AjpProtocol] (Thread-30) Pausando Coyote AJP/1.3 en ajp-127.0.0.1-8009

      2012-08-20 18:38:54,324 INFO  [org.apache.coyote.ajp.AjpProtocol] (Thread-30) Parando Coyote AJP/1.3 en ajp-127.0.0.1-8009

       

       

       

      Here is my Postgres-ds.xml file

       

       

       

       

      <datasources>

        <local-tx-datasource>

          <jndi-name>jdbc/mhzap101</jndi-name>

          <use-java-context>false</use-java-context>

          <connection-url>jdbc:postgresql://localhost:5432/MHZDB101</connection-url>

          <driver-class>org.postgresql.Driver</driver-class>

          <min-pool-size>5</min-pool-size>

          <max-pool-size>1000</max-pool-size>

          <user-name>postgres</user-name>

          <password>postgres</password>

              <!-- sql to call when connection is created.  Can be anything, select 1 is valid for PostgreSQL

              <new-connection-sql>select 1</new-connection-sql>

              -->

       

       

              <!-- sql to call on an existing pooled connection when it is obtained from pool.  Can be anything, select 1 is valid for PostgreSQL

              <check-valid-connection-sql>select 1</check-valid-connection-sql>

              -->

       

       

            <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) -->

            <metadata>

               <type-mapping>PostgreSQL 9.1</type-mapping>

            </metadata>

        </local-tx-datasource>

       

       

      </datasources>

       

       

      Here's also my jboss.xml

       

      <?xml version="1.0" encoding="UTF-8"?>

      <jboss>

        <enterprise-beans>

          <session>

            <ejb-name>UtilityProcessMessengerBean</ejb-name>

            <resource-ref>

              <res-ref-name>jms/UtilityProcessMessageFactory</res-ref-name>

              <jndi-name>jms/UtilityProcessMessageFactory</jndi-name>

            </resource-ref>

            <message-destination-ref>

              <message-destination-ref-name>jms/UtilityProcessRequestMessageQueue</message-destination-ref-name>

              <jndi-name>jms/UtilityProcessRequestMessageQueue</jndi-name>

            </message-destination-ref>

            <message-destination-ref>

              <message-destination-ref-name>jms/UtilityProcessReplyMessageQueue</message-destination-ref-name>

              <jndi-name>jms/UtilityProcessReplyMessageQueue</jndi-name>

            </message-destination-ref>

            <message-destination-ref>

              <message-destination-ref-name>jms/UtilityProcessReturnMessageQueue</message-destination-ref-name>

              <jndi-name>jms/UtilityProcessReturnMessageQueue</jndi-name>

            </message-destination-ref>

          </session>

          <message-driven>

            <ejb-name>UtilityProcessRequestMessageBean</ejb-name>

          </message-driven>

        </enterprise-beans>

      </jboss>

       

      the source code references resources using code injection, like this

       

      @Stateless

      public class ReporterBrokerBean implements ReporterBrokerLocal {

       

       

          @Resource(name ="jdbc/mhzap101")

          private javax.sql.DataSource ds;

       

       

          @EJB

          private UtilityProcessMessengerLocal messenger;

       

       

      This source code works fine on glassfish, can somebody tell me what can I do?

       

       

      Thanks

        • 1. Re: Error deploying EJB JBoss AS6
          Wolf-Dieter Fink Master

          The datasources jndi-name must have the prefix java:jboss/datasources (or maybe java:jboss is enough I'm not sure about)

           

          See wiki for this.

          1 of 1 people found this helpful
          • 2. Re: Error deploying EJB JBoss AS6
            cgmedina Newbie

            thanks for your reply I tried that but since I used the option <use-java-context>false</use-java-context> I don't have to use the preffix  java: anymore, I tried and I got an error message even in the ejb-persistence project.

            • 3. Re: Error deploying EJB JBoss AS6
              cgmedina Newbie

              I solved the DataSourceBinding error message, after reading this post: https://community.jboss.org/thread/167109

               

              I only had to change the name for mappedName in my @resource anotation as follows:

               

              @Resource(mappedName="jdbc/mhzap101")

                  private javax.sql.DataSource ds;

               

              Now I only get the following error messages:

               

              Deployment "jboss.j2ee:ear=mhzap101.ear,jar=mhzap101-ejb-core.jar,name=UtilityProcessRequestMessageBean,service=EJB3" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: Required config property RequiredConfigPropertyMetaData@12b76b9[name=destination descriptions=[DescriptionMetaData@a26765[language=es]]] for messagingType 'javax.jms.MessageListener' not found in activation config [ActivationConfigProperty(destinationType=javax.jms.Queue), ActivationConfigProperty(acknowledgeMode=Auto-acknowledge)] ra=jboss.jca:service=RARDeployment,name='jms-ra.rar'

                Deployment "jboss.j2ee:ear=mhzap101.ear,jar=mhzap101-ejb-core.jar,name=UtilityProcessReturnMessageBean,service=EJB3" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: Required config property RequiredConfigPropertyMetaData@12b76b9[name=destination descriptions=[DescriptionMetaData@a26765[language=es]]] for messagingType 'javax.jms.MessageListener' not found in activation config [ActivationConfigProperty(destinationType=javax.jms.Queue), ActivationConfigProperty(acknowledgeMode=Auto-acknowledge)] ra=jboss.jca:service=RARDeployment,name='jms-ra.rar'

                Deployment "jboss.j2ee:ear=mhzap101.ear,jar=mhzap101-ejb-core.jar,name=UtilityProcessReplyMessageBean,service=EJB3" is in error due to the following reason(s): org.jboss.deployers.spi.DeploymentException: Required config property RequiredConfigPropertyMetaData@12b76b9[name=destination descriptions=[DescriptionMetaData@a26765[language=es]]] for messagingType 'javax.jms.MessageListener' not found in activation config [ActivationConfigProperty(destinationType=javax.jms.Queue), ActivationConfigProperty(acknowledgeMode=Auto-acknowledge), ActivationConfigProperty(messageSelector=JMSCorrelationID IS NULL)] ra=jboss.jca:service=RARDeployment,name='jms-ra.rar'

               

               

                        at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1370) [:2.2.0.GA]

                        at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1316) [:2.2.0.GA]

                        at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:968) [:2.2.0.GA]

                        at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:82) [:6.0.0.Final]

                        at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.checkComplete(ProfileControllerContext.java:138) [:0.2.2]

                        at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:246) [:0.2.2]

                        at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2]

                        at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2]

                        at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]

                        at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]

                        at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]

                        at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]

                        at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]

                        at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]

                        at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2]

                        at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2]

                        at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2]

                        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_25]

                        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [:1.6.0_25]

                        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.6.0_25]

                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_25]

                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [:1.6.0_25]

                        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [:1.6.0_25]

                        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]

               

              I think it might be because of the jms configuration. I created the jms queues by using the hornetq-jms.xml

               

              Can anybody explain me, I'm kind of newbie

               

              Thanks

              • 4. Re: Error deploying EJB JBoss AS6
                cgmedina Newbie

                I finally solved it.

                just needed to add a configuration property for my messagedrivenbean: @ActivationConfigProperty(propertyName = "destination", propertyValue = "jms/UtilityProcessReplyMessageQueue"),

                • 5. Re: Error deploying EJB JBoss AS6
                  Wolf-Dieter Fink Master

                  IF you solve it you should mark the thread as 'answered' to give other members an idea in the overview