aspose file tools*
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: 9329
    
110

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
 
Similar Threads
Can I place server variable in my application.xml file,to create one ear file for all environments?
Jboss class loader isolation problem with spring
HTTP 404 error using JBoss
Problem understanding application.xml
org.jboss.deployers.spi.DeploymentException: Exception determining structure: