JBOSS DeploymentException : Not able to find module file : .war in a .ear file
shikhs gupta
Greenhorn
Joined: Feb 05, 2010
Posts: 4
posted
0
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 ....
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).
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
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
Joined: Feb 05, 2010
Posts: 4
posted
0
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.
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
Joined: Feb 05, 2010
Posts: 4
posted
0
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.
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.