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

null null do-not-reply at jboss.com
Fri Jun 4 10:45:21 EDT 2010


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

"problems with an EAR file with MDBs"

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

--------------------------------------------------------------
Thanks for the answer, Jaikiran. 

The 4 apps are very similar in the way they start (same code, different parameters), in the sense that they do contain a servlet (same servlet in each app) which should execute on startup. Indeed, the log messages are printed when the servlet finishes executing. 
What's bothering is that I don't see any exceptions anywhere (jboss logs, our own apps logs), so it looks like besides having JBoss recognize that there is a WAR which should be deployed (line with the ctxPath), nothing else happens. Also, the introduction of the MDB seems to be the trigger for the issue. For a test, I commented out in the publish.ear/META-INF/application.xml the ejb module. After restarting the server, all of the apps start correctly - see log underneath. Putting back the ejb module in the application.xml takes me back to the strange behavior, in which only EAC seems to start. 


*With the ejb module commented out in application.xml, everything starts ok.* 
*
*
10:24:58,008 INFO  [TomcatDeployment] deploy, ctxPath=/eac
10:24:59,469 INFO  [STDOUT] Initializing application. (C:\10.DEV.NEW.3\modules\e
ac\config\eac.appconfig.dna)
10:25:03,356 INFO  [STDOUT] Checking initialization state for database 'eac' (jd
bc:sqlserver://DB-SPOP:1433;SelectMethod=cursor;DatabaseName=jboss_EAC)...
10:25:04,264 INFO  [STDOUT] URL optimisation mode set to: none
10:25:04,273 INFO  [STDOUT]
    **************************************************************************
    Escalate Environment and Access Control successfully started
    **************************************************************************
10:25:04,351 INFO  [TomcatDeployment] deploy, ctxPath=/edesk
10:25:05,116 INFO  [STDOUT] Initializing application. (C:\10.DEV.NEW.3\modules\c
ore\config\pdc.server.appconfig.dna)
10:25:05,281 ERROR [STDERR] Environment variable 'BMS_JMS_SERVER_NAME' missing f
or DNAList name 'server'
10:25:10,662 INFO  [STDOUT] Could not find the 'startup' callback class 'com.blu
emartini.dev.net.DevServer'.  Ignoring.
10:25:10,744 INFO  [STDOUT] Checking initialization state for database 'main' (j
dbc:sqlserver://DB-SPOP:1433;SelectMethod=cursor;DatabaseName=jboss_MAIN)...
10:25:11,196 INFO  [STDOUT] Checking initialization state for database 'store' (
jdbc:sqlserver://DB-SPOP:1433;SelectMethod=cursor;DatabaseName=jboss_STORE)...
10:25:12,185 INFO  [STDOUT] URL optimisation mode set to: none
10:25:12,212 INFO  [STDOUT] Initializing rules engine...
10:25:12,251 INFO  [STDOUT] Rules engine successfully initialized...
10:25:12,319 INFO  [STDOUT] SearchIndexLoader.init()
10:25:12,373 INFO  [STDOUT] BM JMS:  Creating Topic Connection to JMS Server jnp
://DB-SPOP:1099
10:25:13,136 INFO  [STDOUT] BM JMS:  Creating Queue Connection to JMS Server jnp
://DB-SPOP:1099
10:25:13,221 INFO  [STDOUT] BM JMS:  Successfully connected to JMS Server jnp://
DB-SPOP:1099
10:25:13,680 INFO  [STDOUT]
    **************************************************************************
    Escalate Enterprise Desktop Server successfully started
    **************************************************************************
10:25:13,753 INFO  [TomcatDeployment] deploy, ctxPath=/jms
10:25:14,437 INFO  [STDOUT] Initializing application. (C:\10.DEV.NEW.3\modules\j
ms\config\jms.appconfig.dna)
10:25:19,577 INFO  [STDOUT]
    **************************************************************************
    Escalate JMS Server successfully started
    **************************************************************************
10:25:19,678 INFO  [TomcatDeployment] deploy, ctxPath=/publish
10:25:20,270 INFO  [STDOUT] Initializing application. (C:\10.DEV.NEW.3\modules\p
ublish\config\publish.appconfig.dna)
10:25:20,430 ERROR [STDERR] Environment variable 'BMS_JMS_SERVER_NAME' missing f
or DNAList name 'server'
10:25:24,235 INFO  [STDOUT] Could not find the 'startup' callback class 'com.blu
emartini.dev.net.DevServer'.  Ignoring.
10:25:24,340 INFO  [STDOUT] Checking initialization state for database 'main' (j
dbc:sqlserver://DB-SPOP:1433;SelectMethod=cursor;DatabaseName=jboss_MAIN)...
10:25:24,875 INFO  [STDOUT] SearchIndexLoader.init()
10:25:25,227 INFO  [STDOUT] BM JMS:  Creating Topic Connection to JMS Server jnp
://DB-SPOP:1099
10:25:25,265 INFO  [STDOUT] BM JMS:  Creating Queue Connection to JMS Server jnp
://DB-SPOP:1099
10:25:25,291 INFO  [STDOUT] BM JMS:  Successfully connected to JMS Server jnp://
DB-SPOP:1099
10:25:25,389 INFO  [STDOUT]
    **************************************************************************
    Escalate Publishing Server successfully started
    **************************************************************************
10:25:25,641 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8
080
10:25:25,677 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
10:25:25,695 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8
443
10:25:25,712 INFO  [ServerImpl] JBoss (Microcontainer) [5.1.0.GA (build: SVNTag=
JBoss_5_1_0_GA date=200905221053)] Started in 1m:59s:111ms


I also wonder how does the MDB/EJB from the publish app interfere with the earlier start of another app (let's say JMS). I could see this happening if the JBoss server starts these apps somehow in parallel, with publish starting actually before jms finishing. If this is the case, is there any way to specify that I want these apps to start sequentially? 


thanks for any suggestion/
ranjix

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

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

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/20100604/bccaec12/attachment-0001.html 


More information about the jboss-user mailing list