0 Replies Latest reply: Feb 15, 2012 9:24 AM by miragpl RSS

    JCA Deployment in EAR

    miragpl Newbie

      Hi everyone,

       

      I have several JCA connectors in my projects. I would like to put them (with the other part of my application ) into a single EAR file so I can just deploy just single file on customer server. Unfortunately it does not work. I'm receiving such exception:

       

       

      Caused by: java.lang.IllegalStateException: No ConnectorMetaData found for mdf rarName:connector1.rar

        at org.jboss.resource.deployers.builder.ManagedConnectionFactoryBuilder.buildConstructor(ManagedConnectionFactoryBuilder.java:104) [:6.1.0.Final]

        at org.jboss.resource.deployers.builder.AbstractBuilder.buildService(AbstractBuilder.java:56) [:6.1.0.Final]

        at org.jboss.resource.deployers.builder.AbstractBuilder.build(AbstractBuilder.java:65) [:6.1.0.Final]

        at org.jboss.resource.deployers.ManagedConnectionFactoryDeployer.deploy(ManagedConnectionFactoryDeployer.java:179) [:6.1.0.Final]

        at org.jboss.resource.deployers.ManagedConnectionFactoryDeployer.deploy(ManagedConnectionFactoryDeployer.java:52) [:6.1.0.Final]

        at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:63) [:2.2.2.GA]

       

       

       

      My application.xml & jboss-app.xml

       

       

       

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

      <application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_6.xsd" version="6">

        <description></description>

        <display-name>myEar</display-name>

        <module>

          <connector>connector1.rar</connector>

        </module>

        <module>

          <connector>connector2.rar</connector>

        </module>

        <module>

           <ejb>myEJB.jar</ejb>

         </module>

        <library-directory>APP-INF/lib</library-directory>

      </application>

       

       

       

      <!DOCTYPE jboss-app PUBLIC

      "-//JBoss//DTD J2EE Application 1.4//EN"

      "http://www.jboss.org/j2ee/dtd/jboss-app_5_0.dtd">

      <jboss-app>

                <module-order>strict</module-order>

          <loader-repository>

        mypackage:loader=myEar-SNAPSHOT.ear

                          <loader-repository-config>java2ParentDelegation=true</loader-repository-config>

                </loader-repository>

                <module>

                          <service>my-ds.xml</service>

                </module>

      </jboss-app>

       

       

      Outside of the ear all the connectors work without any problems.

       

      I would appreciate any hints;)

       

      Thanks in advance!