1 Reply Latest reply on Dec 9, 2002 12:32 PM by David Jencks

    JCA/.rar in .ear.

    Kenneth Petersen Newbie


      I am trying to deploy a .ear with the following contents:


      My application.xml document contains a single entrance:


      When I start JBoss I get the following messages regarding test.ear:
      10:00:22,593 INFO [MainDeployer] Starting deployment of package: file:/D:/JavaSoft/jboss/server/default/deploy/test.ear/
      10:00:22,593 INFO [EARDeployer] Init J2EE application: file:/D:/JavaSoft/jboss/server/default/deploy/test.ear/
      10:00:22,671 WARN [ServiceController] jboss.jca:service=RARDeployment,name=MyJCA does not implement any Service methods
      10:00:22,687 INFO [MainDeployer] Deployed package: file:/D:/JavaSoft/jboss/server/default/deploy/test.ear/

      I have with success deployed the .rar outside the .ear and I have with success deployed the .rar inside the .ear but with ?myjca-service.xml? at the root of the JBoss deployment library. Is it possible to deploy ?myjca-service.xml? inside the application?

      Furthermore I would like to more MyJCA.jar outside the .rar component. Even though I have referenced MyJCA.jar from the MANIFEST.MF of MyJCA.rar I get a ClassNotfoundException. Is it possible to deploy MyJCA.jar outside MyJCA.rar?

      I am running JBoss 3.0.4.

      Best regards
      Kenneth Petersen

        • 1. Re: JCA/.rar in .ear.
          David Jencks Master

          You need to specify that the myrar-service.xml should be deployed by including a jboss-app.xml next to application.xml

          As I recall the correct fomat is




          myrar-service.xml should be in the root of the .ear

          The classes in MyJCA.jar should be deployed and available to everyone without any manifest classpath references, just the application.xml reference. If this isn't happening please provide more details.

          If you want to move the myjca.jar elsewhere in the .ear you will probably have to provide a manifest classpath reference to it. I don't recommend this.