<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
<table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tbody>
<tr>
<td>
<table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
<tbody>
<tr>
<td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
<h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
<!-- To have a header image/logo replace the name below with your img tag -->
<!-- Email clients will render the images when the message is read so any image -->
<!-- must be made available on a public server, so that all recipients can load the image. -->
<a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Error deploying EJB JBoss AS6
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/cgmedina">cgmedina</a> in <i>Beginner's Corner</i> - <a href="https://community.jboss.org/message/754834#754834">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>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:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>DEPLOYMENTS IN ERROR:</p><p>  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} **</p><p>  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} **</p><p>  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'</p><p>  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} **</p><p>  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'</p><p>  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} **</p><p>  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} **</p><p>  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'</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>          at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1370) [:2.2.0.GA]</p><p>          at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1316) [:2.2.0.GA]</p><p>          at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:968) [:2.2.0.GA]</p><p>          at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:82) [:6.0.0.Final]</p><p>          at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.checkComplete(ProfileControllerContext.java:138) [:0.2.2]</p><p>          at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:246) [:0.2.2]</p><p>          at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.2.2]</p><p>          at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:57) [:0.2.2]</p><p>          at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.2.2]</p><p>          at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:95) [:0.2.2]</p><p>          at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.2.2]</p><p>          at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.2.2]</p><p>          at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.2.2]</p><p>          at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.2.2]</p><p>          at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.2.2]</p><p>          at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.2.2]</p><p>          at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.2.2]</p><p>          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_25]</p><p>          at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [:1.6.0_25]</p><p>          at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.6.0_25]</p><p>          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_25]</p><p>          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180) [:1.6.0_25]</p><p>          at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204) [:1.6.0_25]</p><p>          at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_25]</p><p>          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_25]</p><p>          at java.lang.Thread.run(Thread.java:662) [:1.6.0_25]</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>2012-08-20 18:38:54,105 INFO  [org.jboss.system.server.jmx.JMXKernel] (Thread-29) Server exit called, exiting the JVM now!</p><p>2012-08-20 18:38:54,121 INFO  [STDOUT] (Thread-1) Posting Shutdown Request to the server...</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>2012-08-20 18:38:54,121 INFO  [org.jboss.bootstrap.impl.base.server.AbstractServer] (Thread-30) Stopping: JBossAS [6.0.0.Final "Neo"]</p><p>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</p><p>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</p><p>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</p><p>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</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Here is my Postgres-ds.xml file</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><datasources></p><p>  <local-tx-datasource></p><p>    <jndi-name>jdbc/mhzap101</jndi-name></p><p>    <use-java-context>false</use-java-context></p><p>    <connection-url>jdbc:postgresql://localhost:5432/MHZDB101</connection-url></p><p>    <driver-class>org.postgresql.Driver</driver-class></p><p>    <min-pool-size>5</min-pool-size></p><p>    <max-pool-size>1000</max-pool-size></p><p>    <user-name>postgres</user-name></p><p>    <password>postgres</password></p><p>        <!-- sql to call when connection is created.  Can be anything, select 1 is valid for PostgreSQL</p><p>        <new-connection-sql>select 1</new-connection-sql></p><p>        --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>        <!-- sql to call on an existing pooled connection when it is obtained from pool.  Can be anything, select 1 is valid for PostgreSQL</p><p>        <check-valid-connection-sql>select 1</check-valid-connection-sql></p><p>        --></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>      <!-- corresponding type-mapping in the standardjbosscmp-jdbc.xml (optional) --></p><p>      <metadata></p><p>         <type-mapping>PostgreSQL 9.1</type-mapping></p><p>      </metadata></p><p>  </local-tx-datasource></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p></datasources></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Here's also my jboss.xml</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><?xml version="1.0" encoding="UTF-8"?></p><p><jboss> </p><p>  <enterprise-beans></p><p>    <session> </p><p>      <ejb-name>UtilityProcessMessengerBean</ejb-name></p><p>      <resource-ref></p><p>        <res-ref-name>jms/UtilityProcessMessageFactory</res-ref-name></p><p>        <jndi-name>jms/UtilityProcessMessageFactory</jndi-name></p><p>      </resource-ref></p><p>      <message-destination-ref></p><p>        <message-destination-ref-name>jms/UtilityProcessRequestMessageQueue</message-destination-ref-name></p><p>        <jndi-name>jms/UtilityProcessRequestMessageQueue</jndi-name></p><p>      </message-destination-ref></p><p>      <message-destination-ref></p><p>        <message-destination-ref-name>jms/UtilityProcessReplyMessageQueue</message-destination-ref-name></p><p>        <jndi-name>jms/UtilityProcessReplyMessageQueue</jndi-name></p><p>      </message-destination-ref></p><p>      <message-destination-ref></p><p>        <message-destination-ref-name>jms/UtilityProcessReturnMessageQueue</message-destination-ref-name></p><p>        <jndi-name>jms/UtilityProcessReturnMessageQueue</jndi-name></p><p>      </message-destination-ref></p><p>    </session></p><p>    <message-driven></p><p>      <ejb-name>UtilityProcessRequestMessageBean</ejb-name></p><p>    </message-driven></p><p>  </enterprise-beans> </p><p></jboss></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>the source code references resources using code injection, like this</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>@Stateless</p><p>public class ReporterBrokerBean implements ReporterBrokerLocal {</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>    @Resource(name ="jdbc/mhzap101")</p><p>    private javax.sql.DataSource ds;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>    @EJB</p><p>    private UtilityProcessMessengerLocal messenger;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>This source code works fine on glassfish, can somebody tell me what can I do?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Thanks</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/754834#754834">going to Community</a></p>
<p style="margin: 0;">Start a new discussion in Beginner's Corner at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>