This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Deploy .ear File only in JBOSS Deploy Dir NOT in Exploded format Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Deploy .ear File only in JBOSS Deploy Dir NOT in Exploded format" Watch "Deploy .ear File only in JBOSS Deploy Dir NOT in Exploded format" New topic
Author

Deploy .ear File only in JBOSS Deploy Dir NOT in Exploded format

Soumya Saha
Ranch Hand

Joined: Apr 14, 2006
Posts: 64
Hi,

Does JBOSS support .ear file only. My project is in Eclipse and JBOSS-SEAM. Whenever I deploy on the server through the IDE it deploys the app in an EXPLODED format.
Does JBOSS support only .ear file like other Application Servers ?
Is there a way to deploy .ear file only ?

Any response is highlu appreciated.

Thanks
Soumya
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

You can deploy any application as an archive file or as an exploded directory. The only requirement is that, whether file or directory, it must contain the extension (that is, must end in .ear or .war or ...). The IDE is probably deploying as an exploded directory just because it then is easier to update individual files. But you can create an EAR file and copy that to the deploy directory (make sure you remove the exploded EAR directory first, though).
[ August 15, 2008: Message edited by: Peter Johnson ]

JBoss In Action
Soumya Saha
Ranch Hand

Joined: Apr 14, 2006
Posts: 64
Hi Peter,

Thanks for your reply. I had already figured that out and it works well also.

Thanks once again and JBOSS is great !

Soumya
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Deploy .ear File only in JBOSS Deploy Dir NOT in Exploded format
 
Similar Threads
Can you store persistence.xml in an ear file?
Deploying external exploded directory as an application
problem with classpath
Error during Migrating from Jboss4.0.5.GA to Jboss5.0.0.GA
JBoss 5 Exploded and Incremental Deploy