aspose file tools*
The moose likes Ant, Maven and Other Build Tools and the fly likes Cannot understand Hotdeploy or exploded format (jboss:deploy-exploded-warfile vs cargo) goals Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Cannot understand Hotdeploy or exploded format (jboss:deploy-exploded-warfile vs cargo) goals" Watch "Cannot understand Hotdeploy or exploded format (jboss:deploy-exploded-warfile vs cargo) goals" New topic
Author

Cannot understand Hotdeploy or exploded format (jboss:deploy-exploded-warfile vs cargo) goals

Sander Evanfield
Greenhorn

Joined: Oct 15, 2004
Posts: 13
Hi,

We are using eclipse(ganymede)-maven2 with JBOSS 4.2. I come from an environment where they build the ear and deploy everytime code changes which is time consuming for development.
Now we need mechanism to deploy code when I make changes in my IDE without restarting the server. All our classes are currently behind WEB-INF in a war which sits inside an ear. If I make changes to jsp and java classes I should be able to see those changes with a page refresh on the browser without starting the server

1) Is this the same as hot-deploy and exploded format and can be accomplished ?
2) Can Maven help me here with Maven JBOSS plugin goal like jboss:deploy-exploded-warfile
Are there any pre-reqs or other things reqd for this to work correctly ?
3) Tommorrow if we have some classes in ejb-jars and third-party java-libs how does the above set-up change
or there are limitations like class-loading issues due to different class-loaders.
4) How is cargo plugin different from 2 the pros and cons ?

I;am hard pressed on time and would appreciate some thing that works correctly.

xxx
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Mr. Amit Kulkarni wrote:Now we need mechanism to deploy code when I make changes in my IDE without restarting the server. All our classes are currently behind WEB-INF in a war which sits inside an ear. If I make changes to jsp and java classes I should be able to see those changes with a page refresh on the browser without starting the server

1) Is this the same as hot-deploy and exploded format and can be accomplished?
2) Can Maven help me here with Maven JBOSS plugin goal like jboss:deploy-exploded-warfile
Are there any pre-reqs or other things reqd for this to work correctly ?
3) Tommorrow if we have some classes in ejb-jars and third-party java-libs how does the above set-up change
or there are limitations like class-loading issues due to different class-loaders.
4) How is cargo plugin different from 2 the pros and cons?

I am hard pressed on time and would appreciate some thing that works correctly.


In short:

1.) Effectively yes.
2.) Yes, you just need to configure the plugin correctly in your POM
3.) Class loading in Jboss can get 'interesting', I'd recommend reading their class loading section on their wiki in order to understand how class loading works when you have more than one application running on the server.
4.) Cargo is a more generic plugin, you may find it easier to use (or not).

Hope that helps!


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Cannot understand Hotdeploy or exploded format (jboss:deploy-exploded-warfile vs cargo) goals