Results 1 to 2 of 2
- 02-05-2010, 04:48 PM #1
Member
- Join Date
- Feb 2010
- Posts
- 2
- Rep Power
- 0
JBOSS DeploymentException : Not able to find module file : .war in a .ear file
Hi ,
I hve build the ear file using maven 2.0.9 . Ear file has the following strusture ..
account
ejb
acountear
web
each module has its own .pom file as well ....
and ear file contains application.xml in meta inf ... build by maven only ....
contents of application file :--- <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC
"-//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN"
"http://java.sun.com/dtd/application_1_3.dtd">
<application>
<display-name>accountEAR</display-name>
<module>
<ejb>ejb.jar</ejb>
</module>
<module>
<web>
<web-uri>web.war</web-uri>
<context-root>/web</context-root>
</web>
</module>
</application>
when i deplyed the generated ear file on jboss 4.2.3 GA ... i got the following exception
JBOSS DeploymentException : Not able to find module file : .war in a .ear file
I tried to put jboss-app.xml in ear and jboss-web.xml in web module ..... but stilll no use ....
contrents of jboss-app.xml ----
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jboss-app PUBLIC
"-//JBoss//DTD J2EE Application 1.4//EN"
"http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd">
<jboss-app>
<loader-repository>com.somecompany:loader=accountEar.ear</loader-repository>
</jboss-app>
contents of jboss-web.xml ....
<jboss-web>
<loader-repository>
com.my.package.war:loader=web.war
</loader-repository>
<attribute name="Java2ClassLoadingCompliance">true</attribute>
<attribute name="UseJBossWebLoader">true</attribute>
</jboss-web>
Pleas suggest me how to proceed ......
-
Similar Threads
-
JBOSS DeploymentException : Not able to find module file : .war in a .ear file
By shikha3g in forum Enterprise JavaBeans (EJB)Replies: 0Last Post: 02-05-2010, 03:49 PM -
how to find class name when have only jar file?
By matvey in forum Java AppletsReplies: 9Last Post: 10-13-2009, 01:49 PM -
find file with * on the path
By itaipee in forum New To JavaReplies: 7Last Post: 07-08-2009, 08:05 AM -
Read/Find Substring/Write to new file
By hiklior in forum New To JavaReplies: 6Last Post: 04-23-2008, 02:47 AM -
How to find file created date.....
By roshithmca in forum Advanced JavaReplies: 1Last Post: 02-18-2008, 09:48 AM


LinkBack URL
About LinkBacks

Bookmarks