aspose file tools*
The moose likes JBoss/WildFly and the fly likes JBOSS DeploymentException : Not able to find module file : .war in a .ear file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBOSS DeploymentException : Not able to find module file : .war in a .ear file " Watch "JBOSS DeploymentException : Not able to find module file : .war in a .ear file " New topic
Author

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

shikhs gupta
Greenhorn

Joined: Feb 05, 2010
Posts: 4
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 ......
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

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

JBoss In Action
shikhs gupta
Greenhorn

Joined: Feb 05, 2010
Posts: 4
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
Bartender

Joined: May 14, 2008
Posts: 5823
    
    7

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

Joined: May 14, 2008
Posts: 5823
    
    7

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

Joined: May 14, 2008
Posts: 5823
    
    7

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JBOSS DeploymentException : Not able to find module file : .war in a .ear file