[jboss-user] [Beginner's Corner] - problems with an EAR file with MDBs

null null do-not-reply at jboss.com
Thu Jun 3 18:24:59 EDT 2010


null null [http://community.jboss.org/people/ranjix] created the discussion

"problems with an EAR file with MDBs"

To view the discussion, visit: http://community.jboss.org/message/546131#546131

--------------------------------------------------------------
Hey guys, maybe you know what's going on...

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. 

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. 

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. 

so. 

*Case 1 - If I have in  profile.xml just eac, jms and edesk*
** 
             <value>${jboss.server.home.url}deploy</value>
<value>file:///C:/10.DEV.NEW.3/modules/eac/appserver/jboss</value>
<value>file:///C:/10.DEV.NEW.3/modules/jms/appserver/jboss</value>
<value>file:///C:/10.DEV.NEW.3/modules/edesk/appserver/jboss</value>
+<!--value>file:///C:/10.DEV.NEW.3/modules/publish/appserver/jboss</value-->+

*Then the output  of JBoss is fine*
** 
17:36:09,476 INFO   [TomcatDeployment] deploy, ctxPath=/eac
17:36:11,136 INFO  [STDOUT]  Initializing application.  (C:\10.DEV.NEW.3\modules\eac\config\eac.appconfig.dna)
17:36:14,757 INFO  [STDOUT] Checking  initialization state for database 'eac'  (jdbc:sqlserver://DB-SPOP:1433;SelectMethod=cursor;DatabaseName=jboss_EAC)...
17:36:15,669 INFO  [STDOUT] URL  optimisation mode set to: none
17:36:15,678 INFO   [STDOUT]
     **************************************************************************
    Escalate Environment and Access  Control successfully started
     **************************************************************************
17:36:15,756 INFO   [TomcatDeployment] deploy, ctxPath=/jms
17:36:16,344 INFO  [STDOUT]  Initializing application.  (C:\10.DEV.NEW.3\modules\jms\config\jms.appconfig.dna)
17:36:19,541 INFO   [STDOUT]
     **************************************************************************
    Escalate JMS Server successfully  started
     **************************************************************************
17:36:19,628 INFO   [TomcatDeployment] deploy, ctxPath=/edesk
17:36:20,497 INFO  [STDOUT]  Initializing application.  (C:\10.DEV.NEW.3\modules\core\config\pdc.server.appconfig.dna)
17:36:20,695 ERROR [STDERR]  Environment variable 'BMS_JMS_SERVER_NAME' missing for DNAList name  'server'
17:36:26,335 INFO  [STDOUT] Could  not find the 'startup' callback class 'com.bluemartini.dev.net.DevServer'.   Ignoring.
17:36:26,427 INFO  [STDOUT] Checking  initialization state for database 'main'  (jdbc:sqlserver://DB-SPOP:1433;SelectMethod=cursor;DatabaseName=jboss_MAIN)...
17:36:26,929 INFO  [STDOUT] Checking  initialization state for database 'store'  (jdbc:sqlserver://DB-SPOP:1433;SelectMethod=cursor;DatabaseName=jboss_STORE)...
17:36:27,865 INFO  [STDOUT] URL  optimisation mode set to: none
17:36:27,893 INFO  [STDOUT]  Initializing rules engine...
17:36:27,935 INFO  [STDOUT] Rules  engine successfully initialized...
17:36:28,055 INFO  [STDOUT]  SearchIndexLoader.init()
17:36:28,113 INFO  [STDOUT] BM JMS:   Creating Topic Connection to JMS Server  jnp://DB-SPOP:1099
17:36:28,769 INFO  [STDOUT] BM JMS:   Creating Queue Connection to JMS Server  jnp://DB-SPOP:1099
17:36:28,858 INFO  [STDOUT] BM JMS:   Successfully connected to JMS Server  jnp://DB-SPOP:1099
17:36:29,372 INFO   [STDOUT]
     **************************************************************************
    Escalate Enterprise Desktop  Server successfully started
     **************************************************************************
17:36:29,597 INFO  [Http11Protocol]  Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
17:36:29,633 INFO  [AjpProtocol]  Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
17:36:29,651 INFO  [Http11Protocol]  Starting Coyote HTTP/1.1 on http-127.0.0.1-8443
** 


*Case 2 - if I add in  profile.xml +publish+ (which has an  MDB)*
** 
             <value>${jboss.server.home.url}deploy</value>
<value>file:///C:/10.DEV.NEW.3/modules/eac/appserver/jboss</value>
<value>file:///C:/10.DEV.NEW.3/modules/jms/appserver/jboss</value>
<value>file:///C:/10.DEV.NEW.3/modules/edesk/appserver/jboss</value>
*<value>file:///C:/10.DEV.NEW.3/modules/publish/appserver/jboss</value>*
+
+

*Then the things  get screwey* 

17:28:04,483 INFO   [TomcatDeployment] deploy, ctxPath=/eac
17:28:06,006 INFO  [STDOUT]  Initializing application.  (C:\10.DEV.NEW.3\modules\eac\config\eac.appconfig.dna)
17:28:09,574 INFO  [STDOUT] Checking  initialization state for database 'eac'  (jdbc:sqlserver://DB-SPOP:1433;SelectMethod=cursor;DatabaseName=jboss_EAC)...
17:28:10,441 INFO  [STDOUT] URL  optimisation mode set to: none
17:28:10,472 INFO   [STDOUT]
     **************************************************************************
    Escalate Environment and Access  Control successfully started
     **************************************************************************
17:28:10,540 INFO   [TomcatDeployment] deploy, ctxPath=/jms
17:28:10,751 INFO  [EjbDeployer]  installing bean:  ejb/publish_ejb_default.jar#PubServerDBUtilTopicMDB,uid680989819
17:28:10,753 INFO  [EjbDeployer]    with dependencies:
17:28:10,754 INFO  [EjbDeployer]    and supplies:
17:28:10,755 INFO   [EjbDeployer]        jndi:null
17:28:10,838 INFO   [TomcatDeployment] deploy, ctxPath=/publish
17:28:11,016 INFO  [EjbModule]  Deploying PubServerDBUtilTopicMDB
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/
17:28:11,324 INFO   [TomcatDeployment] deploy, ctxPath=/edesk
17:28:12,080 INFO  [Http11Protocol]  Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
17:28:12,119 INFO  [AjpProtocol]  Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
17:28:12,140 INFO  [Http11Protocol]  Starting Coyote HTTP/1.1 on http-127.0.0.1-8443
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


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... 


thanks for any idea, 

ranjix

--------------------------------------------------------------

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

Start a new discussion in Beginner's Corner at Community
[http://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/20100603/67ed9947/attachment-0001.html 


More information about the jboss-user mailing list