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 ......