<!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;">&#160;</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;">&#160;</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;">&#160;</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;">&#160;</p><p>so. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>Case 1 - If I have in&#160; profile.xml just eac, jms and edesk</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><strong> </strong>&#160;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;value&gt;${jboss.server.home.url}deploy&lt;/value&gt;</p><p>&lt;value&gt;file:///C:/10.DEV.NEW.3/modules/eac/appserver/jboss&lt;/value&gt;</p><p>&lt;value&gt;file:///C:/10.DEV.NEW.3/modules/jms/appserver/jboss&lt;/value&gt;</p><p>&lt;value&gt;file:///C:/10.DEV.NEW.3/modules/edesk/appserver/jboss&lt;/value&gt;</p><p><em>&lt;!--value&gt;file:///C:/10.DEV.NEW.3/modules/publish/appserver/jboss&lt;/value--&gt;</em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>Then the output&#160; of JBoss is fine</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><strong> </strong>&#160;</p><p>17:36:09,476 INFO&#160;&#160; [TomcatDeployment] deploy, ctxPath=/eac</p><p>17:36:11,136 INFO&#160; [STDOUT]&#160; Initializing application.&#160; (C:\10.DEV.NEW.3\modules\eac\config\eac.appconfig.dna)</p><p>17:36:14,757 INFO&#160; [STDOUT] Checking&#160; initialization state for database 'eac'&#160; (jdbc:sqlserver://DB-SPOP:1433;SelectMethod=cursor;DatabaseName=jboss_EAC)...</p><p>17:36:15,669 INFO&#160; [STDOUT] URL&#160; optimisation mode set to: none</p><p>17:36:15,678 INFO&#160;&#160; [STDOUT]</p><p>&#160;&#160;&#160;&#160; **************************************************************************</p><p>&#160;&#160;&#160; Escalate Environment and Access&#160; Control successfully started</p><p>&#160;&#160;&#160;&#160; **************************************************************************</p><p>17:36:15,756 INFO&#160;&#160; [TomcatDeployment] deploy, ctxPath=/jms</p><p>17:36:16,344 INFO&#160; [STDOUT]&#160; Initializing application.&#160; (C:\10.DEV.NEW.3\modules\jms\config\jms.appconfig.dna)</p><p>17:36:19,541 INFO&#160;&#160; [STDOUT]</p><p>&#160;&#160;&#160;&#160; **************************************************************************</p><p>&#160;&#160;&#160; Escalate JMS Server successfully&#160; started</p><p>&#160;&#160;&#160;&#160; **************************************************************************</p><p>17:36:19,628 INFO&#160;&#160; [TomcatDeployment] deploy, ctxPath=/edesk</p><p>17:36:20,497 INFO&#160; [STDOUT]&#160; Initializing application.&#160; (C:\10.DEV.NEW.3\modules\core\config\pdc.server.appconfig.dna)</p><p>17:36:20,695 ERROR [STDERR]&#160; Environment variable 'BMS_JMS_SERVER_NAME' missing for DNAList name&#160; 'server'</p><p>17:36:26,335 INFO&#160; [STDOUT] Could&#160; not find the 'startup' callback class 'com.bluemartini.dev.net.DevServer'.&#160;&#160; Ignoring.</p><p>17:36:26,427 INFO&#160; [STDOUT] Checking&#160; initialization state for database 'main'&#160; (jdbc:sqlserver://DB-SPOP:1433;SelectMethod=cursor;DatabaseName=jboss_MAIN)...</p><p>17:36:26,929 INFO&#160; [STDOUT] Checking&#160; initialization state for database 'store'&#160; (jdbc:sqlserver://DB-SPOP:1433;SelectMethod=cursor;DatabaseName=jboss_STORE)...</p><p>17:36:27,865 INFO&#160; [STDOUT] URL&#160; optimisation mode set to: none</p><p>17:36:27,893 INFO&#160; [STDOUT]&#160; Initializing rules engine...</p><p>17:36:27,935 INFO&#160; [STDOUT] Rules&#160; engine successfully initialized...</p><p>17:36:28,055 INFO&#160; [STDOUT]&#160; SearchIndexLoader.init()</p><p>17:36:28,113 INFO&#160; [STDOUT] BM JMS:&#160;&#160; Creating Topic Connection to JMS Server&#160; jnp://DB-SPOP:1099</p><p>17:36:28,769 INFO&#160; [STDOUT] BM JMS:&#160;&#160; Creating Queue Connection to JMS Server&#160; jnp://DB-SPOP:1099</p><p>17:36:28,858 INFO&#160; [STDOUT] BM JMS:&#160;&#160; Successfully connected to JMS Server&#160; jnp://DB-SPOP:1099</p><p>17:36:29,372 INFO&#160;&#160; [STDOUT]</p><p>&#160;&#160;&#160;&#160; **************************************************************************</p><p>&#160;&#160;&#160; Escalate Enterprise Desktop&#160; Server successfully started</p><p>&#160;&#160;&#160;&#160; **************************************************************************</p><p>17:36:29,597 INFO&#160; [Http11Protocol]&#160; Starting Coyote HTTP/1.1 on http-127.0.0.1-8080</p><p>17:36:29,633 INFO&#160; [AjpProtocol]&#160; Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009</p><p>17:36:29,651 INFO&#160; [Http11Protocol]&#160; Starting Coyote HTTP/1.1 on http-127.0.0.1-8443</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><strong> </strong>&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>Case 2 - if I add in&#160; profile.xml <em>publish</em> (which has an&#160; MDB)</strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;"><strong> </strong>&#160;</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;value&gt;${jboss.server.home.url}deploy&lt;/value&gt;</p><p>&lt;value&gt;file:///C:/10.DEV.NEW.3/modules/eac/appserver/jboss&lt;/value&gt;</p><p>&lt;value&gt;file:///C:/10.DEV.NEW.3/modules/jms/appserver/jboss&lt;/value&gt;</p><p>&lt;value&gt;file:///C:/10.DEV.NEW.3/modules/edesk/appserver/jboss&lt;/value&gt;</p><p><strong>&lt;value&gt;file:///C:/10.DEV.NEW.3/modules/publish/appserver/jboss&lt;/value&gt;</strong></p><p><em><br/></em></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><strong>Then the things&#160; get screwey </strong></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>17:28:04,483 INFO&#160;&#160; [TomcatDeployment] deploy, ctxPath=/eac</p><p>17:28:06,006 INFO&#160; [STDOUT]&#160; Initializing application.&#160; (C:\10.DEV.NEW.3\modules\eac\config\eac.appconfig.dna)</p><p>17:28:09,574 INFO&#160; [STDOUT] Checking&#160; initialization state for database 'eac'&#160; (jdbc:sqlserver://DB-SPOP:1433;SelectMethod=cursor;DatabaseName=jboss_EAC)...</p><p>17:28:10,441 INFO&#160; [STDOUT] URL&#160; optimisation mode set to: none</p><p>17:28:10,472 INFO&#160;&#160; [STDOUT]</p><p>&#160;&#160;&#160;&#160; **************************************************************************</p><p>&#160;&#160;&#160; Escalate Environment and Access&#160; Control successfully started</p><p>&#160;&#160;&#160;&#160; **************************************************************************</p><p>17:28:10,540 INFO&#160;&#160; [TomcatDeployment] deploy, ctxPath=/jms</p><p>17:28:10,751 INFO&#160; [EjbDeployer]&#160; installing bean:&#160; ejb/publish_ejb_default.jar#PubServerDBUtilTopicMDB,uid680989819</p><p>17:28:10,753 INFO&#160; [EjbDeployer]&#160;&#160;&#160; with dependencies:</p><p>17:28:10,754 INFO&#160; [EjbDeployer]&#160;&#160;&#160; and supplies:</p><p>17:28:10,755 INFO&#160;&#160; [EjbDeployer]&#160;&#160;&#160;&#160;&#160;&#160;&#160; jndi:null</p><p>17:28:10,838 INFO&#160;&#160; [TomcatDeployment] deploy, ctxPath=/publish</p><p>17:28:11,016 INFO&#160; [EjbModule]&#160; Deploying PubServerDBUtilTopicMDB</p><p>17:28:11,069 WARN&#160; [EjbModule] EJB&#160; configured to bypass security. Please verifyif this is intended.&#160; Bean=PubServerDBUtilTopicMDB&#160; 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&#160;&#160; [TomcatDeployment] deploy, ctxPath=/edesk</p><p>17:28:12,080 INFO&#160; [Http11Protocol]&#160; Starting Coyote HTTP/1.1 on http-127.0.0.1-8080</p><p>17:28:12,119 INFO&#160; [AjpProtocol]&#160; Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009</p><p>17:28:12,140 INFO&#160; [Http11Protocol]&#160; Starting Coyote HTTP/1.1 on http-127.0.0.1-8443</p><p>17:28:12,159 INFO&#160; [ServerImpl]&#160; JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA&#160; date=200905221053)] Started in 1m:41s:117ms</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</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;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>thanks for any idea, </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</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>