4 Replies Latest reply on Dec 10, 2004 10:21 AM by bgrieder

    Problems deploying sap JCA-Adapter

    marvin

      Hi everybody,

      i deployed sapr3 adapter in jboss 3.0.x successfully some time ago. Now I need to deploy it on jboss 4.x which drives me crazy with the following error:

      18:52:23,078 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      MBeans waiting for other MBeans:
      ObjectName: jboss.jca:name=eis/SAPJRA,service=TxCM
       state: CONFIGURED
       I Depend On: jboss.jca:name=eis/SAPJRA,service=ManagedConnectionPool
       jboss.jca:service=CachedConnectionManager
       jboss:service=TransactionManager
      
       Depends On Me: jboss.jca:name=eis/SAPJRA,service=ConnectionFactoryBinding
      
      ObjectName: jboss.jca:name=eis/SAPJRA,service=ManagedConnectionPool
       state: CONFIGURED
       I Depend On: jboss.jca:name=eis/SAPJRA,service=ManagedConnectionFactory
      
       Depends On Me: jboss.jca:name=eis/SAPJRA,service=TxCM
      
      ObjectName: jboss.jca:name=eis/SAPJRA,service=ManagedConnectionFactory
       state: CONFIGURED
       I Depend On: jboss.jca:name='',service=RARDeployment
      
       Depends On Me: jboss.jca:name=eis/SAPJRA,service=ManagedConnectionPool
      
      ObjectName: jboss.jca:name=eis/SAPJRA,service=ConnectionFactoryBinding
       state: CONFIGURED
       I Depend On: jboss.jca:name=eis/SAPJRA,service=TxCM
      
       Depends On Me:
      
      MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
      ObjectName: jboss.jca:name='',service=RARDeployment
       state: NOTYETINSTALLED
       I Depend On:
       Depends On Me: jboss.jca:name=eis/SAPJRA,service=ManagedConnectionFactory
      
      
      18:52:23,765 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
      18:52:24,203 INFO [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009
      18:52:24,234 INFO [JkMain] Jk running ID=0 time=0/156 config=null
      18:52:24,265 INFO [Server] JBoss (MX MicroKernel) [4.0.1RC2 (build: CVSTag=JBoss_4_0_1_RC2 date=200411302349)] Started
      in 47s:281ms
      



      I cannot find any deployment note for my sapr3.rar/sapr3-ds.xml in jboss boot log but when I call jmx-console I get these entries:


      jboss.jca

      * name='jboss-local-jdbc.rar',service=RARDeployment
      * name='jboss-xa-jdbc.rar',service=RARDeployment
      * name='jms-ra.rar',service=RARDeployment
      * name='sapr3.rar',service=RARDeployment
      * name=DefaultDS,service=DataSourceBinding
      * name=DefaultDS,service=LocalTxCM
      * name=DefaultDS,service=ManagedConnectionFactory
      * name=DefaultDS,service=ManagedConnectionPool
      * name=JmsXA,service=ConnectionFactoryBinding
      * name=JmsXA,service=ManagedConnectionFactory
      * name=JmsXA,service=ManagedConnectionPool
      * name=JmsXA,service=TxCM
      * name=eis/SAPJRA,service=ConnectionFactoryBinding
      * name=eis/SAPJRA,service=ManagedConnectionFactory
      * name=eis/SAPJRA,service=ManagedConnectionPool
      * name=eis/SAPJRA,service=TxCM
      * service=CachedConnectionManager
      * service=ConnectionFactoryDeployer
      * service=RARDeployer
      * service=WorkManager
      * service=WorkManagerThreadPool


      My sapr3-ds.xml looks like this:


      <?xml version="1.0" encoding="UTF-8"?>
       <!-- ==================================================================== -->
       <!-- ConnectionManager setup for SAP R3 -->
       <!-- Author: David Jencks (d_jencks@users.sourceforge.net) -->
       <!-- Author: Chris Pinfold (chrisp@yambay.com) -->
       <!-- Author: Juraj Lenharcik (nort@nort.de) ;-) -->
       <!-- ==================================================================== -->
      
      <connection-factories>
       <tx-connection-factory>
       <adapter-display-name>SAPJRA</adapter-display-name>
       <jndi-name>eis/SAPJRA</jndi-name>
       <config-property name="SAPClient" type="java.lang.String">00</config-property>
       <user-name>username</user-name>
       <password>xxxx</password>
       <config-property name="Language" type="java.lang.String">DE</config-property>
       <config-property name="ServerName" type="java.lang.String">xxxx</config-property>
       <config-property name="PortNumber" type="java.lang.String">00</config-property>
       <config-property name="GatewayServer" type="java.lang.String">xxx.xxx.xxx.xxx</config-property>
       <config-property name="GatewayService" type="java.lang.String">sapdp99</config-property>
       </tx-connection-factory>
      </connection-factories>



      Can anybody shed some light on my problem? Any help would be greately appreciated.

      m

        • 1. Re: Problems deploying sap JCA-Adapter
          starksm64

          A connection factory configuration also requires the resource adaptor rar.

          • 2. Re: Problems deploying sap JCA-Adapter
            marvin

            Sorry, forgot to mention it explicitly: I deployed a sapr3.rar of course in my dir <server/default/deploy> which contains the jca.jar, the sapjco.jar and in META-INF the ra.xml.

            marvin

            • 3. 3857698
              marvin

              Now I played a bit with the config and tried to put the following to the sapr3-ds.xml:

              <rar-name>sapr3.rar</rar-name>


              This seems to help jboss to find the appropriate rar but it complains about other things:

              20:02:57,734 WARN [NestedThrowable] Duplicate throwable nesting of same base type: class org.jboss.deployment.Deploymen
              tException is assignable from: class org.jboss.deployment.DeploymentException
              20:02:57,734 ERROR [RARDeployment] Starting failed jboss.jca:name=eis/SAPJRA,service=ManagedConnectionFactory
              org.jboss.deployment.DeploymentException: couldn't get oldRarDeployment! jboss.jca:name='sapr3.rar',service=RARDeploymen
              t; - nested throwable: (org.jboss.deployment.DeploymentException: ConnectionDefinition 'null' not found in rar 'sapr3.ra
              r')
               at org.jboss.resource.connectionmanager.RARDeployment.startService(RARDeployment.java:541)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
               at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
              [...] many more
              
              Caused by: org.jboss.deployment.DeploymentException: ConnectionDefinition 'null' not found in rar 'sapr3.rar'
               at org.jboss.resource.connectionmanager.RARDeployment.startService(RARDeployment.java:535)
               ... 103 more
              20:02:58,281 WARN [ServiceController] Problem starting service jboss.jca:name=eis/SAPJRA,service=ManagedConnectionFacto
              ry
              org.jboss.deployment.DeploymentException: couldn't get oldRarDeployment! jboss.jca:name='sapr3.rar',service=RARDeploymen
              t; - nested throwable: (org.jboss.deployment.DeploymentException: ConnectionDefinition 'null' not found in rar 'sapr3.ra
              r')
               at org.jboss.resource.connectionmanager.RARDeployment.startService(RARDeployment.java:541)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
               at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
              
              [...] many more
              
              Caused by: org.jboss.deployment.DeploymentException: ConnectionDefinition 'null' not found in rar 'sapr3.rar'
               at org.jboss.resource.connectionmanager.RARDeployment.startService(RARDeployment.java:535)
               ... 103 more
              20:02:58,921 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=file:/C:/Programme/jboss-4.0.1/server/default/d
              eploy/jmx-console.war/
              20:02:59,359 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/C:/Programme/jboss-4.0.1/server/default/d
              eploy/management/web-console.war/
              20:03:00,640 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
              MBeans waiting for other MBeans:
              ObjectName: jboss.jca:name=eis/SAPJRA,service=TxCM
               state: CREATED
               I Depend On: jboss.jca:name=eis/SAPJRA,service=ManagedConnectionPool
               jboss.jca:service=CachedConnectionManager
               jboss:service=TransactionManager
              
               Depends On Me: jboss.jca:name=eis/SAPJRA,service=ConnectionFactoryBinding
              
              ObjectName: jboss.jca:name=eis/SAPJRA,service=ManagedConnectionPool
               state: CREATED
               I Depend On: jboss.jca:name=eis/SAPJRA,service=ManagedConnectionFactory
              
               Depends On Me: jboss.jca:name=eis/SAPJRA,service=TxCM
              
              ObjectName: jboss.jca:name=eis/SAPJRA,service=ManagedConnectionFactory
               state: FAILED
               I Depend On: jboss.jca:name='sapr3.rar',service=RARDeployment
              
               Depends On Me: jboss.jca:name=eis/SAPJRA,service=ManagedConnectionPool
              org.jboss.deployment.DeploymentException: couldn't get oldRarDeployment! jboss.jca:name='sapr3.rar',service=RARDeploymen
              t; - nested throwable: (org.jboss.deployment.DeploymentException: ConnectionDefinition 'null' not found in rar 'sapr3.ra
              r')
              ObjectName: jboss.jca:name=eis/SAPJRA,service=ConnectionFactoryBinding
               state: CREATED
               I Depend On: jboss.jca:name=eis/SAPJRA,service=TxCM
              
               Depends On Me:
              
              MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM:
              ObjectName: jboss.jca:name=eis/SAPJRA,service=ManagedConnectionFactory
               state: FAILED
               I Depend On: jboss.jca:name='sapr3.rar',service=RARDeployment
              
               Depends On Me: jboss.jca:name=eis/SAPJRA,service=ManagedConnectionPool
              org.jboss.deployment.DeploymentException: couldn't get oldRarDeployment! jboss.jca:name='sapr3.rar',service=RARDeploymen
              t; - nested throwable: (org.jboss.deployment.DeploymentException: ConnectionDefinition 'null' not found in rar 'sapr3.ra
              r')
              
              20:03:01,093 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
              20:03:01,468 INFO [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009
              20:03:01,468 INFO [JkMain] Jk running ID=0 time=0/125 config=null
              20:03:01,531 INFO [Server] JBoss (MX MicroKernel) [4.0.1RC2 (build: CVSTag=JBoss_4_0_1_RC2 date=200411302349)] Started
              in 41s:516ms



              My ra.xml looks like this:

              <?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'>
              
              <connector>
               <display-name>SAPJRA</display-name>
               <description>bla</description>
               <vendor-name>SAP</vendor-name>
               <spec-version>1.0</spec-version>
               <eis-type>R/3</eis-type>
               <version>1.0.8-Beta</version>
               <resourceadapter>
               <managedconnectionfactory-class>com.sap.mw.jco.jra.JRA$ManagedConnectionFactoryImpl</managedconnectionfactory-class>
               <connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
               <connectionfactory-impl-class>com.sap.mw.jco.jra.JRA$ConnectionFactoryImpl</connectionfactory-impl-class>
               <connection-interface>javax.resource.cci.Connection</connection-interface>
               <connection-impl-class>com.sap.mw.jco.jra.JRA$ConnectionImpl</connection-impl-class>
               <transaction-support>LocalTransaction</transaction-support>
               <config-property>
               <description>Client, i.e. 001</description>
               <config-property-name>SAPClient</config-property-name>
               <config-property-type>java.lang.String</config-property-type>
               <config-property-value>100</config-property-value>
               </config-property>
               <config-property>
               <config-property-name>UserName</config-property-name>
               <config-property-type>java.lang.String</config-property-type>
               <config-property-value>xxx</config-property-value>
               </config-property>
               <config-property>
               <config-property-name>Password</config-property-name>
               <config-property-type>java.lang.String</config-property-type>
               <config-property-value>yyy</config-property-value>
               </config-property>
               <config-property>
               <description>I.e. DE or EN</description>
               <config-property-name>Language</config-property-name>
               <config-property-type>java.lang.String</config-property-type>
               <config-property-value>DE</config-property-value>
               </config-property>
               <config-property>
               <description>SAP Applicatino Server, i.e. us7400</description>
               <config-property-name>ServerName</config-property-name>
               <config-property-type>java.lang.String</config-property-type>
               <config-property-value>xxxxxxxxx</config-property-value>
               </config-property>
               <config-property>
               <description>System number, i.e. 01</description>
               <config-property-name>PortNumber</config-property-name>
               <config-property-type>java.lang.String</config-property-type>
               <config-property-value>00</config-property-value>
               </config-property>
               <config-property>
               <description>Gateway host</description>
               <config-property-name>GatewayServer</config-property-name>
               <config-property-type>java.lang.String</config-property-type>
               <config-property-value>xxx.xxx.xxx.xxx</config-property-value>
               </config-property>
               <config-property>
               <description>Gateway service</description>
               <config-property-name>GatewayService</config-property-name>
               <config-property-type>java.lang.String</config-property-type>
               <config-property-value>sapdp99</config-property-value>
               </config-property>
               <!--config-property>
               <description>Setting on false turns off automatic commit for non-transactional calls that improves performance for reading accesses on DB. On default is true</description>
               <config-property-name>AutoCommit</config-property-name>
               <config-property-type>java.lang.Boolean</config-property-type>
               <config-property-value>false</config-property-value>
               </config-property-->
               <authentication-mechanism>
               <authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
               <credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
               </authentication-mechanism>
               <!-- used on WEBAS 630 for SAP Logon Tickets -->
               <!--<authentication-mechanism>
               <authentication-mechanism-type>Kerbv5</authentication-mechanism-type>
               <credential-interface>javax.resource.spi.security.GenericCredential</credential-interface>
               </authentication-mechanism>-->
               <reauthentication-support>false</reauthentication-support>
               </resourceadapter>
              </connector>
              
              


              • 4. Re: Problems deploying sap JCA-Adapter

                Hi,

                Try adding

                <connection-definition>javax.resource.cci.ConnectionFactory</connection-definition>

                after
                <rar-name>.....</rar-name>

                if your adapter is CCI compliant (which I do not know)

                Bruno