3 Replies Latest reply on Feb 7, 2003 9:03 AM by vasilis

    Error deploying a rar file

    vasilis

      When I deploy on a 3.0.3 server the descriptor below, I get the following error:




      jboss.jca:service=RARDeployer

      <depends optional-attribute-name="ManagedConnectionFactoryName">


      dbAdapter
      <depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment, name=Database Adapter



      <depends optional-attribute-name="ManagedConnectionPool">


      0
      50
      5000
      15
      ByContainer



      <depends optional-attribute-name="CachedConnectionManager">
      jboss.jca:service=CachedConnectionManager

      <depends optional-attribute-name="JaasSecurityManagerService">
      jboss.security:service=JaasSecurityManager






      22:34:22,625 INFO [JBossManagedConnectionPool] Stopping
      22:34:22,625 INFO [JBossManagedConnectionPool] Stopped
      22:34:22,625 INFO [NoTxConnectionManager] Destroying
      22:34:22,640 INFO [NoTxConnectionManager] Destroyed
      22:34:22,640 INFO [JBossManagedConnectionPool] Destroying
      22:34:22,640 INFO [JBossManagedConnectionPool] Destroyed
      22:34:22,640 INFO [MainDeployer] Cleaned Deployment file:/D:/JBoss303/jboss-all/catalina/output/jboss-3.0.3/server/defa
      ult/deploy/dba-service.xml
      22:34:22,640 INFO [MainDeployer] Undeployed file:/D:/JBoss303/jboss-all/catalina/output/jboss-3.0.3/server/default/depl
      oy/dba-service.xml
      22:34:22,656 INFO [MainDeployer] Starting deployment of package: file:/D:/JBoss303/jboss-all/catalina/output/jboss-3.0.
      3/server/default/deploy/dba-service.xml
      22:34:22,734 WARN [ServiceController] jboss.jca:service=dba,name=dbAdapter does not implement any Service methods
      22:34:22,750 INFO [JBossManagedConnectionPool] Creating
      22:34:22,750 INFO [JBossManagedConnectionPool] Created
      22:34:22,750 INFO [JBossManagedConnectionPool] Starting
      22:34:22,750 INFO [JBossManagedConnectionPool] Started
      22:34:22,750 INFO [MainDeployer] Deployed package: file:/D:/JBoss303/jboss-all/catalina/output/jboss-3.0.3/server/defau
      lt/deploy/dba-service.xml
      22:34:22,750 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
      Cause: Incomplete Deployment listing:
      Packages waiting for a deployer:

      Incompletely deployed packages:

      MBeans waiting for classes:

      MBeans waiting for other MBeans:
      [ObjectName: jboss.jca:service=NoTxCM, name=dbAdapter
      state: CONFIGURED
      I Depend On: jboss.jca:service=RARDeployer
      jboss.jca:service=dba,name=dbAdapter
      jboss.jca:service=NoTxPool,name=dbAdapter
      jboss.jca:service=CachedConnectionManager
      jboss.security:service=JaasSecurityManager

      Depends On Me: , ObjectName: jboss.jca:service=dba,name=dbAdapter
      state: CONFIGURED
      I Depend On: jboss.jca:service=RARDeployment, name=Database Adapter


      The MainDeployer fails because of the 3 ServiceContext, the NoTxCM and NoTxDS stay on Configured state, but the pool gets to Running. So, the MainDeployer.checkIncompleteDeployments fails because of the state of the two ServiceContext.

      Any suggestions?

      vasilis

        • 1. Re: Error deploying a rar file
          davidjencks

          Do you really have a resource adapter deployed whose display-name is specified in ra.xml as Database Adapter? If so check that there are no extra spaces around any of the names. Most jboss deployment code is very lazy about trimming whitespace for you.

          • 2. Re: Error deploying a rar file
            vasilis

            David,

            Thanks for answering my message.
            I checked for spaces in the ra and the service descriptors. I made sure there are none. But it didn't seem to make a difference. I have traced the code, and it seems that the descriptor information gets read properly. I can not follow the deployers completely in terms of dependencies, so the NoTxCM and NoTxDS don't start.

            Running from source the default 3.0.3 server, I have hsqldb, oracle, jboss-xa and local services running and the example file adapter deployed with no problems.

            Any help will be appreciated.

            Vasilis

            • 3. Re: Error deploying a rar file
              vasilis

              David,

              You were right. The extra spaces on the descriptors made the difference. After playing with it for while, I fixed some other issues and the rar got deployed properly.

              thanks