2 Replies Latest reply on May 17, 2005 6:32 AM by Nikolay Tsankov

    Moving simple JCA CCI adapter (not DataSource) from Weblogic

    Mister Zzz Newbie

      Hi guys.

      We're moving our software developed to run on BEA Weblogic 8.1 to JBoss (we're running the latest 4.0.1sp1 and 3.2.6).

      I've got an EAR, combining a simple JCA Adapter's RAR with Web application' WAR, working fine on Weblogic server. I've got the ra.xml like the following:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE connector PUBLIC '-//Sun Microsystems, Inc.//DTD Connector 1.0//EN' 'http://java.sun.com/j2ee/dtds/connector_1_0.dtd'>
      
      <connector>
      
       <display-name>zJCA Adapter</display-name>
       <vendor-name>BigCompany, LLC</vendor-name>
       <spec-version>1.0</spec-version>
       <eis-type>File Exec</eis-type>
       <version>1.0</version>
      
       <resourceadapter>
       <managedconnectionfactory-class>
       zjca.ZManagedConnectionFactory
       </managedconnectionfactory-class>
      
       <connectionfactory-interface>
       javax.resource.cci.ConnectionFactory
       </connectionfactory-interface>
      
       <connectionfactory-impl-class>
       zjca.ZConnectionFactory
       </connectionfactory-impl-class>
      
       <connection-interface>
       javax.resource.cci.Connection
       </connection-interface>
      
       <connection-impl-class>
       zjca.ZConnection
       </connection-impl-class>
      
       <transaction-support>
       NoTransaction
       </transaction-support>
      
       <reauthentication-support>false</reauthentication-support>
       </resourceadapter>
      
      </connector>
      


      also, I've a Weblogic-specific config named weblogic-ra.xml:

      <?xml version="1.0"?>
      <!DOCTYPE weblogic-connection-factory-dd PUBLIC '-//BEA Systems, Inc.//DTD WebLogic 6.0.0 Connector//EN' 'http://www.bea.com/servers/wls600/dtd/weblogic600-ra.dtd'>
      
      <weblogic-connection-factory-dd>
      
       <connection-factory-name>ZConnectionFactory</connection-factory-name>
       <jndi-name>zjcaAdapter</jndi-name>
      
      </weblogic-connection-factory-dd>
      


      I thought that deployment to JBoss can be as easy as with Weblogic, but unfortunetly, it failed. I have already checked the doc, look at the examples, but with no luck. Deploying my EAR gives me nothing more then:



      13:18:32,623 INFO [EARDeployer] Init J2EE application: file:/C:/jboss-4.0.1sp1/server/default/deploy/zjca.ear
      13:18:34,145 INFO [ResourceAdapter] Registration is not done -> stop
      13:18:34,155 INFO [TomcatDeployer] deploy, ctxPath=/zjca, warUrl=file:/C:/jboss-4.0.1sp1/server/default/tmp/deploy/tmp32118zjca.ear-contents/zjca-exp.war/
      13:18:35,477 INFO [EARDeployer] Started J2EE application: file:/C:/jboss-4.0.1sp1/server/default/deploy/zjca.ear


      I'd be very thankful for any help, as I'm already broke my timeline for move to JBoss AS.

      Thanks.

        • 1. Re: Moving simple JCA CCI adapter (not DataSource) from Webl
          Mister Zzz Newbie

          I've created a special file zjca-ds.xml with the hope that I'll help me to deploy an adapter:

          <connection-factories>
          
           <no-tx-connection-factory>
          
           <adapter-display-name>zjcaAdapter</adapter-display-name >
           <jndi-name>zjcaAdapter</jndi-name>
           <rar-name>zjca.rar</rar-name>
           <connection-definition>zjca.ZConnectionFactory</connection-definition>
          
           </no-tx-connection-factory>
          
          </connection-factories>
          


          Unfortunetly, all it produces is the following:


          16:16:17,328 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
          MBeans waiting for other MBeans:
          ObjectName: jboss.web.deployment:war=zjca.war,id=1512608368
          state: DESTROYED
          I Depend On:
          Depends On Me:
          ObjectName: jboss.web.deployment:war=zjca.war,id=-859130894
          state: DESTROYED
          I Depend On:
          Depends On Me:
          ObjectName: jboss.web.deployment:war=zjca.war,id=1706383051
          state: DESTROYED
          I Depend On:
          Depends On Me:
          ObjectName: jboss.web.deployment:war=zjca.war,id=-665356211
          state: DESTROYED
          I Depend On:
          Depends On Me:
          ObjectName: jboss.jca:service=NoTxCM,name=zjcaAdapter
          state: CONFIGURED
          I Depend On: jboss.jca:service=ManagedConnectionPool,name=zjcaAdapter
          jboss.jca:service=CachedConnectionManager

          Depends On Me: jboss.jca:service=ConnectionFactoryBinding,name=zjcaAdapter

          ObjectName: jboss.jca:service=ManagedConnectionPool,name=zjcaAdapter
          state: CONFIGURED
          I Depend On: jboss.jca:service=ManagedConnectionFactory,name=zjcaAdapter

          Depends On Me: jboss.jca:service=NoTxCM,name=zjcaAdapter

          ObjectName: jboss.jca:service=ManagedConnectionFactory,name=zjcaAdapter
          state: CONFIGURED
          I Depend On: jboss.jca:service=RARDeployment,name='zjca.rar'

          Depends On Me: jboss.jca:service=ManagedConnectionPool,name=zjcaAdapter

          ObjectName: jboss.jca:service=ConnectionFactoryBinding,name=zjcaAdapter
          state: CONFIGURED
          I Depend On: jboss.jca:service=NoTxCM,name=zjcaAdapter

          Depends On Me:

          MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
          ObjectName: jboss.web.deployment:war=zjca.war,id=1706383051
          state: DESTROYED
          I Depend On:
          Depends On Me:
          ObjectName: jboss.web.deployment:war=zjca.war,id=-665356211
          state: DESTROYED
          I Depend On:
          Depends On Me:
          ObjectName: jboss.web.deployment:war=zjca.war,id=1512608368
          state: DESTROYED
          I Depend On:
          Depends On Me:
          ObjectName: jboss.jca:service=RARDeployment,name='zjca.rar'
          state: NOTYETINSTALLED
          I Depend On:
          Depends On Me: jboss.jca:service=ManagedConnectionFactory,name=zjcaAdapter

          ObjectName: jboss.web.deployment:war=zjca.war,id=-859130894
          state: DESTROYED
          I Depend On:
          Depends On Me:


          Any ideas?

          • 2. Re: Moving simple JCA CCI adapter (not DataSource) from Webl
            Nikolay Tsankov Newbie

            not sure this'll help - <rar-name>myapplication.ear#jms-ra.rar</rar-name>