4 Replies Latest reply on Jun 8, 2013 2:23 AM by Ivan Cordon

    call service in tuxedo through jca in JBoss AS 7

    Ivan Cordon Newbie

      Hi


      I took several days configuring the connection between jboss and tuxedo through jca but i only get TPENOENT.


      These are my configuration files


      ra.xml


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

      <connector xmlns="http://java.sun.com/xml/ns/j2ee"

      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

      xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"

      version="1.5">

      <display-name>Tuxedo JCA Adapter</display-name>

      <vendor-name>Oracle</vendor-name>

      <eis-type>Tuxedo</eis-type>

      <resourceadapter-version>11gR1(11.1.1.2.1)</resourceadapter-version>

      <license>

      <description>Tuxedo SALT license</description>

      <license-required>false</license-required>

      </license>

      <resourceadapter>

      <resourceadapter-class>com.oracle.tuxedo.adapter.TuxedoResourceAdapter</resourceadapter-class>

      <config-property>

      <config-property-name>traceLevel</config-property-name>

      <config-property-type>java.lang.String</config-property-type>

      <config-property-value>80000</config-property-value>

      </config-property>

      <config-property>

      <config-property-name>xaAffinity</config-property-name>

      <config-property-type>java.lang.String</config-property-type>

      <config-property-value>true</config-property-value>

      </config-property>

      <config-property>

      <config-property-name>dmconfig</config-property-name>

      <config-property-type>java.lang.String</config-property-type>

      <config-property-value>/export/home/jboss/jboss/standalone/configuration/dmconfig.xml</config-property-value>

      </config-property>

      <outbound-resourceadapter>

      <connection-definition>

      <managedconnectionfactory-class>com.oracle.tuxedo.adapter.spi.TuxedoManagedConnectionFactory</managedconnectionfactory-class>

      <connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>

      <connectionfactory-impl-class>com.oracle.tuxedo.adapter.cci.TuxedoConnectionFactory</connectionfactory-impl-class>

      <connection-interface>javax.resource.cci.Connection</connection-interface>

      <connection-impl-class>com.oracle.tuxedo.adapter.cci.TuxedoJCAConnection</connection-impl-class>

      </connection-definition>

      <transaction-support>LocalTransaction</transaction-support>

      <authentication-mechanism>

      <authentication-mechanism-type>BasicPassword</authentication-mechanism-type>

      <credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>

      </authentication-mechanism>

      <reauthentication-support>false</reauthentication-support>

      </outbound-resourceadapter>

      </resourceadapter>

      </connector>


      dmconfig.xml


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

      <LocalAccessPoint name="JDOM">

      <AccessPointId>JDOM1</AccessPointId>

      <NetworkAddress>//maqueta2:5001</NetworkAddress>

      </LocalAccessPoint>

      <RemoteAccessPoint name="TDOM">

      <AccessPointId>TDOM1</AccessPointId>

      <NetworkAddress>//maqueta2:5000</NetworkAddress>

      </RemoteAccessPoint>

      <SessionProfile name="profile_1">

      <Security>NONE</Security>

      <BlockTime>30000</BlockTime>

      <Interoperate>false</Interoperate>

      <ConnectionPolicy>ON_STARTUP</ConnectionPolicy>

      <ACLPolicy>local</ACLPolicy>

      <CredentialPolicy>local</CredentialPolicy>

      <RetryInterval>60</RetryInterval>

      <MaxRetries>1000</MaxRetries>

      <CompressionLimit>1000000</CompressionLimit>

      <KeepAlive>100000</KeepAlive>

      <KeepAliveWait>200000</KeepAliveWait>

      </SessionProfile>

      <Session name="session_1">

      <LocalAccessPointName>JDOM</LocalAccessPointName>

      <RemoteAccessPointName>TDOM</RemoteAccessPointName>

      <ProfileName>profile_1</ProfileName>

      </Session>

      </TuxedoConnector>


      standalone.xml


      ....

      <subsystem xmlns="urn:jboss:domain:resource-adapters:1.1">

      <resource-adapters>

      <resource-adapter>

      <archive>

      com.oracle.tuxedo.TuxedoAdapter.rar

      </archive>

      <transaction-support>LocalTransaction</transaction-support>

      <connection-definitions>

      <connection-definition class-name="com.oracle.tuxedo.adapter.spi.TuxedoManagedConnectionFactory" jndi-name="java:/eis/TuxedoConnectionFactory" enabled="true" use-java-context="false" pool-name="java:jboss/eis/TuxedoConnectionFactory"/>

      </connection-definitions>

      </resource-adapter>

      </resource-adapters>

      </subsystem>

      ...


      dmconfig


      *DM_RESOURCES

      #

      VERSION=U22

      #

      *DM_LOCAL_DOMAINS

      #

      TDOM GWGRP=GRUPO3

      TYPE=TDOMAIN

      DOMAINID="TDOM1"

      BLOCKTIME=60

      DMTLOGDEV="/appl/sf/tux/logs/DMTLOG"

      DMTLOGNAME=DMTLOG

      SECURITY=NONE

      #

      *DM_REMOTE_DOMAINS

      #

      JDOM TYPE=TDOMAIN

      DOMAINID="JDOM1"

      #


      *DM_TDOMAIN

      #

      TDOM     NWADDR="//maqueta2:5000"

      JDOM NWADDR="//maqueta2:5001"

      *DM_LOCAL_SERVICES

      TOUPPER

      This is the connection in ULOG:

       

      174335.maqueta2!GWTDOMAIN.26860.4.0: LIBGWT_CAT:1128: INFO: Connection accepted from domain (domainid=<JDOM1>)

       

      and the jboss :

       

      17:59:57,618 INFO [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-32) IJ020002: Deployed: file:/export/home/jboss/jboss-eap-6.1/standalone/tmp/vfs/tempd94ea707efb676cf/com.oracle.tuxedo.TuxedoAdapter.rar-f7058dab3d57d6b6/contents/
      17:59:57,626 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-55) JBAS010401: JCA enlazado ConnectionFactory [java:/eis/TuxedoConnectionFactory]
      17:59:57,758 INFO [org.jboss.as.server] (HttpManagementService-threads - 1) JBAS018559: Implementado "com.oracle.tuxedo.TuxedoAdapter.rar" (runtime-name : "com.oracle.tuxedo.TuxedoAdapter.rar")
      17:59:58,144 INFO [stdout] (default-threads - 2) <Tue Jun 04 17:59:58 CEST 2013> <Debug> <WTC> <BEA-180072> <+++++ /tplle/crypFinishOne/send_key(16) +++++>
      17:59:58,147 INFO [stdout] (default-threads - 2) <Tue Jun 04 17:59:58 CEST 2013> <Debug> <WTC> <BEA-180113> <0C F3 E2 49 51 93 2F 92 A5 48 07 1C F4 92 A3 7F ...IQ?.??H...??. >
      17:59:58,149 INFO [stdout] (default-threads - 2) <Tue Jun 04 17:59:58 CEST 2013> <Debug> <WTC> <BEA-180073> <+++++ END +++++>
      17:59:58,151 INFO [stdout] (default-threads - 2) <Tue Jun 04 17:59:58 CEST 2013> <Debug> <WTC> <BEA-180072> <+++++ /tplle/crypFinishOne/recv_key(16) +++++>
      17:59:58,153 INFO [stdout] (default-threads - 2) <Tue Jun 04 17:59:58 CEST 2013> <Debug> <WTC> <BEA-180113> <A5 DA EF 93 BE 79 E7 80 51 37 47 F5 77 C1 C0 AF ??.??y.?Q7G.w..? >
      17:59:58,154 INFO [stdout] (default-threads - 2) <Tue Jun 04 17:59:58 CEST 2013> <Debug> <WTC> <BEA-180073> <+++++ END +++++>
      17:59:58,178 INFO [com.oracle.tuxedo.utils.TuxedoLogger] (default-threads - 2) Established connection to remote domain TDOM1.


      But when i test the service the only thing i get is TPENOENT

       

      18:01:11,888 ERROR [stderr] (http-/0.0.0.0:8080-1) TPENOENT(6):0:0:TPED_MINVAL(0):QMNONE(0):0:There no imported resource with name TOUPPER is configured!

       

      I don't know what else to do!

       

      thank you in advance

        • 2. Re: call service in tuxedo through jca in JBoss AS 7
          Ivan Cordon Newbie

          report.txt

           

          Archive:com.oracle.tuxedo.TuxedoAdapter.rar
          JCA version:1.5
          Type:
          OutBound
          Reauth:
          No
          Compliant:No
          Native:
          No

           

           

          Structure:

          ----------

          META-INF/

          META-INF/MANIFEST.MF

          META-INF/ra.xml

          META-INF/ra.xml.bk

          adapter.properties

          adapter_ja.properties

          com.bea.core.i18n_1.4.0.0.jar

          com.bea.core.jatmi_1.3.1.0.jar

          com.oracle.tuxedo.adapter_1.1.0.0.jar

          dmconfig.xml

          javax.ejb_3.0.1.jar

          javax.transaction_1.0.0.0_1-1.jar

          tja.xsd

           

           

          Resource-adapter:

          -----------------

          Class: com.oracle.tuxedo.adapter.TuxedoResourceAdapter

            Config-property: traceLevel (java.lang.String)

            Config-property: xaAffinity (java.lang.String)

            Config-property: dmconfig (java.lang.String)

            Introspected Config-property: appManagedLocalTxTimeout (java.lang.Integer)

            Introspected Config-property: autoTran (java.lang.Boolean)

            Introspected Config-property: debugAdapter (java.lang.Boolean)

            Introspected Config-property: debugBuffer (java.lang.Boolean)

            Introspected Config-property: debugConfig (java.lang.Boolean)

            Introspected Config-property: debugJatmi (java.lang.Boolean)

            Introspected Config-property: debugNet (java.lang.Boolean)

            Introspected Config-property: debugPdu (java.lang.Boolean)

            Introspected Config-property: debugPerf (java.lang.Boolean)

            Introspected Config-property: debugRouting (java.lang.Boolean)

            Introspected Config-property: debugSec (java.lang.Boolean)

            Introspected Config-property: debugSession (java.lang.Boolean)

            Introspected Config-property: debugXa (java.lang.Boolean)

            Introspected Config-property: dumpData (java.lang.Boolean)

            Introspected Config-property: keyFileName (java.lang.String)

            Introspected Config-property: throwFailureReplyException (java.lang.Boolean)

           

           

          Managed-connection-factory:

          ---------------------------

          Class: com.oracle.tuxedo.adapter.spi.TuxedoManagedConnectionFactory

            Validating: No

            CCI: Yes

           

           

          META-INF/MANIFEST.MF:

          ---------------------

          Manifest-Version: 1.0

          Created-By: 1.6.0_21 (Sun Microsystems Inc.)

           

           

           

           

          META-INF/ra.xml:

          ----------------

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

          <connector xmlns="http://java.sun.com/xml/ns/j2ee"

              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

              xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"

              version="1.5">

            <display-name>Tuxedo JCA Adapter</display-name>

            <vendor-name>Oracle</vendor-name>

            <eis-type>Tuxedo</eis-type>

            <resourceadapter-version>11gR1(11.1.1.2.1)</resourceadapter-version>

            <license>

              <description>Tuxedo SALT license</description>

              <license-required>false</license-required>

            </license>

            <resourceadapter>

              <resourceadapter-class>com.oracle.tuxedo.adapter.TuxedoResourceAdapter</resourceadapter-class>

              <config-property>

                <config-property-name>traceLevel</config-property-name>

                <config-property-type>java.lang.String</config-property-type>

                <config-property-value>80000</config-property-value>

              </config-property>

              <config-property>

                <config-property-name>xaAffinity</config-property-name>

                <config-property-type>java.lang.String</config-property-type>

                <config-property-value>true</config-property-value>

              </config-property>

              <config-property>

                <config-property-name>dmconfig</config-property-name>

                <config-property-type>java.lang.String</config-property-type>

                <config-property-value>/export/home/jboss/jboss/standalone/configuration/dmconfig.xml</config-property-value>

              </config-property>

              <outbound-resourceadapter>

                <connection-definition>

                  <managedconnectionfactory-class>com.oracle.tuxedo.adapter.spi.TuxedoManagedConnectionFactory</managedconnectionfactory-class>

                  <connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>

                  <connectionfactory-impl-class>com.oracle.tuxedo.adapter.cci.TuxedoConnectionFactory</connectionfactory-impl-class>

                  <connection-interface>javax.resource.cci.Connection</connection-interface>

                  <connection-impl-class>com.oracle.tuxedo.adapter.cci.TuxedoJCAConnection</connection-impl-class>

                </connection-definition>

                <transaction-support>LocalTransaction</transaction-support>

                <authentication-mechanism>

                  <authentication-mechanism-type>BasicPassword</authentication-mechanism-type>

                  <credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>

                </authentication-mechanism>

                <reauthentication-support>false</reauthentication-support>

              </outbound-resourceadapter>

            </resourceadapter>

          </connector>

           

           

           

           

           

           

          Deployment descriptor:

          ----------------------

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

          <resource-adapters>

            <resource-adapter>

              <archive>com.oracle.tuxedo.TuxedoAdapter.rar</archive>

              <config-property name="xaAffinity">true</config-property>

              <config-property name="dmconfig">/export/home/jboss/jboss/standalone/configuration/dmconfig.xml</config-property>

              <config-property name="traceLevel">80000</config-property>

              <transaction-support>LocalTransaction</transaction-support>

              <connection-definitions>

                <connection-definition class-name="com.oracle.tuxedo.adapter.spi.TuxedoManagedConnectionFactory" enabled="true" jndi-name="java:jboss/eis/Connection" pool-name="Connection" use-ccm="true" use-java-context="true">

                  <pool>

                    <min-pool-size>0</min-pool-size>

                    <max-pool-size>10</max-pool-size>

                    <prefill>false</prefill>

                    <use-strict-min>false</use-strict-min>

                    <flush-strategy>FailingConnectionOnly</flush-strategy>

                  </pool>

                  <security>

                    <application/>

                  </security>

                </connection-definition>

              </connection-definitions>

            </resource-adapter>

          </resource-adapters>

           

           

          log.txt

           

          Severity: ERROR

          Section: 19.4.2

          Description: A ResourceAdapter must implement a "public int hashCode()" method.

          Code: com.oracle.tuxedo.adapter.TuxedoResourceAdapter

          • 3. Re: call service in tuxedo through jca in JBoss AS 7
            Jesper Pedersen Master

            You need to turn off archive validation in the :jca: subsystem for sure. And file a bug report with Oracle on the missing hashCode().

             

            I would suggest to turn on the debug flags on the ResourceAdapter - see the introspected values - to see if anything stands out.

            • 4. Re: call service in tuxedo through jca in JBoss AS 7
              Ivan Cordon Newbie

              I've resolved the problem of TPENOENT.

               

              All configuration was ok, the problem came from external tuxedo libraries. I put them into ear package and not as global libraries in jboss (as external modules).

              For some reason if you don't resolve dependencies in your servlet, ejb.. from these libraries, you are out from tuxedo context.

               

              Thank you Jesper for your support.