1 Reply Latest reply: Jul 29, 2011 12:50 AM by wilson.t RSS

    Unable to deploy old version of ressouces adapter

    871935
      Hello,

      I have a previous Resource Adapter using JCA running on WLS 10.3.2 (SOA Suite 11.1.1.2) which was working but when trying to deploy it to a new version of Weblogic 10.3.5 (Soa suite 11.1.1.5), it is not working anymore with the following error.
      -----
      [wldeploy] The ResourceAdapterJNDIName configuration attributes cannot be mixed with any of the following settings: JmsClientId, JmsPollingIntervalSeconds, MaxMessagesInTransaction, DurableSubscriptionDeletion, DistributedDestinationConnection,use81StylePolling,ConnectionFactoryResourceLink, DestinationResourceLink, InitialContextFactory, providerUrl, connectionFactoryJNDIName, destinationJNDIName. . Please ensure they are mutually exclusive for ejb MailResourceAdapterClientMDBBean(Application: mail-resource-adapter-client, EJBComponent: mail-resource-adapter-client.jar). NestedException Message is :The ResourceAdapterJNDIName configuration attributes cannot be mixed with any of the following settings: JmsClientId, JmsPollingIntervalSeconds, MaxMessagesInTransaction, DurableSubscriptionDeletion, DistributedDestinationConnection,use81StylePolling,ConnectionFactoryResourceLink, DestinationResourceLink, InitialContextFactory, providerUrl, connectionFactoryJNDIName, destinationJNDIName. . Please ensure they are mutually exclusive for ejb MailResourceAdapterClientMDBBean(Application: mail-resource-adapter-client, EJBComponent: mail-resource-adapter-client.jar).
      -----

      Anyone has a idea ?

      Below are additionnal configuration files.

      ra.xml is
      -----
      <?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>E-Mail JCA Resource Adapter</display-name>
      <vendor-name>TITI</vendor-name>
      <eis-type>E-Mail Server</eis-type>
      <resourceadapter-version>1.0</resourceadapter-version>
      <resourceadapter>
      <resourceadapter-class>toto.jca.email.MailResourceAdapter</resourceadapter-class>
      <inbound-resourceadapter>
      <messageadapter>
      <messagelistener>
      <messagelistener-type>javax.resource.cci.MessageListener</messagelistener-type>
      <activationspec>
      <activationspec-class>toto.jca.email.MailActivationSpec</activationspec-class>
      </activationspec>
      </messagelistener>
      </messageadapter>
      </inbound-resourceadapter>
      </resourceadapter>
      </connector>
      -----

      and weblogic-ra.xml is
      -----
      <?xml version = '1.0' encoding = 'windows-1252'?>
      <weblogic-connector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.bea.com/ns/weblogic/90/weblogic-ra.xsd"
      xmlns="http://www.bea.com/ns/weblogic/weblogic-connector">
      <jndi-name>PlopEmailAdapter</jndi-name>
      <enable-access-outside-app>false</enable-access-outside-app>
      <enable-global-access-to-classes>true</enable-global-access-to-classes>
      <work-manager>
      <name>mail-jca-adapter-work-manager</name>
      <ignore-stuck-threads>true</ignore-stuck-threads>
      </work-manager>
      </weblogic-connector>
      -----

      and ejb-jar.xml is
      -----
      <?xml version = '1.0' encoding = 'windows-1252'?>
      <ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/j2ee/ejb-jar_3_0.xsd"
      version="3.0" xmlns="http://java.sun.com/xml/ns/javaee">
      <enterprise-beans>
      <message-driven>
      <description>EJB 3.0 Message Driven Bean (MDB) that acts as client for the Mail JCA Resource Adapter</description>
      <display-name>MailResourceAdapterClientMDBBean</display-name>
      <ejb-name>MailResourceAdapterClientMDBBean</ejb-name>
      <ejb-class>toto.email.client.MailResourceAdapterClientMDBBean</ejb-class>
      <messaging-type>javax.resource.cci.MessageListener</messaging-type>
      <transaction-type>Container</transaction-type>
      </message-driven>
      </enterprise-beans>
      </ejb-jar>
      -----

      and weblogic-ejb-jar.xml is
      -----
      <?xml version = '1.0' encoding = 'windows-1252'?>
      <weblogic-ejb-jar xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.bea.com/ns/weblogic/weblogic-ejb-jar.xsd"
      xmlns="http://www.bea.com/ns/weblogic/weblogic-ejb-jar">
      <weblogic-enterprise-bean>
      <ejb-name>MailResourceAdapterClientMDBBean</ejb-name>
      <message-driven-descriptor>
      <resource-adapter-jndi-name>PlopEmailAdapter</resource-adapter-jndi-name>
      </message-driven-descriptor>
      </weblogic-enterprise-bean>
      </weblogic-ejb-jar>
      -----