2 Replies Latest reply on Mar 3, 2005 11:27 AM by bbalmer

    Stateless Session Bean with dependent .jar

    bbalmer

      First, I'm using jboss-4.0.0 with:
      true
      true
      false

      I have an EJB that I want to deploy that has a copy of a .jar file. This .jar file (with different versions) is deployed in multiple .war files on the server as well.

      Whenever I try to deploy the .ejb JBoss deploys the .ejb as well as the internal .jar file, messing up all calls to functions within the .jar.

      Is there a way to stop JBoss from taking the .jar in the .ejb and deploying it as a separate application? I have a lib directory (which would get deployed in the classes directory) which holds the .jar file). Is there another place to put this .jar?

      Thanks for any help anybody can give.

        • 1. Re: Stateless Session Bean with dependent .jar
          bbalmer

          Sorry, the jboss-service.xml attributes didn't come across:

          
           <attribute name="Java2ClassLoadingCompliance">true</attribute>
           <attribute name="LenientEjbLink">true</attribute>
           <attribute name="UseJBossWebLoader">false</attribute>
          
          


          • 2. Re: Stateless Session Bean with dependent .jar
            bbalmer

            Please,

            Does anybody know of a way to deploy a jar file within an EJB so that when JBoss deploys the EJB it does NOT deploy the jar file?

            My EJB deployment looks like:
            ProjectNameEJB.jar
            --app (local code)
            --META-INF
            ----ejb-jar.xml
            ----MANIFEST.MF
            --lib
            ----some_code.jar

            Whenever I deploy the EJB jar file JBoss picks up the some_code.jar file and deploys it as well. The classes here are in other .war files (already deployed) and this messes everything up.

            Any help would be greatly appreciated.

            Thanks.