ClassCastException by using deployed resource adapter

Dear community team,
I try to create an connection for my web application (war file) running on SAP Web Application Server to access an enterprise information system (Apache JackRabbit) by using JCA and deployed resource adapter. The resource adapter "jackrabbit-jca-1.3.3.rar " is provided Apache Jackrabbit.
http://jackrabbit.apache.org/downloads.cgi
I changed some deployment descriptor configuration and deployed it successfully by using Deployment Tools. With the Visual Administrator I also could check the JNDI object and finded an entry in connector container.
The JNDI lookup worked fine and it returned a object type "JCARepositoryHandle" (I could analyse its type and attributes in debugging modus).If I tried to cast the object "JCARepositoryHandle", I got an ClassCastException.
Do you have any adoption why I only saw the returned object "JCARepositoryHandle" in debugging modus but it wasnt possible cast and to use it.
If you need any more information, please let me know.
Thanks for your support.
PS: Please have also a look in the attached source an configuration files:
Java servlet class
===================================================================
Connection connection = null;
      Context initctx = null;
         try {
          //get the initial JNDI context
          Hashtable env = null;
          initctx = new InitialContext();
         // perform JNDI lookup to get the connection factory
         JCARepositoryHandle rep = (JCARepositoryHandle)initctx.lookup("deployedAdapters/jcr/Repository/shareable/jcr/Repository");
connector-j2ee-engine.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE connector-j2ee-engine SYSTEM 'connector-j2ee-engine.dtd'>
<connector-j2ee-engine>
     <jndi-name>jcr/Repository</jndi-name>
     <pool-params>
          <max-connections-number>10</max-connections-number>
          <max-time-to-wait-connection>120</max-time-to-wait-connection>
          <expiration-control>
               <connection-lifetime>900</connection-lifetime>
               <run-cleanup-thread>300</run-cleanup-thread>
          </expiration-control>
     </pool-params>
</connector-j2ee-engine>
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'>
    <connector>
      <display-name>Jackrabbit JCR Adapter</display-name>
      <vendor-name>Apache.org</vendor-name>
      <spec-version>1.0</spec-version>
      <eis-type>JCR Adapter</eis-type>
      <version>1.6</version>
      <license>
        <description>Not required</description>
        <license-required>false</license-required>
      </license>
      <resourceadapter>
        <managedconnectionfactory-class>org.apache.jackrabbit.jca.JCAManagedConnectionFactory</managedconnectionfactory-class>
        <connectionfactory-interface>javax.jcr.Repository</connectionfactory-interface>
        <connectionfactory-impl-class>org.apache.jackrabbit.jca.JCARepositoryHandle</connectionfactory-impl-class>
        <connection-interface>javax.jcr.Session</connection-interface>
        <connection-impl-class>org.apache.jackrabbit.jca.JCASessionHandle</connection-impl-class>
        <transaction-support>XATransaction</transaction-support>
        <config-property>
          <config-property-name>HomeDir</config-property-name>
          <config-property-type>java.lang.String</config-property-type>
          <config-property-value>C:/temp/repository</config-property-value>
        </config-property>
        <config-property>
          <config-property-name>ConfigFile</config-property-name>
          <config-property-type>java.lang.String</config-property-type>
          <config-property-value>C:/temp/repository/repository.xml</config-property-value>
        </config-property>
        <reauthentication-support>false</reauthentication-support>     
      </resourceadapter>
    </connector>

The reason for the ClassCastException was the class loader issue.

Similar Messages

  • Deploying resource adapter

              Getting an error, trying to deploy a resource adapter.
              Here's the log and exception below.
              Log
              preparing application TestRA on testServer
              Exception caught for task Activate application TestRA on testServer: Prepare failed.
              Task Id = 10
              Module, myRA, reported error: java.lang.NullPointerException
              failed application TestRA on testServer
              Exception
              weblogic.management.ApplicationException: Prepare failed. Task Id = 10
              Module Name: myRA, Error: java.lang.NullPointerException
                   at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:638)
                   at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:552)
                   at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1056)
                   at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:724)
                   at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
                   at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
                   at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
              

              "Madhav Inamti" <[email protected]> wrote:
              >
              >Getting an error, trying to deploy a resource adapter.
              >
              >Here's the log and exception below.
              >
              >Log
              >---
              >
              >preparing application TestRA on testServer
              >Exception caught for task Activate application TestRA on testServer:
              >Prepare failed.
              >Task Id = 10
              >Module, myRA, reported error: java.lang.NullPointerException
              >failed application TestRA on testServer
              >
              >Exception
              >---------
              >
              >weblogic.management.ApplicationException: Prepare failed. Task Id = 10
              >{
              >Module Name: myRA, Error: java.lang.NullPointerException
              >}
              >     at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:638)
              >     at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContainer.java:552)
              >     at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(SlaveDeployer.java:1056)
              >     at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDeployer.java:724)
              >     at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHandler.java:24)
              >     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
              >     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
              >
              It may caused by your jca code, for example, write to a log writer before the
              log writer is set by WLS.
              

  • Trouble deploying Resource Adapter

    Hello,
    I suspect what I really have is a DOS problem, but since it relates to the RA I've written, I figured I'd post it here. I got tired have having to manually redeploy my Resource Adapter and add a new Connection Factory instance everytime I rebuilt my resource adapter code so I stuck the following four command in a file named InstallCtr.bat:
    deploytool -undeployConnector myra.rar localhost
    j2eeadmin -removeConnectorFactory eis/myEIS
    deploytool -deployConnector myra.rar localhost
    j2eeadmin -addConnectorFactory eis/myEIS myra.rar
    When I run the batch file the first command (undeployConnector) completes successfully, but then the batch file terminates. I can't figure out why the other three commands aren't executed. Is there anyway I can fix this situation? Thanks in advance.
    -exits
    ps - the commands of course run perfectly if I execute them one by one from a dos command line

    write "call" before every command.
    Eugen

  • Sample JAVA code using Resource Adapter for RFC Connections

    Hi Java Knowledgeable Ones.
    I have successfully deployed the SAP Netweaver J2ee Engine "Resource Adapter for RFC Connections to ABAP Systems" to my Web Application Server.  Now I need to develop a JAVA application that would utilize this deployed resource adapter.  The resource adapter specifies the SAPClient, UserName, and password.  I am thinking that the JAVA code to invoke this connection would therefore not need to provide this information as it should be available in the resource adapter.
    Do you have sample code that you could send to me showing how to do this?
    Thanks,
    Kevin

    Hi Kevin,
    this is actually no good style! You should not open the connection with the adaptor knowing the password. Usually it should work via a connection that uses only basic rights  and the user has already authenticated and is using his security ticket.
    For security handling see:
    http://help.sap.com/saphelp_nw04/helpdata/en/61/f8bc3d52f39d33e10000000a11405a/frameset.htm
    Regards,
    Benny

  • I need Fusion help creating a demo of BRM JCA Resource Adapter

    I need Fusion help creating a demo of BRM JCA Resource Adapter.
    I know BRM well but am clueless with Fusion.
    I am trying to figure out what Fusion products to download and install and how I manipulate the Fusion side to manipulate BRM.
    My BRM docs say:
    Installing the BRM JCA Resource Adapter ->
    Software requirements
    (yada yada install a bunch of BRM stuff I know how to do)
    The adapter must be deployed on a J2EE 1.4-compliant application server that has implemented the JCA 1.5 specification. The adapter runs only in a managed environment. (Does this imply some particular Fusion package?)
    (more yada yada about installing more BRM packages I know how to do)
    Deploying and configuring the BRM JCA Resource Adapter ->
    Overview of the BRM JCA Resource Adapter configuration procedure
    The procedure for setting up the BRM JCA Resource Adapter includes the following tasks:
    Installing the adapter on your BRM system, if you have not already done so. See Installing the BRM JCA Resource Adapter.
    Generating the schema files for the adapter. See Generating the schema files for your system. (links to some BRM commands np)
    Specifying how to construct XML tags. See Specifying the XML tags for extended fields. (links to an oob file included with directions on how to address BRM customizations np)
    Generating the WSDL files for the adapter. See Generating the WSDL files for your system. (links to an oob file with directions to configure. I could use some help if/when I get this far)
    The last two look pretty important but I haven't a clue. I pasted the text from the docs below.
    Deploying the adapter on your application server. See Deploying the BRM JCA Resource Adapter on an Oracle application server.
    Connecting the adapter to the BRM software. See Connecting the adapter to BRM in Oracle AS.
    Deploying the BRM JCA Resource Adapter on an Oracle application server
    The adapter is dependent on Java Archive (JAR) files to deploy properly. The following table lists the JAR files that the adapter requires from each application in your system.
    Application
    JAR files
    J2EE application server
    classes12.jar, connector15.jar, and jta.jar
    Oracle BPEL process
    bpm-infra.jar, orabpel-thirdparty.jar, orabpel.jar, and xmlparserv2.jar
    BRM J2EE Resource Adapter
    pcm.jar and pcmext.jar
    Apache
    xercesImpl.jar
    If you are deploying the adapter in a standalone Oracle Containers for Java EE (OC4J) instance, make sure these JAR files are available to the class loader that is loading the adapter.
    If you are deploying the adapter by using Oracle SOA Suite, these JAR files are available as part of the oracle.bpel.common code source. You import these libraries as follows:
    Open the Oracle_home/j2ee/Instance/config/applications.xml configuration file for the J2EE instance.
    Add the oracle.bpel.common entry (shown in bold below) to the imported-shared-libraries section of the file:
    <imported-shared-libraries>
    <import-shared-library name="adf.oracle.domain"/>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    Save and close the file.
    Restart the application server or the J2EE instance.
    After you make the JAR files available, deploy the adapter on the Oracle application server by using either the Oracle Application Server (Oracle AS) Application Server Control (ASC) or the Oracle admintool.jar file. Copy the adapter archive file (BRM_home/apps/brm_integrations/jca_adapter/OracleBRMJCA15Adapter.rar) from the installation directory to a location that is accessible to the adapter deployment tool. You can then open and deploy the archive file on your application server.
    After successful deployment, return the applications.xml file to its original settings and add the oracle.bpel.common codesource to the BRM Adapter oc4j-ra.xml file:
    Open the Oracle_home/j2ee/Instance/config/applications.xml configuration file for the J2EE instance.
    Remove the following oracle.bpel.common entry (shown in bold below):
    <imported-shared-libraries>
    <import-shared-library name="adf.oracle.domain"/>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    Save and close the file.
    Open the JCA Resource Adapter oc4j-ra.xml file from the Oracle_home/j2ee/Instance/application-deployments/default/BRMAdapterDeploymentName directory.
    Add the oracle.bpel.common entry (shown in bold below) to the oc4j-connector-factories section of the file:
    <oc4j-connector-factories...>
    <imported-shared-libraries>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    <oc4j-connector-factories>
    Save and close the file.
    Restart the application server or the J2EE instance.
    For more information about deploying the adapter, see your application server’s documentation.
    Connecting the adapter to BRM in Oracle AS
    You connect the adapter to the BRM software by creating connection pools and connection factories. As part of the adapter deployment, the application server creates oc4j-ra.xml from the packaged ra.xml. The ra.xml file is located in the Oracle_home/j2ee/Instance/connectors/AdapterDeploymentName/AdapterDeploymentName/META-INF directory. For example, Oracle_home/j2ee/home/connectors/BRMAdapter/BRMAdapter/META-INF/ra.xml.
    Use the resource adapter home page from the Oracle AS ASC page to create connection pools and connection factories.
    Create your connection pool by following the performance and tuning guidelines in Configuring Connection Pooling in OC4J in Oracle Containers for J2EE Resource Adapter Administrator's Guide. See download.oracle.com/docs/cd/B31017_01/web.1013/b28956/conncont.htm.
    Make sure you set the pool’s Maximum Connections parameter (maxConnections XML entity) equal to or greater than the Oracle BPEL process manager’s dspMaxThreads parameter. For more information, see Oracle BPEL Process Manager Performance Tuning in Oracle Application Server Performance Guide for 10g Release 3 (10.1.3.1.0) at download.oracle.com/docs/cd/B31017_01/core.1013/b28942/tuning_bpel.htm.
    Note To set up JCA Resource Adapter transaction management in BPEL, you must create a private connection pool and set its Inactive Connection Timeout property (inactivity-timeout XML entity) to 0. See About JCA Resource Adapter transaction management in BPEL for more information.
    Create as many connection factories as your system needs. For each connection factory, specify the following:
    The JNDI location for the connection factory.
    The connection pool to use.
    How to connect to BRM by using these entries:
    Entry
    Description
    ConnectionString
    Specify the protocol, host name, and port number for connecting to the BRM software. For example: ip Server1 12006.
    DBNumber
    Specify the database number for the BRM database. For example, enter 1 or 0.0.0.1 for database 0.0.0.1.
    InputValidation
    Specifies whether to validate the input XMLRecord:
    True — The adapter validates the input XMLRecord against the opcode schema.
    False — The adapter does not validate the input XMLRecord.
    The default is False.
    This overrides any other validation parameter specified in the WSDL file.
    OutputValidation
    Specifies whether to validate the output XMLRecord:
    True — The adapter validates the output XMLRecord against the opcode schema.
    False — The adapter does not validate the output XMLRecord.
    The default is False.
    This overrides any other validation parameter specified in the WSDL file.
    LoginType
    Specifies the authentication method:
    1 — The adapter logs in to BRM by using the specified login name and password.
    0 — The adapter logs in to BRM by using the specified service type and POID ID.
    The default is 1.
    UserName
    Specifies the login name the adapter uses for logging in to the BRM software.
    Note This entry is required only if LoginType is set to 1.
    Password
    Specify the password the adapter uses for logging in to the BRM software.
    Note This entry is required only if LoginType is set to 1.
    PoidID
    Specifies the POID ID. This entry should be set to 1.
    ServiceType
    Specifies the service the adapter uses to log in to the BRM software.
    The default is /service/pcm_client.
    You have successfully configured the adapter to connect to BRM.

    I need Fusion help creating a demo of BRM JCA Resource Adapter.
    I know BRM well but am clueless with Fusion.
    I am trying to figure out what Fusion products to download and install and how I manipulate the Fusion side to manipulate BRM.
    My BRM docs say:
    Installing the BRM JCA Resource Adapter ->
    Software requirements
    (yada yada install a bunch of BRM stuff I know how to do)
    The adapter must be deployed on a J2EE 1.4-compliant application server that has implemented the JCA 1.5 specification. The adapter runs only in a managed environment. (Does this imply some particular Fusion package?)
    (more yada yada about installing more BRM packages I know how to do)
    Deploying and configuring the BRM JCA Resource Adapter ->
    Overview of the BRM JCA Resource Adapter configuration procedure
    The procedure for setting up the BRM JCA Resource Adapter includes the following tasks:
    Installing the adapter on your BRM system, if you have not already done so. See Installing the BRM JCA Resource Adapter.
    Generating the schema files for the adapter. See Generating the schema files for your system. (links to some BRM commands np)
    Specifying how to construct XML tags. See Specifying the XML tags for extended fields. (links to an oob file included with directions on how to address BRM customizations np)
    Generating the WSDL files for the adapter. See Generating the WSDL files for your system. (links to an oob file with directions to configure. I could use some help if/when I get this far)
    The last two look pretty important but I haven't a clue. I pasted the text from the docs below.
    Deploying the adapter on your application server. See Deploying the BRM JCA Resource Adapter on an Oracle application server.
    Connecting the adapter to the BRM software. See Connecting the adapter to BRM in Oracle AS.
    Deploying the BRM JCA Resource Adapter on an Oracle application server
    The adapter is dependent on Java Archive (JAR) files to deploy properly. The following table lists the JAR files that the adapter requires from each application in your system.
    Application
    JAR files
    J2EE application server
    classes12.jar, connector15.jar, and jta.jar
    Oracle BPEL process
    bpm-infra.jar, orabpel-thirdparty.jar, orabpel.jar, and xmlparserv2.jar
    BRM J2EE Resource Adapter
    pcm.jar and pcmext.jar
    Apache
    xercesImpl.jar
    If you are deploying the adapter in a standalone Oracle Containers for Java EE (OC4J) instance, make sure these JAR files are available to the class loader that is loading the adapter.
    If you are deploying the adapter by using Oracle SOA Suite, these JAR files are available as part of the oracle.bpel.common code source. You import these libraries as follows:
    Open the Oracle_home/j2ee/Instance/config/applications.xml configuration file for the J2EE instance.
    Add the oracle.bpel.common entry (shown in bold below) to the imported-shared-libraries section of the file:
    <imported-shared-libraries>
    <import-shared-library name="adf.oracle.domain"/>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    Save and close the file.
    Restart the application server or the J2EE instance.
    After you make the JAR files available, deploy the adapter on the Oracle application server by using either the Oracle Application Server (Oracle AS) Application Server Control (ASC) or the Oracle admintool.jar file. Copy the adapter archive file (BRM_home/apps/brm_integrations/jca_adapter/OracleBRMJCA15Adapter.rar) from the installation directory to a location that is accessible to the adapter deployment tool. You can then open and deploy the archive file on your application server.
    After successful deployment, return the applications.xml file to its original settings and add the oracle.bpel.common codesource to the BRM Adapter oc4j-ra.xml file:
    Open the Oracle_home/j2ee/Instance/config/applications.xml configuration file for the J2EE instance.
    Remove the following oracle.bpel.common entry (shown in bold below):
    <imported-shared-libraries>
    <import-shared-library name="adf.oracle.domain"/>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    Save and close the file.
    Open the JCA Resource Adapter oc4j-ra.xml file from the Oracle_home/j2ee/Instance/application-deployments/default/BRMAdapterDeploymentName directory.
    Add the oracle.bpel.common entry (shown in bold below) to the oc4j-connector-factories section of the file:
    <oc4j-connector-factories...>
    <imported-shared-libraries>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    <oc4j-connector-factories>
    Save and close the file.
    Restart the application server or the J2EE instance.
    For more information about deploying the adapter, see your application server’s documentation.
    Connecting the adapter to BRM in Oracle AS
    You connect the adapter to the BRM software by creating connection pools and connection factories. As part of the adapter deployment, the application server creates oc4j-ra.xml from the packaged ra.xml. The ra.xml file is located in the Oracle_home/j2ee/Instance/connectors/AdapterDeploymentName/AdapterDeploymentName/META-INF directory. For example, Oracle_home/j2ee/home/connectors/BRMAdapter/BRMAdapter/META-INF/ra.xml.
    Use the resource adapter home page from the Oracle AS ASC page to create connection pools and connection factories.
    Create your connection pool by following the performance and tuning guidelines in Configuring Connection Pooling in OC4J in Oracle Containers for J2EE Resource Adapter Administrator's Guide. See download.oracle.com/docs/cd/B31017_01/web.1013/b28956/conncont.htm.
    Make sure you set the pool’s Maximum Connections parameter (maxConnections XML entity) equal to or greater than the Oracle BPEL process manager’s dspMaxThreads parameter. For more information, see Oracle BPEL Process Manager Performance Tuning in Oracle Application Server Performance Guide for 10g Release 3 (10.1.3.1.0) at download.oracle.com/docs/cd/B31017_01/core.1013/b28942/tuning_bpel.htm.
    Note To set up JCA Resource Adapter transaction management in BPEL, you must create a private connection pool and set its Inactive Connection Timeout property (inactivity-timeout XML entity) to 0. See About JCA Resource Adapter transaction management in BPEL for more information.
    Create as many connection factories as your system needs. For each connection factory, specify the following:
    The JNDI location for the connection factory.
    The connection pool to use.
    How to connect to BRM by using these entries:
    Entry
    Description
    ConnectionString
    Specify the protocol, host name, and port number for connecting to the BRM software. For example: ip Server1 12006.
    DBNumber
    Specify the database number for the BRM database. For example, enter 1 or 0.0.0.1 for database 0.0.0.1.
    InputValidation
    Specifies whether to validate the input XMLRecord:
    True — The adapter validates the input XMLRecord against the opcode schema.
    False — The adapter does not validate the input XMLRecord.
    The default is False.
    This overrides any other validation parameter specified in the WSDL file.
    OutputValidation
    Specifies whether to validate the output XMLRecord:
    True — The adapter validates the output XMLRecord against the opcode schema.
    False — The adapter does not validate the output XMLRecord.
    The default is False.
    This overrides any other validation parameter specified in the WSDL file.
    LoginType
    Specifies the authentication method:
    1 — The adapter logs in to BRM by using the specified login name and password.
    0 — The adapter logs in to BRM by using the specified service type and POID ID.
    The default is 1.
    UserName
    Specifies the login name the adapter uses for logging in to the BRM software.
    Note This entry is required only if LoginType is set to 1.
    Password
    Specify the password the adapter uses for logging in to the BRM software.
    Note This entry is required only if LoginType is set to 1.
    PoidID
    Specifies the POID ID. This entry should be set to 1.
    ServiceType
    Specifies the service the adapter uses to log in to the BRM software.
    The default is /service/pcm_client.
    You have successfully configured the adapter to connect to BRM.

  • Inqmy resource adapter for SAP with Bea Weblogic Server

              Hi everybody,
              Anybody have tried to use INQMY resource adapter for SAP with Bea weblogic server
              It works well with INQMY server, but with BEA I'm getting a lot of problems creating
              the connections.
              Thanks in advance.
              Xavi.
              

    All,
              Here are the steps we (used for internal testing) had to perform to get
              IN-Q-MY adapter for SAP to work with WebLogic:
              The wli.adapter.inqmy.sapr3.spi package contains extensions to the
              In-Q-My J2EE Connector Architecture classes to overcome some limitations
              in the base implementation classes. To get around these issues, we had
              to extend their R3ManagedConnectionFactory, R3ConnectionManager, and
              R3ConnectionFactory classes.
              * The javax.resource.spi.ManagedConnectionFactory implementation
              does not over-ride the equals and hashCode methods correctly. This
              causes problems with WLS 6.1.
              * There is a bug in their javax.resource.spi.ConnectionManager
              implementation for non-managed uses of the adapter. Consequently, their
              adapter cannot be used in a non-managed scenario.
              * The javax.resource.cci.ConnectionFactory class does not support
              the getConnection() method that does not take any arguments (it throws a
              null pointer exception).
              I am attaching the classes discussed above.
              Cheers,
              Chris
              Torsten Friebe wrote:
              > Hi,
              >
              > does anybody know where to get a trail version - if one exists - of IN-Q-MY
              > application server or the resource adapter?
              >
              > Thanks, regards
              > Torsten
              >
              > "Xavi" <[email protected]> schrieb im Newsbeitrag
              > news:[email protected]...
              >
              >>Hi everybody,
              >>
              >>Anybody have tried to use INQMY resource adapter for SAP with Bea weblogic
              >>
              > server
              >
              >>?
              >>
              >>It works well with INQMY server, but with BEA I'm getting a lot of
              >>
              > problems creating
              >
              >>the connections.
              >>
              >>Thanks in advance.
              >>Xavi.
              >>
              >>
              >
              >
              package wli.adapter.inqmy.sapr3.spi;
              import java.io.Serializable;
              import javax.resource.ResourceException;
              import javax.resource.cci.Connection;
              import javax.resource.cci.ConnectionSpec;
              import javax.resource.spi.ConnectionManager;
              import javax.resource.spi.ConnectionRequestInfo;
              import javax.resource.spi.ManagedConnection;
              import javax.resource.spi.ManagedConnectionFactory;
              import com.inqmy.r3adapter.R3ConnectionSpec;
              import com.inqmy.r3adapter.R3ManagedConnectionFactory;
              * Extends the In-Q-My implementation to allow for getConnection() with no
              * connection spec, i.e. use the default configured connection parameters.
              public class R3ConnectionFactory
              extends com.inqmy.r3adapter.R3ConnectionFactory
              implements com.bea.connector.IProxyMarker {
              private R3ConnectionSpec m_cspec;
              public R3ConnectionFactory(ConnectionManager cm, R3ManagedConnectionFactory mcf)
              throws ResourceException {
              super(cm, mcf);
              String strClientNumber = mcf.getClientNumber();
              if (strClientNumber == null) {
              throw new javax.resource.spi.IllegalStateException("ClientNumber not set for "+mcf);
              String strLanguage = mcf.getLanguage();
              if (strLanguage == null) {
              throw new javax.resource.spi.IllegalStateException("Language not set for "+mcf);
              String strUserName = mcf.getUserName();
              if (strUserName == null) {
              throw new javax.resource.spi.IllegalStateException("UserName not set for "+mcf);
              String strPassword = mcf.getPassword();
              if (strPassword == null) {
              throw new javax.resource.spi.IllegalStateException("Password not set for "+mcf);
              m_cspec = new R3ConnectionSpec(strClientNumber, strLanguage, strUserName, strPassword);
              public Connection getConnection(ConnectionSpec connectionSpec)
              throws ResourceException {
              if (connectionSpec == null) connectionSpec = m_cspec;
              return super.getConnection(connectionSpec);
              package wli.adapter.inqmy.sapr3.spi;
              import java.io.Serializable;
              import javax.resource.ResourceException;
              import javax.resource.spi.ConnectionManager;
              import javax.resource.spi.ConnectionRequestInfo;
              import javax.resource.spi.ManagedConnection;
              import javax.resource.spi.ManagedConnectionFactory;
              * Extends the In-Q-My implementation to over-ride the
              * allocateConnection method to return a CCI connection vs. a ManagedConnection
              public class R3DefaultConnectionManager
              implements ConnectionManager, Serializable {
              public R3DefaultConnectionManager() {}
              public Object
              allocateConnection(ManagedConnectionFactory mcf, ConnectionRequestInfo cri)
              throws ResourceException {
              ManagedConnection mc = mcf.createManagedConnection(null, cri);
              return mc.getConnection(null, cri);
              package wli.adapter.inqmy.sapr3.spi;
              import javax.resource.spi.ConnectionManager;
              import javax.resource.spi.ConnectionRequestInfo;
              import javax.resource.spi.ManagedConnection;
              import javax.security.auth.Subject;
              * Extends the In-Q-My implementation to get around some problems encountered
              * while running on WebLogic:
              * <ul>
              * <li>Must over-ride default implementation of equals and hashCode method</li>
              * <li>Needed to provide my version of the CCI ConnectionFactory</li>
              * <li>Needed to provide my version of the default ConnectionManager for the
              * non-managed scenario use case</li>
              * </ul>
              public class R3ManagedConnectionFactory
              extends com.inqmy.r3adapter.R3ManagedConnectionFactory {
              private int m_iHashCode;
              transient private com.inqmy.r3adapter.R3ConnectionRequestInfo t_cri = null;
              public R3ManagedConnectionFactory() {
              super();
              java.rmi.server.UID uid = new java.rmi.server.UID();
              m_iHashCode = uid.hashCode();
              public Object createConnectionFactory() {
              // need to install our own default connection manager because In-Q-My
              // version causes a ClassCastException in CCI ConnectionFactory
              // getConnection
              return createConnectionFactory(new R3DefaultConnectionManager());
              public ManagedConnection createManagedConnection(Subject subject, ConnectionRequestInfo cri)
              throws javax.resource.ResourceException {
              // need to check for null on the ConnectionRequestInfo object because the
              // In-Q-My R3ManagedConnection ctor does not check for null
              if (cri == null) cri = getDefaultConnectionRequestInfo();
              return new com.inqmy.r3adapter.R3ManagedConnection(this, subject, cri);
              public Object createConnectionFactory(ConnectionManager connectionManager) {
              // need to supply a connection factory that can deal with getConnection
              // that does not take a ConnectionSpec
              try {
              return new R3ConnectionFactory(connectionManager, this);      
              } catch (javax.resource.ResourceException re) {
              re.printStackTrace();
              throw new java.lang.IllegalStateException(re.getMessage());
              com.inqmy.r3adapter.R3ConnectionRequestInfo getDefaultConnectionRequestInfo()
              throws javax.resource.spi.IllegalStateException {
              if (t_cri == null) {
              String strClientNumber = this.getClientNumber();
              if (strClientNumber == null) {
              throw new javax.resource.spi.IllegalStateException("ClientNumber not set for "+this);
              String strLanguage = this.getLanguage();
              if (strLanguage == null) {
              throw new javax.resource.spi.IllegalStateException("Language not set for "+this);
              String strUserName = this.getUserName();
              if (strUserName == null) {
              throw new javax.resource.spi.IllegalStateException("UserName not set for "+this);
              String strPassword = this.getPassword();
              if (strPassword == null) {
              throw new javax.resource.spi.IllegalStateException("Password not set for "+this);
              t_cri = new com.inqmy.r3adapter.R3ConnectionRequestInfo(strClientNumber, strLanguage, strUserName, strPassword);
              return t_cri;
              public boolean equals(Object obj) {
              if (obj == null) return false;
              if (obj == this) return true;
              if (!this.getClass().isInstance(obj)) return false;
              R3ManagedConnectionFactory mcf = (R3ManagedConnectionFactory)obj;
              return compare(getClientNumber(), mcf.getClientNumber()) &&
              compare(getLanguage(), mcf.getLanguage()) &&
              compare(getUserName(), mcf.getUserName()) &&
              compare(getPassword(), mcf.getPassword()) &&
              compare(getServerName(), mcf.getServerName()) &&
              compare(getSystemNumber(), mcf.getSystemNumber());
              protected final boolean compare(final Object obj1, final Object obj2) {
              if (obj1 == obj2) return true;
              if (obj1 != null) {
              return obj1.equals(obj2);
              } else {
              if (obj2 == null) {
              return true;
              } else {
              return false;
              public int hashCode() { return m_iHashCode; }
              

  • Send message to WebSphere MQ resource adapter - how?

    Hi,
    has anybody a working sample how an Weblogic EJB can write to an MQ queue via the WebSphere MQ resource adapter?
    http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaw.doc/uj40010_.htm
    I took Adrian Cole's sample from
    WebSphere MQ resource adapter  and Weblogic - how?
    the message driven bean works, but for outbound I couldn't get it to work.
    I used
         @Resource(name = "wmq/ConnectionFactory")
         private javax.jms.ConnectionFactory queueConnectionFactory;
         Connection connection = null;
         connection = queueConnectionFactory.createConnection();
         Session sess = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
         MessageProducer messageProducer = sess.createProducer(queue);
         messageProducer.send(msg);
         connection.close();
    But then I get
    javax.jms.JMSException: [JMSPool:169819]There was an error with a resource pool used to pool JMS sessions: weblogic.common.ResourceException: 0:javax.jms.JMSException: MQJCA1018:Only one session per connection allowed.
    Can't I use the Resource Adapter to trigger an MDB and write in the same application to the same Resource Adapter?
    Thanks,
    Juergen

    By using @Resource you activate Session pooling [http://download.oracle.com/docs/cd/E12840_01/wls/docs103/jms/j2ee.htm]. Although you constantly create and close the connection, you end up with one connection and multiple Sessions created out of it when there is sufficient concurrency. In JCA, ManagedConnection represents a single Resource (because it also deals with JDBC). In JMS, a Session is a resource. Session pooling violates the requirement "one resource per managed connection" which is what MQ Resource Adapter is telling [http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaw.doc/uj40030_.htm].
    Some possible solutions:
    * Set max-beans-in-free-pool 1 in weblogic-ejb-jar.xml
    * disable wls Session pooling by simply looking up using InitialContext.lookup. WLS session pool is redundant because resource adapters usually pool connections [http://download.oracle.com/docs/cd/E12840_01/wls/docs103/resadapter/connect.html]. Define outbound resource adapter use its connection factory.

  • Java code to invoke a native library in a Resource Adapter

    Have any of you done the project on invoking a native library in a Resource Adapter that you could share some experience/tips? Thanks

    Hi Frances,
    I haven't yet done anything in this area, but I should be rather staright forward in following the related manuals:
    Configuring the Use of Resource Adapter Native Libraries
    http://download-uk.oracle.com/docs/cd/B31017_01/web.1013/b28956/adminra.htm#CACJAJHC
    The oc4j-connectors.xml File <security-permission> Element
    http://download-uk.oracle.com/docs/cd/B31017_01/web.1013/b28957/jcacontinued.htm#CHDHFEDA
    BTW: as far as I can see (haven't read the whole manual) the most important point isn't addressed in this manual: to make the native code available in your Java code, you have to load the native library with a code line like:
    System.loadLibrary("....");
    or
    Runtime.getRuntime().loadLibrary("...");
    This code line is a very critical one, because you can call it only ONCE for a native library during the runtime of a JVM.
    From the Runtime.loadLibrary JavaDoc:
    If this method is called more than once with the same library name, the second and subsequent calls are ignored.
    This statement is also true for calls in different ClassLoaders!
    Best,
    Manfred

  • Customizing Resource Adapter for Oracle Internet Directory

    Hi,
    I want to integrate an application which has Oracle Internet Directory as resource. I need to develop a resource adapter for integrating. As Oracle Internet Directory is LDAP v3, can I use LDAP resource Adapter for interaction, if so what customization is required?
    can any one give suggestion reagrding this?

    Hi Bahaugab,<br>
    I am working Oracle OID. I can able to add/modify/delete users from my resource configuration. But I am getting active sync problem with OID. It throws exception like :<br>
    From the admin console please verify that the change log is enabled under Configuration: Replication: Supplier Settings and that the Retro Changelog Plugin is enabled under Configuration: Plug-ins: Retro Changelog Plugin
    <br><br>
    But change log is enabled.
    <br><br>
    I want to know whether your active sync worked?
    <br><br>
    thanks<br>
    Neopal<br><br>

  • NoClassDefFoundError error when deploying a resource adapter rar file

    Hi,
    Iam trying to deploy a resource adapter(RA) rar file which uses orabpel.jar.
    1. When i dont package the orabpel.jar along with the adapter, i get the following error during deployment
    [Apr 19, 2007 8:05:00 PM] Connector Module Deployer for BRMAdapter STARTS.
    [Apr 19, 2007 8:05:00 PM] Copy the archive to E:\product\10.1.3.1\OracleAS_1\j2ee\home\connectors\BRMAdapter\BRMAdapter.rar
    [Apr 19, 2007 8:05:00 PM] Unpacking BRMAdapter.rar
    [Apr 19, 2007 8:05:00 PM] Done unpacking BRMAdapter.rar
    [Apr 19, 2007 8:05:00 PM] Starting up resource adapter
    [Apr 19, 2007 8:05:00 PM] Exception: NoClassDefFoundError: oracle/tip/adapter/api/exception/PCRetriableResourceException
    [Apr 19, 2007 8:05:00 PM] Operation failed with error: oracle/tip/adapter/api/exception/PCRetriableResourceException
    2. If i package the orabpel.jar file along with the RA, i get ClassCastException.
    3. I tried including the imported-shared-libraries section in the packaged oc4j-ra.xml, but this gets overwritten as part of the deployment.
    4. I removed the above class which gave NoClassDefFoundError and then tried deploying and got the following error
    [Apr 19, 2007 7:49:07 PM] Connector Module Deployer for BRMAdapter STARTS.
    [Apr 19, 2007 7:49:07 PM] Copy the archive to E:\product\10.1.3.1\OracleAS_1\j2ee\home\connectors\BRMAdapter\BRMAdapter.rar
    [Apr 19, 2007 7:49:07 PM] Unpacking BRMAdapter.rar
    [Apr 19, 2007 7:49:07 PM] Done unpacking BRMAdapter.rar
    [Apr 19, 2007 7:49:07 PM] Starting up resource adapter
    [Apr 19, 2007 7:49:07 PM] Exception: NoClassDefFoundError: Missing class: oracle.tip.adapter.api.OracleConnectionFactory Dependent class: oracle.tip.adapter.brm.BRMConnectionFactory Loader: BRMAdapter:0.0.0 Code-Source: /E:/product/10.1.3.1/OracleAS_1/j2ee/home/connectors/BRMAdapter/BRMAdapter/BRMAdapter.jar Configuration: in E:\product\10.1.3.1\OracleAS_1\j2ee\home\connectors\BRMAdapter\BRMAdapter The missing class is available from the following locations: 1. Code-Source: /E:/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar (from in /E:/product/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml) This code-source is available in loader oracle.bpel.common:10.1.3.
    [Apr 19, 2007 7:49:07 PM] Operation failed with error: Missing class: oracle.tip.adapter.api.OracleConnectionFactory Dependent class: oracle.tip.adapter.brm.BRMConnectionFactory Loader: BRMAdapter:0.0.0 Code-Source: /E:/product/10.1.3.1/OracleAS_1/j2ee/home/connectors/BRMAdapter/BRMAdapter/BRMAdapter.jar Configuration: in E:\product\10.1.3.1\OracleAS_1\j2ee\home\connectors\BRMAdapter\BRMAdapter The missing class is available from the following locations: 1. Code-Source: /E:/product/10.1.3.1/OracleAS_1/bpel/lib/orabpel.jar (from in /E:/product/10.1.3.1/OracleAS_1/j2ee/home/config/server.xml) This code-source is available in loader oracle.bpel.common:10.1.3.
    Here is the oc4j-ra.xml i package:
    <?xml version="1.0"?>
    <oc4j-connector-factories xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.oracle.com/technology/oracleas/schema/oc4j-connector-factories-10_0.xsd"
    schema-major-version="10" schema-minor-version="0">
    <imported-shared-libraries>
    <import-shared-library name="oracle.bpel.common"></import-shared-library>
    </imported-shared-libraries>
    <connector-factory location="eis/BRM" connector-name="OracleBRMAdapter">
    <config-property name="ConnectionString" value="ip blrhpdv3 12006"></config-property>
    <config-property name="DBNumber" value="1"></config-property>
    <connection-pooling use="none"/>
    <security-config use="none"/>
    <connectionfactory-interface>
    javax.resource.cci.ConnectionFactory
    </connectionfactory-interface>
    </connector-factory>
    </oc4j-connector-factories>
    Currently i package orabpel.jar file along with the RA rar file, deploy, later go and modify the oc4j-ra.xml from application-deployments/... to include the imported-shared-libraries, remove the orabpel.jar from the connectors/BRMAdapter directory, restart the AS and it works
    Iam using Oracle AS 10.1.3 as part of the SOA Suite.
    Any help would be appreciated.

    Found a soln, add the codesource to the j2ee instance application.xml
    eg adding the following
    <imported-shared-libraries>
    <import-shared-library name="oracle.bpel.common"/>
    </imported-shared-libraries>
    solves the problem. Make sure the shared libraries are installed and is added to the instance server.xml
    This is described in "Oracle® Containers for J2EE Developer’s Guide 10g (10.1.3.1.0)"
    But not sure if the end customers need to be told to edit the configuration file manually.

  • Error in using the Socket Adapter while deploying the composite

    I am going through a Socket Adapter sample given in Oracle JCA Adapters for Sockets"Oracle Socket Adapter Hello World".
    This sample demonstrates inbound request/response and synchronous outbound request/response modes of communication using using Oracle Socket Adapter.
    The HelloWorld business process takes an input string from the Socket Adapter inbound service and
    publishes the message to the BPEL process.
    The BPEL process invokes the Socket Adapter outbound service and returns the received string using synchronous reply.
    Before going into this sample i did the configuration in the Weblogic server by following the steps below:-
    1)Log into Weblogic server console
    2)Click Deployments in the left pane for Domain Structure
    3)Click Socket Adapter.The settings for SocketAdapter page is displayed.
    4)Click the configuration tab
    5)Click the Outbound Connection Pools tab, and expand java.resource.cci.ConnectionFactory to see connection
    factories
    6)Click eis/socket/SocketAdapter
    7)Set the KeepAlive connection property to true
    8)Save the setting.
    After this i did the necessary configurations in the Socket Adapter Configuration Wizard(Inbound/Outbound).
    The BPEL process has:-
    1)A receive which receives input from a Socket Adapter which serves as an inbound synchronous service.
    2)An invoke acitvity which invokes a socket adapter which serves as a outbound synchronous service.
    3)Two Assign activites to do the necessary assignment.
    After Deploying the sample i encountered with the following errors:-
    <Sep 9, 2012 1:19:48 PM IST> <Error> <oracle.integration.platform.blocks.deploy.servlet> <SOA-21537> <Sending back error message: There was an error deploying the composite on soa_
    server1: [JCABinding] [Middleware.ServerConnection/6.0]Unable to complete unload due to: Cannot locate Java class oracle.tip.adapter.socket.SocketInteractionSpec: Cannot locate Jav
    a class oracle.tip.adapter.socket.SocketInteractionSpec..>
    Can any one please tell me the solution for this error.
    Edited by: 957910 on Sep 12, 2012 1:10 AM

    Did you find a solution for this issue. I see the same error while deploying the same very sample code.

  • BPEL & Resource adapter deployment in 10.1.2

    Hi,
    I have deployed a JCA resource adapter in a 10.1.2 server and it seems that it doesn't get deployed right or, at least, when I test it with a BPEL process, doesn’t work.
    I have tested the adapter and the BPEL process in 10.1.3 and works fine, but it doesn't work in 10.1.2. I need to work in 10.1.2 because I'm using the B2B integration suite and this is only available in 10.1.2.
    This is what I have done to deploy the adapter:
    i. I created the file oc4j-ra.xml in C:\OraHome_1OAS\j2ee\OC4J_BPEL\application-deployments\default\EbMS Adapter
    ii. I copied the adapter rar file in C:\OraHome_1OAS\j2ee\OC4J_BPEL\connectors\EbMS Adapter
    iii. I update C:\OraHome_1OAS\j2ee\OC4J_BPEL\config\oc4j-connectors.xml
    Then, when I try to deploy a BPEL process to test the adapter, I get this error in the log (C:\OraHome_1OAS\integration\orabpel\domains\default\logs\domain.log):
    <2007-06-20 09:18:31,984> <DEBUG> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Looking up Resource Adapter JNDI location 'eis/ebmsra'
    <2007-06-20 09:18:31,984> <WARN> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JNDI lookup of 'eis/ebmsra' failed due to: eis/ebmsra not found
    <2007-06-20 09:18:31,984> <DEBUG> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Looking up Resource Adapter JNDI location 'eis/ebmsra'
    <2007-06-20 09:18:31,984> <WARN> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JNDI lookup of 'eis/ebmsra' failed due to: eis/ebmsra not found
    <2007-06-20 09:18:32,078> <DEBUG> <default.collaxa.cube.engine.deployment> <DeploymentHelper::deployProcess> failed because
    java.lang.Exception: Problem 1: [EBMSOutgoing.wsdl]: Unable to locate the JCA Resource Adapter via WSDL port element jca:address.
    The Adapter Framework is unable to startup the Resource Adapter specified in the WSDL jca:address element: {http://xmlns.oracle.com/pcbpel/wsdl/jca/}address: location='eis/ebmsra'
    The reason for this is most likely that either
    1) the Resource Adapters RAR file has not been deployed successfully to the OC4J Application server or
    2) the 'location' attribute in $J2EE_HOME/application-deployments/default/deployed-adapter-name/oc4j-ra.xml has not been set to eis/ebmsra. In the last case you might have to add a new 'connector-factory' entry (connection) to oc4j-ra.xml.
    Please correct this and then restart the BPEL/OC4J Application Server
         at oracle.tip.adapter.fw.validation.WSDLDeploymentValidation.performDeploymentWsdlValidation(WSDLDeploymentValidation.java:144)
         at com.collaxa.cube.engine.deployment.DeploymentHelper.performPreDeploymentActions(DeploymentHelper.java:578)
         at com.collaxa.cube.engine.deployment.DeploymentHelper.deployProcess(DeploymentHelper.java:350)
         at com.collaxa.cube.ejb.impl.BPELDomainManagerBean.deployProcess(BPELDomainManagerBean.java:412)
         at IBPELDomainManagerBean_StatelessSessionBeanWrapper34.deployProcess(IBPELDomainManagerBean_StatelessSessionBeanWrapper34.java:2300)
         at com.oracle.bpel.client.BPELDomainHandle.deployProcess(BPELDomainHandle.java:303)
         at deployProcess.jspService(_deployProcess.java:136)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:222)
         at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:152)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    <2007-06-20 09:18:32,078> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "domain manager": Error deploying BPEL archive.
    An error occurred while attempting to deploy the BPEL archive file "bpel_EBMSOutgoingSample_v2007_06_19__39432.jar"; the exception reported is: Problem 1: [EBMSOutgoing.wsdl]: Unable to locate the JCA Resource Adapter via WSDL port element jca:address.
    The Adapter Framework is unable to startup the Resource Adapter specified in the WSDL jca:address element: {http://xmlns.oracle.com/pcbpel/wsdl/jca/}address: location='eis/ebmsra'
    The reason for this is most likely that either
    1) the Resource Adapters RAR file has not been deployed successfully to the OC4J Application server or
    2) the 'location' attribute in $J2EE_HOME/application-deployments/default/deployed-adapter-name/oc4j-ra.xml has not been set to eis/ebmsra. In the last case you might have to add a new 'connector-factory' entry (connection) to oc4j-ra.xml.
    Please correct this and then restart the BPEL/OC4J Application Server
    ORABPEL-05207
    Error deploying BPEL archive.
    An error occurred while attempting to deploy the BPEL archive file "bpel_EBMSOutgoingSample_v2007_06_19__39432.jar"; the exception reported is: Problem 1: [EBMSOutgoing.wsdl]: Unable to locate the JCA Resource Adapter via WSDL port element jca:address.
    The Adapter Framework is unable to startup the Resource Adapter specified in the WSDL jca:address element: {http://xmlns.oracle.com/pcbpel/wsdl/jca/}address: location='eis/ebmsra'
    The reason for this is most likely that either
    1) the Resource Adapters RAR file has not been deployed successfully to the OC4J Application server or
    2) the 'location' attribute in $J2EE_HOME/application-deployments/default/deployed-adapter-name/oc4j-ra.xml has not been set to eis/ebmsra. In the last case you might have to add a new 'connector-factory' entry (connection) to oc4j-ra.xml.
    Please correct this and then restart the BPEL/OC4J Application Server
         at com.collaxa.cube.engine.deployment.DeploymentHelper.deployProcess(DeploymentHelper.java:363)
         at com.collaxa.cube.ejb.impl.BPELDomainManagerBean.deployProcess(BPELDomainManagerBean.java:412)
         at IBPELDomainManagerBean_StatelessSessionBeanWrapper34.deployProcess(IBPELDomainManagerBean_StatelessSessionBeanWrapper34.java:2300)
         at com.oracle.bpel.client.BPELDomainHandle.deployProcess(BPELDomainHandle.java:303)
         at deployProcess.jspService(_deployProcess.java:136)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:350)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:824)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:222)
         at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:152)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:224)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)
    <2007-06-20 09:19:18,515> <DEBUG> <default.collaxa.cube.engine.dispatch> <Dispatcher::insert> Received no-op message
    <2007-06-20 09:19:18,515> <DEBUG> <default.collaxa.cube.engine.dispatch> <Dispatcher::adjustThreadPool> Allocating 1 thread(s); pending threads: 1, active threads: 0, total: 5
    <2007-06-20 09:19:18,515> <DEBUG> <default.collaxa.cube.engine.dispatch> <QueueConnectionPool::getConnection> Fetched a queue connection from pool java:comp/env/jms/collaxa/BPELWorkerQueueFactory, available connections=24, total connections=25
    <2007-06-20 09:19:18,515> <DEBUG> <default.collaxa.cube.engine.dispatch> <DispatcherBean::send> Sent message to queue
    <2007-06-20 09:19:18,515> <DEBUG> <default.collaxa.cube.engine.dispatch> <QueueConnectionPool::releaseConnection> Released queue connection to pool java:comp/env/jms/collaxa/BPELWorkerQueueFactory, available connections=25, total connections=25
    As I see that I have deployed the connector in C:\OraHome_1OAS\j2ee\OC4J_BPEL, but the BPEL process is been deployed in C:\OraHome_1OAS\integration\orabpel, I try to deploy the connector in C:\OraHome_1OAS\integration\orabpel\system\appserver\oc4j\j2ee\home. I copied the "connectors" and "application-deployments" directories into C:\OraHome_1OAS\integration\orabpel\system\appserver\oc4j\j2ee\home (because didn't exist) and updated the C:\OraHome_1OAS\integration\orabpel\system\appserver\oc4j\j2ee\home\config\oc4j-connectors.xml, but I still get the same error.
    Anybody can help me?
    Thanks,
    Miguel

    Hi miquel,
    I'm working in 10.1.3.1 environmen and wanna develop a custom JCA adapter. Can you show me some hits/reference for JCA adapter in 10.1.3.1?
    Steven

  • Resource Adapter Deployment Error (Resolved)

    This Problem Has Been Resolved.
    I'm trying to develop an application using Inbound resource adapters on Weblogic 9.2.1 .
    I have the resource adapter and the MDB packaged separately. The MDB appears to deploy successfully, but the resource adapter does not.
    I get the following exception
    javax.naming.NamingException [Root exception is java.rmi.RemoteException: javax.naming.InitialContext; nested exception is:
         java.io.NotSerializableException: javax.naming.InitialContext]
         at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:97)
         at weblogic.jndi.internal.WLContextImpl.translateException(WLContextImpl.java:421)
         at weblogic.jndi.internal.WLEventContextImpl.bind(WLEventContextImpl.java:297)
         at weblogic.jndi.internal.WLContextImpl.bind(WLContextImpl.java:389)
         at weblogic.connector.deploy.JNDIHandler.bindRA(JNDIHandler.java:575)
         at weblogic.connector.common.RAInstanceManager.putRAintoJNDITree(RAInstanceManager.java:1361)
         at weblogic.connector.common.RAInstanceManager.activate(RAInstanceManager.java:432)
         A similar issues was referenced in this message :
         http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4330872
         It appears that the exception means the InitialContext is not serializable.
         This is my start(BootstrapContext) method in my resource adapter. If I DO NOT call new InitialContext(), or setMDBOnMessageMethod(), the exception does not occur.
    public void start(BootstrapContext ctx)
         this.ctx = ctx;
         System.out.println("entering AddScanResourceAdapterImpl start");
         logger.info("entering AddScanResourceAdapterImpl start");
         try
         this.JNDIContext = new InitialContext(); // This causes the exception.
         this.wm = this.ctx.getWorkManager(); // Calling this does not cause and exception.
         setMDBOnMessageMethod(); // This also appears to cause the same exception.
         catch (Exception e)
              System.out.println("AddScanRA start : Exception thrown: " + e);
         // TODO: Log problem.     
         logger.info("exiting AddScanResourceAdapterImpl start");
    private void setMDBOnMessageMethod()
    try
    Class socketListenerClass = com.fedex.ground.tms.mtms.server.addscan.connector.ra.AddScanSocketHandler.class;
    Class[] paramTypes      = { java.net.Socket.class };
    this.onMessageMethod      = socketListenerClass.getMethod("onMessage", paramTypes);
    catch (NoSuchMethodException ex)
    ex.printStackTrace();
    Thanks for your any help,
    John
    Edited by johnbrod20 at 04/17/2007 6:48 AM

    Hi John,
    One of my customer is facing the same error .
    Can you please share the resolution of this problem

  • WebLogic Server 10.0 MP1: Error in resource adapter deployment

    When I try to deploy our (own implemented) resource adapter into WebLogic Server 10.0 MP1, I get the following error message:
    An error occurred during activation of changes, please see the log for details.
    weblogic.security.service.InvalidParameterException: weblogic.security.service.SecurityServiceException: [Security:090198]No appropriate constructor for java.util.logging.LoggingPermission
    java.util.logging.LoggingPermission.(java.lang.String)
    The same adapter works flawless with Oracle AS/OC4J, JBoss 4.2 and Glassfish V2.
    In the security-permission-spec element of our ra.xml file we use (beside others) the following permissions:
    permission javax.management.MBeanTrustPermission "register";
    permission java.util.logging.LoggingPermission "control";
    When I delete this two lines from the security-permission-spec element, I can deploy the adapter in WebLogic.
    For me this seems to be a bug in WebLogic 10.0MP1.
    Best,
    Manfred

    Re: Installation error: Weblogic Server 10.0 MP2

  • Resource Adapter deployment on cluster

    Hi,
    I have a weblogic cluster with 2 nodes and a load balancer. Recently I have deployed a database adapter to connect to a sql server database which is used by a service (OSB proxy service). The deployed was performed with both nodes running and I connected to the admin console using the LB IP. The deployed was done with successful and I have restarted both nodes. The cluster is configured with a stage mode in order to copy files from admin server.
    When I call this service, it goes ok when node1 is used but not ok when node2 is used. It gives an JCA error accessing the sql server database. To solve this issue I had to copy the deployment plan file from node1 to node2 and reploy de dbadapter resource with node1 down in order to update the node2. I was expecting that these files were updated on both nodes whenever I deploy a resource adapter on admin console.
    What am I doing wrong? Or what config should I check/update on admin console in order to avoid this manual task?
    Thanks,
    Regards,
    António Amado

    Use the shared location for deployment plans.
    Please see the link : Managing the Topology for an Enterprise Deployment - 11g Release 1 (11.1.1)

Maybe you are looking for