3 Replies Latest reply on Jul 10, 2002 3:24 AM by John Bresnahan

    Error deploying RA

    John Bresnahan Newbie

      I have an RA that I am tring to deploy in jboss-3.0.0. I uses no transactions and implments the cci interfaces. I have it in a rar file:

      [bresnaha@buzztroll deploy]$ jar tf globusjm-ra.rar
      META-INF/
      META-INF/MANIFEST.MF
      META-INF/ra.xml
      globusjm-ra.jar

      and a service file

      [bresnaha@buzztroll deploy]$ ls -l globusjm-service.xml
      -rw-rw-r-- 1 bresnaha bresnaha 2131 Jul 9 16:43 globusjm-service.xml
      [bresnaha@buzztroll deploy]$ ls -l

      both are in .../jboss-3.0.0/server/default/deploy

      when jboss starts up i get the following error:

      16:48:34,662 INFO [LocalTxConnectionManager] Starting
      16:48:34,774 ERROR [RARDeployment] Could not find ManagedConnectionFactory class:

      org.globus.jobmanager.connector.JobManagerManagedConnectionFactory

      Any thoughts on why this could be?



      ra.xml:

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE connector PUBLIC "-//Sun Microsystems, Inc.//DTD Connector 1.0//EN" "http://java.sun.com/dtd/connector_1_0.dtd">


      <display-name>JobManagerRA</display-name>
      <vendor-name>Globus</vendor-name>
      <spec-version>1.0</spec-version>
      <eis-type>Not Sure</eis-type>
      1.0

      <managedconnectionfactory-class>
      org.globus.jobmanager.connector.JobManagerManagedConnectionFactory
      </managedconnectionfactory-class>
      <connectionfactory-interface>
      javax.resource.cci.ConnectionFactory
      </connectionfactory-interface>
      <connectionfactory-impl-class>
      org.globus.jobmanager.connector.JobManagerConnectionFactory
      </connectionfactory-impl-class>
      <connection-interface>
      javax.resource.cci.Connection
      </connection-interface>
      <connection-impl-class>
      org.globus.jobmanager.connector.JobManagerConnection
      </connection-impl-class>
      <transaction-support>NoTransaction</transaction-support>
      <authentication-mechanism>
      <authentication-mechanism-type>
      BasicPassword
      </authentication-mechanism-type>
      <credential-interface>
      javax.resource.security.PasswordCredential
      </credential-interface>
      </authentication-mechanism>
      <reauthentication-support>false</reauthentication-support>




      globusjm-service.xml

      <?xml version="1.0" encoding="UTF-8"?>



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


      JobManagerRA



      <config-property name="DataSourceName"
      type="java.lang.String">
      java:/DefaultDS
      </config-property>


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




      <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:name=JaasSecurityManager



      java:/TransactionManager

      jboss.jca:service=RARDeployer





      Thanks for any and all help.

        • 1. Re: Error deploying RA
          David Jencks Master

          here are the results with the stack traces trimmed. Also I am attaching server.log as well. I appreciated any help.


          -3.0.0/server/default/deploy/globusjm-ra.rar
          00:30:53,175 INFO [RARDeployer] About to undeploy RARDeploymentMBean, objectname: jboss.jca:service=RARDeployment,name=JobManagerRA
          00:30:53,176 INFO [LocalTxConnectionManager] Destroying
          00:30:53,178 INFO [JCAManagedConnectionFactory] JCAManagedConnectionFactory.preDeregister(): JCAManagedConnectionFactory
          00:30:53,179 INFO [JCAConnectionFactory] JCAConnectionFactory.preDeregister(): JCAConnectionFactory
          00:30:53,195 INFO [LocalTxConnectionManager] Destroyed
          00:30:53,199 INFO [MainDeployer] not deleting localUrl, it is null or not a copy: njar:file:/home/bresnaha/Dev/GGF5/jboss-3.0.0/server/default/tmp/deploy/server/default/deploy/globusjm-ra.rar/57.globusjm-ra.rar^/globusjm-ra.jar
          00:30:53,199 INFO [MainDeployer] Undeployed njar:file:/home/bresnaha/Dev/GGF5/jboss-3.0.0/server/default/tmp/deploy/server/default/deploy/globusjm-ra.rar/57.globusjm-ra.rar^/globusjm-ra.jar
          00:30:53,201 INFO [MainDeployer] Cleaned Deployment file:/home/bresnaha/Dev/GGF5/jboss-3.0.0/server/default/deploy/globusjm-ra.rar
          00:30:53,203 INFO [MainDeployer] Undeployed file:/home/bresnaha/Dev/GGF5/jboss-3.0.0/server/default/deploy/globusjm-ra.rar
          00:30:53,205 INFO [MainDeployer] Starting deployment of package: file:/home/bresnaha/Dev/GGF5/jboss-3.0.0/server/default/deploy/globusjm-ra.rar
          00:30:53,236 WARN [ServiceController] jboss.jca:service=RARDeployment,name=JobManagerRA does not implement any Service methods
          00:30:53,238 WARN [ServiceController] jboss.jca:service=LocalTxDS,name=JobManagerRA does not implement any Service methods
          00:30:53,241 INFO [LocalTxConnectionManager] Creating
          00:30:53,251 INFO [LocalTxConnectionManager] Created
          00:30:53,270 INFO [LocalTxConnectionManager] Starting
          00:30:53,338 ERROR [RARDeployment] Could not find ManagedConnectionFactory class:
          org.globus.jobmanager.connector.JobManagerManagedConnectionFactory

          java.lang.ClassNotFoundException:
          org.globus.jobmanager.connector.JobManagerManagedConnectionFactory

          at org.jboss.mx.loading.UnifiedLoaderRepository.loadClass(UnifiedLoaderRepository.java:152)


          <stack trace>

          00:30:53,346 ERROR [LocalTxConnectionManager] Starting failed
          org.jboss.deployment.DeploymentException: Could not find ManagedConnectionFactory class:
          org.globus.jobmanager.connector.JobManagerManagedConnectionFactory

          at org.jboss.resource.connectionmanager.RARDeployment.startManagedConnectionFactory(RARDeployment.java:542)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


          <stack trace>

          00:30:53,379 ERROR [RARDeployer] Problem deploying RARDeployment MBean
          org.jboss.deployment.DeploymentException: Could not find ManagedConnectionFactory class:
          org.globus.jobmanager.connector.JobManagerManagedConnectionFactory


          <stack trace>

          00:30:53,385 WARN [NestedThrowable] Duplicate throwable nesting of same base type: class org.jboss.deployment.DeploymentException is assignable from: class org.jboss.deployment.DeploymentException
          00:30:53,389 ERROR [MainDeployer] could not start deployment: file:/home/bresnaha/Dev/GGF5/jboss-3.0.0/server/default/deploy/globusjm-ra.rar
          org.jboss.deployment.DeploymentException: Problem making RARDeployment MBean; - nested throwable: (org.jboss.deployment.DeploymentException: Could not find ManagedConnectionFactory class:
          org.globus.jobmanager.connector.JobManagerManagedConnectionFactory
          )
          at org.jboss.resource.RARDeployer.start(RARDeployer.java:217)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)


          <stack trace>


          00:30:53,396 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@3a8a0e55{ url=file:/home/bresnaha/Dev/GGF5/jboss-3.0.0/server/default/deploy/globusjm-ra.rar, deployedLastModified=1026250981000 }
          org.jboss.deployment.DeploymentException: Problem making RARDeployment MBean; - nested throwable: (org.jboss.deployment.DeploymentException: Could not find ManagedConnectionFactory class:
          org.globus.jobmanager.connector.JobManagerManagedConnectionFactory
          )
          at org.jboss.resource.RARDeployer.start(RARDeployer.java:217)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)


          <stack trace>

          • 2. Re: Error deploying RA
            John Bresnahan Newbie

            here are the results with the stack traces trimmed. Also I am attaching server.log as well. I appreciated any help.


            -3.0.0/server/default/deploy/globusjm-ra.rar
            00:30:53,175 INFO [RARDeployer] About to undeploy RARDeploymentMBean, objectname: jboss.jca:service=RARDeployment,name=JobManagerRA
            00:30:53,176 INFO [LocalTxConnectionManager] Destroying
            00:30:53,178 INFO [JCAManagedConnectionFactory] JCAManagedConnectionFactory.preDeregister(): JCAManagedConnectionFactory
            00:30:53,179 INFO [JCAConnectionFactory] JCAConnectionFactory.preDeregister(): JCAConnectionFactory
            00:30:53,195 INFO [LocalTxConnectionManager] Destroyed
            00:30:53,199 INFO [MainDeployer] not deleting localUrl, it is null or not a copy: njar:file:/home/bresnaha/Dev/GGF5/jboss-3.0.0/server/default/tmp/deploy/server/default/deploy/globusjm-ra.rar/57.globusjm-ra.rar^/globusjm-ra.jar
            00:30:53,199 INFO [MainDeployer] Undeployed njar:file:/home/bresnaha/Dev/GGF5/jboss-3.0.0/server/default/tmp/deploy/server/default/deploy/globusjm-ra.rar/57.globusjm-ra.rar^/globusjm-ra.jar
            00:30:53,201 INFO [MainDeployer] Cleaned Deployment file:/home/bresnaha/Dev/GGF5/jboss-3.0.0/server/default/deploy/globusjm-ra.rar
            00:30:53,203 INFO [MainDeployer] Undeployed file:/home/bresnaha/Dev/GGF5/jboss-3.0.0/server/default/deploy/globusjm-ra.rar
            00:30:53,205 INFO [MainDeployer] Starting deployment of package: file:/home/bresnaha/Dev/GGF5/jboss-3.0.0/server/default/deploy/globusjm-ra.rar
            00:30:53,236 WARN [ServiceController] jboss.jca:service=RARDeployment,name=JobManagerRA does not implement any Service methods
            00:30:53,238 WARN [ServiceController] jboss.jca:service=LocalTxDS,name=JobManagerRA does not implement any Service methods
            00:30:53,241 INFO [LocalTxConnectionManager] Creating
            00:30:53,251 INFO [LocalTxConnectionManager] Created
            00:30:53,270 INFO [LocalTxConnectionManager] Starting
            00:30:53,338 ERROR [RARDeployment] Could not find ManagedConnectionFactory class:
            org.globus.jobmanager.connector.JobManagerManagedConnectionFactory

            java.lang.ClassNotFoundException:
            org.globus.jobmanager.connector.JobManagerManagedConnectionFactory

            at org.jboss.mx.loading.UnifiedLoaderRepository.loadClass(UnifiedLoaderRepository.java:152)


            <stack trace>

            00:30:53,346 ERROR [LocalTxConnectionManager] Starting failed
            org.jboss.deployment.DeploymentException: Could not find ManagedConnectionFactory class:
            org.globus.jobmanager.connector.JobManagerManagedConnectionFactory

            at org.jboss.resource.connectionmanager.RARDeployment.startManagedConnectionFactory(RARDeployment.java:542)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)


            <stack trace>

            00:30:53,379 ERROR [RARDeployer] Problem deploying RARDeployment MBean
            org.jboss.deployment.DeploymentException: Could not find ManagedConnectionFactory class:
            org.globus.jobmanager.connector.JobManagerManagedConnectionFactory


            <stack trace>

            00:30:53,385 WARN [NestedThrowable] Duplicate throwable nesting of same base type: class org.jboss.deployment.DeploymentException is assignable from: class org.jboss.deployment.DeploymentException
            00:30:53,389 ERROR [MainDeployer] could not start deployment: file:/home/bresnaha/Dev/GGF5/jboss-3.0.0/server/default/deploy/globusjm-ra.rar
            org.jboss.deployment.DeploymentException: Problem making RARDeployment MBean; - nested throwable: (org.jboss.deployment.DeploymentException: Could not find ManagedConnectionFactory class:
            org.globus.jobmanager.connector.JobManagerManagedConnectionFactory
            )
            at org.jboss.resource.RARDeployer.start(RARDeployer.java:217)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)


            <stack trace>


            00:30:53,396 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@3a8a0e55{ url=file:/home/bresnaha/Dev/GGF5/jboss-3.0.0/server/default/deploy/globusjm-ra.rar, deployedLastModified=1026250981000 }
            org.jboss.deployment.DeploymentException: Problem making RARDeployment MBean; - nested throwable: (org.jboss.deployment.DeploymentException: Could not find ManagedConnectionFactory class:
            org.globus.jobmanager.connector.JobManagerManagedConnectionFactory
            )
            at org.jboss.resource.RARDeployer.start(RARDeployer.java:217)
            at org.jboss.deployment.MainDeployer.start(MainDeployer.java:678)
            at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:513)


            <stack trace>

            • 3. Re: Error deploying RA
              John Bresnahan Newbie

              It seems those errors are due to the whitespace in my xml files (as you pointed out on the other list). Things are working for me now, thanks much.