1 Reply Latest reply on Aug 1, 2009 5:39 AM by jaikiran pai

    Persistent.xml <jar-file> attribute configuration issue in j

    Louie Liu Newbie

      We run into issue related to the <jar-file> setting in persistent.xml when we deploy it in jboss server 5.1.0.GA. It is not a issue when we deploy it in jboss 4.2.2.GA.

      Here is the detail. We need to include some other entities from different jar file. What we do is to include it using <jar-file>, like the following:

      <jar-file>../lib/another.jar</jar-file>
      


      The another.jar is located at the following expended ear folder:

      /lib/another.jar
      myejb.jar
      ....
      


      This configuration is standard configuration documented in ejb 3.0 specification. It works in jboss 4.2.2.GA.

      However, when we deployed it in jboss 5.1.0.GA. It failed on deployment with the following error message: can not find the another.jar file in the classpath.

      We need to know what is the correct way to configure persistent.xml if we want to include other entities from different jar file in JBOSS 5.1.0.GA.

      Please help. Thanks.

      Louie Liu