Results 1 to 2 of 2
  1. #1
    shikha3g is offline Member
    Join Date
    Feb 2010
    Posts
    2
    Rep Power
    0

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

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    25

Similar Threads

  1. Replies: 0
    Last Post: 02-05-2010, 03:49 PM
  2. how to find class name when have only jar file?
    By matvey in forum Java Applets
    Replies: 9
    Last Post: 10-13-2009, 01:49 PM
  3. find file with * on the path
    By itaipee in forum New To Java
    Replies: 7
    Last Post: 07-08-2009, 08:05 AM
  4. Read/Find Substring/Write to new file
    By hiklior in forum New To Java
    Replies: 6
    Last Post: 04-23-2008, 02:47 AM
  5. How to find file created date.....
    By roshithmca in forum Advanced Java
    Replies: 1
    Last Post: 02-18-2008, 09:48 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •