4 Replies Latest reply on Jul 24, 2008 3:39 AM by Laurence Kirk

    searching WEB-INF/classes

    Laurence Kirk Newbie

      I have an Seam application deployed in an .ear file containing a .war file, and a .jar file . All the application's class files are contained in the .jar file and there are no classes in war file's WEB-INF/classes directory.
      Using truss I see that JBoss is searching for application class files in WEB-INF/classes , and failing to find them there, as they are in the .jar file. Is there any way to prevent JBoss searching the WEB-INF/classes directory ? as this is adding a significant overhead to each request.

        • 1. Re: searching WEB-INF/classes
          jaikiran pai Master

          Which version of JBoss? Where is the jar file placed? And what does your application.xml look like?

          • 2. Re: searching WEB-INF/classes
            Laurence Kirk Newbie

            Version - 4.22
            the hierarchy within the ear file is :
            Application.ear
            - Application.jar
            - Application.war

            application xml contains
            <jboss-app>
            <loader-repository>
            seam.jboss.org:loader=Application
            </loader-repository>
            </jboss-app>

            • 3. Re: searching WEB-INF/classes
              jaikiran pai Master

               

              "laurencekirk" wrote:
              Version - 4.22
              the hierarchy within the ear file is :
              Application.ear
              - Application.jar
              - Application.war

              application xml contains
              <jboss-app>
              <loader-repository>
              seam.jboss.org:loader=Application
              </loader-repository>
              </jboss-app>


              You haven't posted the contents of your application.xml file. The one that you posted is the jboss-app.xml.

              Based on the EAR hierarchy you posted, the Application.jar is at the root of your EAR. This won't be added to the classpath, unless you have an module entry for this jar, in the application.xml or you move it to a folder named lib at the root of the EAR. Like this:
              Application.ear
               |
               |--- lib
               | |
               | |--- Application.jar
               |
               |
               |--- Application.war



              • 4. Re: searching WEB-INF/classes
                Laurence Kirk Newbie

                Sorry , here is the application.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_5.xsd"
                 version="5">
                
                 <display-name>Application</display-name>
                
                 <module>
                 <web>
                 <web-uri>Application.war</web-uri>
                 <context-root>/Application</context-root>
                 </web>
                 </module>
                
                 <module>
                 <ejb>Application.jar</ejb>
                 </module>
                
                 <!-- Seam and EL -->
                
                 <module>
                 <ejb>jboss-seam.jar</ejb>
                 </module>
                </application>
                




                JBoss is finding the classes in the jar file OK, the problem is that the WEB-INF/classes directory is also being scanned , I would like to stop that happening, if that is possible.