4 Replies Latest reply on May 30, 2015 10:14 PM by jboss234

    How to reference ejb jar file inside web.xml

    jboss234

      how to reference ejb jar file in WAR file's web.xml

       

      our application use cocoon framework, application deploy as Ear.

       

      EAR has WAR and EJB jar module, how to reference this EJB jar module in web.xml

       

      thanks

        • 1. Re: How to reference ejb jar file inside web.xml
          jboss234

          Cocoon web.xml has

           

          <init-param>

                <param-name>extra-classpath</param-name>

                <param-value>?</param-value>

          </init-param>

           

          its in WAR file.

           

          I wanted to reference JAR file from EAR module in this web.xml.

          What should be relative path ?

           

          EAR file has WAR and JAR file.

           

          Thanks,

          • 2. Re: How to reference ejb jar file inside web.xml
            wdfink

            What you try to achieve? In general the web-app should have access to the ejb-jar if the deployment and configuration is correct.

            You should have a look to the documentation.

            Which version do you use AS7 or WildFly?

            • 3. Re: How to reference ejb jar file inside web.xml
              jboss234

              I am using wildfly 8.2.0

               

              Most of the part of Web application is accessing EJB JAR file without any issue except Cocoon's XSP generated JAVA classes.

               

              We are using Cocoon framework which use xsp. xsp transformed to JAVA class during runtime. These XSP java classes are not able to access classes from EJB module.

               

              Cocoon's web.xml has <param-name>extra-classpath</param-name> (which is inside WAR file), I am trying to set relative path for EJB jar module in web.xml

               

              EAR has WAR and EJB Jar components.

               

              Thanks,

              • 4. Re: How to reference ejb jar file inside web.xml
                jboss234

                Any suggestions

                 

                Thanks