This content has been marked as final.
Show 4 replies
-
1. Re: searching WEB-INF/classes
jaikiran Jul 21, 2008 4:37 AM (in response to laurencekirk)Which version of JBoss? Where is the jar file placed? And what does your application.xml look like?
-
2. Re: searching WEB-INF/classes
laurencekirk Jul 21, 2008 12:20 PM (in response to laurencekirk)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 Jul 22, 2008 4:00 AM (in response to laurencekirk)"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
laurencekirk Jul 24, 2008 3:39 AM (in response to laurencekirk)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.