• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JBOSS DeploymentException : Not able to find module file : .war in a .ear file

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 :---


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



contents of jboss-web.xml ....



Pleas suggest how to proceed ......
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
shikhs, welcome to Java Ranch!

Please use the code tags when posting source code and xml text, it makes them easier to read. (What, no indentation??? Still difficult to read!)


Your application.xml file declares that there is a web.war file, but the listing of the conetnts of the EAR that you gave does not contain web.war (it contains only web).
 
shikhs gupta
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Peter Johnson wrote:shikhs, welcome to Java Ranch!

Please use the code tags when posting source code and xml text, it makes them easier to read. (What, no indentation??? Still difficult to read!)


Your application.xml file declares that there is a web.war file, but the listing of the conetnts of the EAR that you gave does not contain web.war (it contains only web).




Hi ,

Thank Hi Thanks for the repy ....
I have specified the struture of my project which contains above specified modues ...
however i am including .pom fil of my ear , web , ejb , and main module ....

POM for the main project .... (account)


.pom for the web module


.pom for ejb module


.pom for the ear module


I am able to create ear file fith maven by mvn install

but wen i depoyed the created .ear file on JBOSS i get the JBOSS DeploymentException : Not able to find module file : .war in a .ear file

Please suggest what is wrong in above xmls
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Go back and read the last sentence of my prior post:

Peter wrote:Your application.xml file declares that there is a web.war file, but the listing of the contents of the EAR that you gave does not contain web.war (it contains only web).



Please post the contents or your EAR again, this time using the jar utility: jar -tf accountEar.ear

By the way, your XML listings are nearly impossible to read because they do not contain any indentation. The apps that read the files don't need the indentation but for humans proper indentation is essential.
 
shikhs gupta
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Peter Johnson wrote:Go back and read the last sentence of my prior post:

Peter wrote:Your application.xml file declares that there is a web.war file, but the listing of the contents of the EAR that you gave does not contain web.war (it contains only web).



Please post the contents or your EAR again, this time using the jar utility: jar -tf accountEar.ear

By the way, your XML listings are nearly impossible to read because they do not contain any indentation. The apps that read the files don't need the indentation but for humans proper indentation is essential.




Hi ,
Soory for the bad indentation ....

Please find the contents of as required

META-INF/
META-INF/MANIFEST.MF
META-INF/maven/
META-INF/maven/account/
META-INF/maven/account/accountEAR/
web.war/
web.war/META-INF/
web.war/META-INF/maven/
web.war/META-INF/maven/account/
web.war/META-INF/maven/account/web/
web.war/WEB-INF/
web.war/WEB-INF/classes/
web.war/WEB-INF/lib/
ejb.jar
META-INF/application.xml
META-INF/jboss-app.xml
META-INF/maven/account/accountEAR/pom.proper
META-INF/maven/account/accountEAR/pom.xml
web.war/form.jsp
web.war/index.jsp
web.war/META-INF/MANIFEST.MF
web.war/META-INF/maven/account/web/pom.prope
web.war/META-INF/maven/account/web/pom.xml
web.war/WEB-INF/jboss-web.xml
web.war/WEB-INF/lib/ejb-0.0.1-SNAPSHOT.jar
web.war/WEB-INF/web.xml
web.war/WebClient.jsp

Thanks in Advance
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Also post the full console log message for the error, including the whole exception stack trace.

Also, please quite using "quote" around your entire post - only use "quote" when quoting what others have written. And it is not necessary to quote my posts when replying - I can very easily read what I wrote earlier. You need to focus more on providing only the bare minimum of necessary information - providing too much irrelevant information will tend to make Ranchers skip your post because it is too difficult to separate the wheat from the chaff.
 
shikhs gupta
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Peter Johnson wrote:Also post the full console log message for the error, including the whole exception stack trace.

Also, please quite using "quote" around your entire post - only use "quote" when quoting what others have written. And it is not necessary to quote my posts when replying - I can very easily read what I wrote earlier. You need to focus more on providing only the bare minimum of necessary information - providing too much irrelevant information will tend to make Ranchers skip your post because it is too difficult to separate the wheat from the chaff.





Hi,

Please find the stack trace of JBOSS exception
 
Peter Johnson
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
OK, this makes no sense to me - I see the web.war in your listing of the EAR contents, but the deployer claims it cannot find it. I assume that you have an EAR file, and not an exploded directory, right? I wonder if the deployer cannot handle an exploded WAR within a packaged EAR. Try either also packaging web.war as a WAR file and placing it into the EAR, or deploy the EAR exploded.
 
reply
    Bookmark Topic Watch Topic
  • New Topic