This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Unable to Deploy EAR  file in JBoss 4.2.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Unable to Deploy EAR  file in JBoss 4.2.1" Watch "Unable to Deploy EAR  file in JBoss 4.2.1" New topic
Author

Unable to Deploy EAR file in JBoss 4.2.1

Abhijith Prabhakar
Ranch Hand

Joined: Dec 29, 2006
Posts: 56
I am deploying an .ear to JBoss 4.2.1GA. The .ear contains an exploded .war and 2 .jar with EJBs. The exploded .ear deploys OK. However, when I deploy the zipped (i.e. unexploded) .ear I get the following exception:
org.jboss.deployment.DeploymentException: Failed to find module file: AnADD-WebModule.war

When I unzip the .ear, it deploys again fine.

My application.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee<br /> <a href="http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"" target="_blank" rel="nofollow">http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"</a> version="1.4">
<display-name>AnADD</display-name>
<module>
<web>
<web-uri>AnADD-WebModule.war</web-uri>
<context-root>/AnADD-WebModule</context-root>
</web>
</module>
<module>
<java>anaddEjb.jar</java>
</module>
<module>
<java>supportEjb.jar</java>
</module>
</application>

Does anybody know how to solve this please??
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10141
    
165

When you have the zipped version of the ear, run the following command from the command prompt and post the output here:
First 'cd' to the deploy folder from the command prompt and run this command



Note: Replace myApp.ear with the appropriate ear name, in the command

Also, while posting the output here, remember to wrap the contents in a 'code' block by using the Code button in the message editor window.
[ December 31, 2007: Message edited by: Jaikiran Pai ]

[My Blog] [JavaRanch Journal]
Abhijith Prabhakar
Ranch Hand

Joined: Dec 29, 2006
Posts: 56
Hi,

I have given the output here
Abhijith Prabhakar
Ranch Hand

Joined: Dec 29, 2006
Posts: 56
Hi all,

I just found out that, if I deploy exploded WAR the application deploys fine. Ant script for this is given below

But, If I build a normal EAR using <ear> target, then it doesn't deploy and gives the above said reason. Ant Script for this is given below


Any specific reason for this??
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to Deploy EAR file in JBoss 4.2.1