[jboss-user] [Beginner's Corner] - Error deploying EJB JBoss AS6

cgmedina do-not-reply at jboss.com
Tue Aug 21 10:09:28 EDT 2012


cgmedina [https://community.jboss.org/people/cgmedina] created the discussion

"Error deploying EJB JBoss AS6"

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

--------------------------------------------------------------
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 at 180f504{Installed},dependentState=MapControllerStateModel$ControllerStateWrapper at 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 at 180f504{Installed},dependentState=MapControllerStateModel$ControllerStateWrapper at 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 at d32028[name=destination descriptions=[DescriptionMetaData at 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 at 180f504{Installed},dependentState=MapControllerStateModel$ControllerStateWrapper at 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 at d32028[name=destination descriptions=[DescriptionMetaData at 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 at 180f504{Installed},dependentState=MapControllerStateModel$ControllerStateWrapper at 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 at 180f504{Installed},dependentState=MapControllerStateModel$ControllerStateWrapper at 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 at d32028[name=destination descriptions=[DescriptionMetaData at 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
--------------------------------------------------------------

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

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120821/0677cf5c/attachment-0001.html 


More information about the jboss-user mailing list