<!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="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">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;">
problems with an EAR file with MDBs
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/ranjix">null null</a> in <i>Beginner's Corner</i> - <a href="http://community.jboss.org/message/546131#546131">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hey guys, maybe you know what's going on...</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I'm trying to port some J2EE apps (EARs) from weblogic to jboss. These apps are depending on each other, in the sense that all need a specific one to start first. In short, EAC.ear needs to start first, then the rest - JMS, EDESK and PUBLISH. For this I use the "deploy.last" as a parent for the EARs which depend on EAC. From the above EAR apps, only PUBLISH contains ejbs (an MDB), the rest contain just wars. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Also, I want all these to start from folders in a certain directory, instead of the "deployed" folder from JBoss home folder. For this I modified the profile.xml from JBoss, to include the respective folders. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>With these settings, I ran into a strange (for me) issue. In short, if I leave in profile.xml only the EAC, JMS and EDESK apps, they start fine. If I add PUBLISH, no error happens, but none of the JMS, EDESK and PUBLISH start. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>so. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>Case 1 - If I have in  profile.xml just eac, jms and edesk</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><strong> </strong> </p><p>             <value>${jboss.server.home.url}deploy</value></p><p><value>file:///C:/10.DEV.NEW.3/modules/eac/appserver/jboss</value></p><p><value>file:///C:/10.DEV.NEW.3/modules/jms/appserver/jboss</value></p><p><value>file:///C:/10.DEV.NEW.3/modules/edesk/appserver/jboss</value></p><p><em><!--value>file:///C:/10.DEV.NEW.3/modules/publish/appserver/jboss</value--></em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>Then the output  of JBoss is fine</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><strong> </strong> </p><p>17:36:09,476 INFO   [TomcatDeployment] deploy, ctxPath=/eac</p><p>17:36:11,136 INFO  [STDOUT]  Initializing application.  (C:\10.DEV.NEW.3\modules\eac\config\eac.appconfig.dna)</p><p>17:36:14,757 INFO  [STDOUT] Checking  initialization state for database 'eac'  (jdbc:sqlserver://DB-SPOP:1433;SelectMethod=cursor;DatabaseName=jboss_EAC)...</p><p>17:36:15,669 INFO  [STDOUT] URL  optimisation mode set to: none</p><p>17:36:15,678 INFO   [STDOUT]</p><p>     **************************************************************************</p><p>    Escalate Environment and Access  Control successfully started</p><p>     **************************************************************************</p><p>17:36:15,756 INFO   [TomcatDeployment] deploy, ctxPath=/jms</p><p>17:36:16,344 INFO  [STDOUT]  Initializing application.  (C:\10.DEV.NEW.3\modules\jms\config\jms.appconfig.dna)</p><p>17:36:19,541 INFO   [STDOUT]</p><p>     **************************************************************************</p><p>    Escalate JMS Server successfully  started</p><p>     **************************************************************************</p><p>17:36:19,628 INFO   [TomcatDeployment] deploy, ctxPath=/edesk</p><p>17:36:20,497 INFO  [STDOUT]  Initializing application.  (C:\10.DEV.NEW.3\modules\core\config\pdc.server.appconfig.dna)</p><p>17:36:20,695 ERROR [STDERR]  Environment variable 'BMS_JMS_SERVER_NAME' missing for DNAList name  'server'</p><p>17:36:26,335 INFO  [STDOUT] Could  not find the 'startup' callback class 'com.bluemartini.dev.net.DevServer'.   Ignoring.</p><p>17:36:26,427 INFO  [STDOUT] Checking  initialization state for database 'main'  (jdbc:sqlserver://DB-SPOP:1433;SelectMethod=cursor;DatabaseName=jboss_MAIN)...</p><p>17:36:26,929 INFO  [STDOUT] Checking  initialization state for database 'store'  (jdbc:sqlserver://DB-SPOP:1433;SelectMethod=cursor;DatabaseName=jboss_STORE)...</p><p>17:36:27,865 INFO  [STDOUT] URL  optimisation mode set to: none</p><p>17:36:27,893 INFO  [STDOUT]  Initializing rules engine...</p><p>17:36:27,935 INFO  [STDOUT] Rules  engine successfully initialized...</p><p>17:36:28,055 INFO  [STDOUT]  SearchIndexLoader.init()</p><p>17:36:28,113 INFO  [STDOUT] BM JMS:   Creating Topic Connection to JMS Server  jnp://DB-SPOP:1099</p><p>17:36:28,769 INFO  [STDOUT] BM JMS:   Creating Queue Connection to JMS Server  jnp://DB-SPOP:1099</p><p>17:36:28,858 INFO  [STDOUT] BM JMS:   Successfully connected to JMS Server  jnp://DB-SPOP:1099</p><p>17:36:29,372 INFO   [STDOUT]</p><p>     **************************************************************************</p><p>    Escalate Enterprise Desktop  Server successfully started</p><p>     **************************************************************************</p><p>17:36:29,597 INFO  [Http11Protocol]  Starting Coyote HTTP/1.1 on http-127.0.0.1-8080</p><p>17:36:29,633 INFO  [AjpProtocol]  Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009</p><p>17:36:29,651 INFO  [Http11Protocol]  Starting Coyote HTTP/1.1 on http-127.0.0.1-8443</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><strong> </strong> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>Case 2 - if I add in  profile.xml <em>publish</em> (which has an  MDB)</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><strong> </strong> </p><p>             <value>${jboss.server.home.url}deploy</value></p><p><value>file:///C:/10.DEV.NEW.3/modules/eac/appserver/jboss</value></p><p><value>file:///C:/10.DEV.NEW.3/modules/jms/appserver/jboss</value></p><p><value>file:///C:/10.DEV.NEW.3/modules/edesk/appserver/jboss</value></p><p><strong><value>file:///C:/10.DEV.NEW.3/modules/publish/appserver/jboss</value></strong></p><p><em><br/></em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p><strong>Then the things  get screwey </strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>17:28:04,483 INFO   [TomcatDeployment] deploy, ctxPath=/eac</p><p>17:28:06,006 INFO  [STDOUT]  Initializing application.  (C:\10.DEV.NEW.3\modules\eac\config\eac.appconfig.dna)</p><p>17:28:09,574 INFO  [STDOUT] Checking  initialization state for database 'eac'  (jdbc:sqlserver://DB-SPOP:1433;SelectMethod=cursor;DatabaseName=jboss_EAC)...</p><p>17:28:10,441 INFO  [STDOUT] URL  optimisation mode set to: none</p><p>17:28:10,472 INFO   [STDOUT]</p><p>     **************************************************************************</p><p>    Escalate Environment and Access  Control successfully started</p><p>     **************************************************************************</p><p>17:28:10,540 INFO   [TomcatDeployment] deploy, ctxPath=/jms</p><p>17:28:10,751 INFO  [EjbDeployer]  installing bean:  ejb/publish_ejb_default.jar#PubServerDBUtilTopicMDB,uid680989819</p><p>17:28:10,753 INFO  [EjbDeployer]    with dependencies:</p><p>17:28:10,754 INFO  [EjbDeployer]    and supplies:</p><p>17:28:10,755 INFO   [EjbDeployer]        jndi:null</p><p>17:28:10,838 INFO   [TomcatDeployment] deploy, ctxPath=/publish</p><p>17:28:11,016 INFO  [EjbModule]  Deploying PubServerDBUtilTopicMDB</p><p>17:28:11,069 WARN  [EjbModule] EJB  configured to bypass security. Please verifyif this is intended.  Bean=PubServerDBUtilTopicMDB  Deployment=vfsfile:/C:/10.DEV.NEW.3/modules/publish/appserver/jboss/deploy.last/publish.ear/publish_ejb_default.jar/</p><p>17:28:11,324 INFO   [TomcatDeployment] deploy, ctxPath=/edesk</p><p>17:28:12,080 INFO  [Http11Protocol]  Starting Coyote HTTP/1.1 on http-127.0.0.1-8080</p><p>17:28:12,119 INFO  [AjpProtocol]  Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009</p><p>17:28:12,140 INFO  [Http11Protocol]  Starting Coyote HTTP/1.1 on http-127.0.0.1-8443</p><p>17:28:12,159 INFO  [ServerImpl]  JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA  date=200905221053)] Started in 1m:41s:117ms</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I have no idea what's going on, JBoss pretends nothing is wrong, but why I don't see any of the other apps starting fine (jms, edesk and publish), no errors in any log file... </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>thanks for any idea, </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>ranjix</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/546131#546131">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Beginner's Corner at <a href="http://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>