2 Replies Latest reply on Mar 5, 2002 9:00 PM by David Jencks

    JBoss 3 beta 2 deployment problem

    Thomas Phan Newbie

      I'm using JBoss 3 beta2 (CVS). I can deploy my stuffs in beta, but cannot with beta 2

      I've:
      - the required JARs, and esb.scheduler.jar (my mbean) in jboss/lib/
      - auth.conf in jboss/server/default/conf/
      - esb.ear (my application), esb-service.xml (my mbean, and mbeans for my JMS topic/queue), and mysql-esb-service.xml (database) in jboss/server/default/deploy/

      Seems that the order of starting the application and the datasource is wrong:

      2002-03-04 11:46:30,219 INFO [org.jboss.ejb.EjbModule] Deploying User
      2002-03-04 11:46:31,459 INFO [org.jboss.ejb.EjbModule] Deploying Sequence
      2002-03-04 11:46:31,463 INFO [org.jboss.ejb.EjbModule] Deploying Profile
      2002-03-04 11:46:31,467 INFO [org.jboss.ejb.EjbModule] Deploying Communication
      2002-03-04 11:46:31,471 INFO [org.jboss.ejb.EjbModule] Deploying Group
      2002-03-04 11:46:31,477 INFO [org.jboss.ejb.EjbModule] Deploying Role
      2002-03-04 11:46:31,481 INFO [org.jboss.ejb.EjbModule] Deploying Region
      2002-03-04 11:46:31,485 INFO [org.jboss.ejb.EjbModule] Deploying Address
      2002-03-04 11:46:31,489 INFO [org.jboss.ejb.EjbModule] Deploying BusinessUnit
      2002-03-04 11:46:31,493 INFO [org.jboss.ejb.EjbModule] Deploying CommunicationDetails
      2002-03-04 11:46:31,497 INFO [org.jboss.ejb.EjbModule] Deploying DBMgr
      2002-03-04 11:46:31,499 INFO [org.jboss.ejb.EjbModule] Deploying UserFacade
      2002-03-04 11:46:31,502 INFO [org.jboss.ejb.EjbModule] Deploying BusinessUnitFacade
      2002-03-04 11:46:31,504 INFO [org.jboss.ejb.EjbModule] Deploying Mailer
      2002-03-04 11:46:32,057 INFO [org.jboss.ejb.EjbModule] Deploying Logger
      2002-03-04 11:46:32,540 DEBUG [org.jboss.ejb.EntityContainer] Begin java:comp/env for EJB: Sequence
      2002-03-04 11:46:32,540 DEBUG [org.jboss.ejb.EntityContainer] TCL: java.net.URLClassLoader@49d886
      2002-03-04 11:46:32,543 DEBUG [org.jboss.ejb.EntityContainer] End java:comp/env for EJB: Sequence
      2002-03-04 11:46:32,550 DEBUG [org.jboss.proxy.ejb.ProxyFactory] Bound jmxName=jboss.j2ee:service=EJB,jndiName=ejb/Sequence, ha$
      2002-03-04 11:46:32,550 DEBUG [org.jboss.proxy.ejb.ProxyFactory] Proxy Factory for ejb/Sequence initialized
      2002-03-04 11:46:32,559 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.Sequence] Initializing CMP plugin for Sequence
      2002-03-04 11:46:32,823 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.Sequence] Loading standardjbosscmp-jdbc.xml : fi$
      2002-03-04 11:46:32,992 DEBUG [org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.Sequence] jar:njar:file:/var/jboss-all/build/out$
      2002-03-04 11:46:33,087 ERROR [org.jboss.ejb.EntityContainer] Exception in service lifecyle operation: create
      org.jboss.deployment.DeploymentException: Error: can't find data source: java:/esbDS
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.(JDBCEntityBridge.java:96)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.create(JDBCStoreManager.java:276)
      at org.jboss.ejb.plugins.CMPPersistenceManager.create(CMPPersistenceManager.java:134)
      at org.jboss.ejb.EntityContainer.create(EntityContainer.java:329)
      at org.jboss.ejb.Container.invoke(Container.java:783)
      at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:994)
      ...
      2002-03-04 11:46:33,097 ERROR [org.jboss.system.ServiceController] JMException thrown during ServiceProxy operation create on m$
      org.jboss.deployment.DeploymentException: Error: can't find data source: java:/esbDS
      at org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.(JDBCEntityBridge.java:96)
      at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.create(JDBCStoreManager.java:276)
      ...
      11:47:08,104 INFO [MainDeployer] Starting deployment of package: file:/var/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/esb-service.xml
      11:47:08,112 INFO [MainDeployer] Starting deployment of package: file:/var/jboss-all/build/output/jboss-3.0.0beta2/lib/esb.scheduler.jar
      11:47:08,126 INFO [MainDeployer] Successfully completed deployment of package: file:/var/jboss-all/build/output/jboss-3.0.0beta2/lib/esb.scheduler.jar
      11:47:08,194 INFO [modelUpdate] Creating
      11:47:08,194 INFO [modelUpdate] Created
      11:47:08,195 INFO [logger] Creating
      11:47:08,195 INFO [logger] Created
      11:47:08,195 INFO [mailer] Creating
      11:47:08,196 INFO [mailer] Created
      11:47:08,197 INFO [modelUpdate] Starting
      11:47:08,198 INFO [modelUpdate] Bound to JNDI name: topic/modelUpdate
      11:47:08,199 INFO [modelUpdate] Started
      11:47:08,199 INFO [logger] Starting
      11:47:08,200 INFO [logger] Bound to JNDI name: topic/logger
      11:47:08,201 INFO [logger] Started
      11:47:08,201 INFO [mailer] Starting
      11:47:08,203 INFO [mailer] Bound to JNDI name: queue/mailer
      11:47:08,205 INFO [mailer] Started
      11:47:08,205 INFO [MainDeployer] Successfully completed deployment of package: file:/var/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/esb-service.xml
      11:47:08,206 INFO [MainDeployer] Starting deployment of package: file:/var/jboss-all/build/output/jboss-3.0.0beta2/server/default/deploy/mysql-esb-service.xml
      11:47:08,419 INFO [ConnectionFactoryLoader] Creating
      11:47:08,419 INFO [ConnectionFactoryLoader] Created
      11:47:08,420 INFO [ConnectionFactoryLoader] Creating
      11:47:08,420 INFO [ConnectionFactoryLoader] Created
      11:47:08,421 INFO [ConnectionFactoryLoader] Starting
      11:47:08,893 INFO [esbDS] PrincipalMapping properties set to: {password=?, userName=?}
      11:47:09,541 INFO [esbDS] Bound connection factory for resource adapter 'jboss.jca:service=RARDeployment,name=Minerva JDBC LocalTransaction ResourceAdapter' to JNDI name 'java:/esbDS'

        • 1. Re: JBoss 3 beta 2 deployment problem
          Thomas Phan Newbie

          Hi,

          Do any one able to start JBoss 3 Beta 2 (the current CVS) with a EAR file? I want to get some instructions, since the file structure is changed. Thanks

          • 2. Re: JBoss 3 beta 2 deployment problem
            David Jencks Master

            Sure, there are some working ears in the (passing portion of the ) testsuite.

            Combine your 2 service.xml files into one jboss-service.xml. You probably want the db mbean to go first. To make sure the proper classes are available when you start, include
            in jboss-service.xml.

            Make a sar containing the mbean classes and the jboss-service.xml file you just made (location: META-INF/jboss-service.xml)

            Put this sar into your ear.

            What should happen is: jboss will deploy subpackages of ear first, starting with the sar, then the ejb jars, then wars. "Deploying" the ear doesn't really do anything, but it will happen last.