[jboss-jira] [JBoss JIRA] Created: (JBAS-4203) datasource initialization after webapp is loaded

Sudip Shretsha (JIRA) jira-events at lists.jboss.org
Wed Mar 14 17:27:32 EDT 2007


datasource initialization after webapp is loaded
------------------------------------------------

                 Key: JBAS-4203
                 URL: http://jira.jboss.com/jira/browse/JBAS-4203
             Project: JBoss Application Server
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Other
    Affects Versions: JBossAS-4.0.4.GA
         Environment: OS: Fedora Core 4; JVM: Sun J2SE 1.5.0_10
            Reporter: Sudip Shretsha


Just for clarification: my .war filename: app.war and the deployed dir name in deploy folder: myApp.war.
I have deployed my expanded webapp (app.war) in a directory myApp.war in the deploy folder.  I have my datasources defined in mysql-ds.xml in the deploy folder as well.  Problem is I initialize Hibernate SessionFactories in a class that extends Struts' Plugin (**I am not using .har) during the application startup.  But in JBoss, this initialization seems to occur before JBoss initializes the datasources.....
Because of this deployment fails the first time.  Then right after JBoss deploys the datasources, it starts to deploy my application again and everything seems to work.  Even though it works, it is confusing if you are deploying multiple apps in the same server.

Strangely, this problem does not occur if I directly deploy my application as app.war in the deploy folder.  In this case, JBoss seems to deploy the datasources first, then app.war sequentially... that way application deployment happens correctly the first time.

tried various suggestions on the user forum, it still does not seem to work.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list