File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JBoss/WildFly and the fly likes Deployment wars inside ear Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Deployment wars inside ear" Watch "Deployment wars inside ear" New topic

Deployment wars inside ear

Andrey Chu

Joined: Jun 08, 2010
Posts: 2

I have project composed by different war and jar modules
My current directory structure:
--XXX.ear (directory, not file)

For example i want to update my second war file W2.war. If i am changing only this file in XXX.ear directory, nothing happens. If i change entire XXX.ear folder, jboss starting redeploying all war files(W1, W2, W3).
But, there are many wars in my ear directory. I want to force jboss update only and only WARs, i changed, not every WAR in the ear.
Can anyone help me configuring jboss deployer to wathc into ear directory and update changed war files, and hold unchanged.
Jaikiran Pai

Joined: Jul 20, 2005
Posts: 10441


Welcome to JavaRanch

Which version of JBoss AS are you using? Starting AS-5, any changes to inner deployments (like war1.war) will trigger the redeployment of the entire application (all the .wars in the .ear). From what I remember, in earlier AS version, changing the inner deployment would only trigger redeployment of that inner deployment. By the way, how are you trying to trigger the redeployment of the .wars?

[My Blog] [JavaRanch Journal]
Andrey Chu

Joined: Jun 08, 2010
Posts: 2
Hello, Jaikiran
I have 5.1.0.GA (build: SVNTag=JBoss_5_1_0_GA date=200905221634)

If i am replacing war file inside ear folder, redeployment do not start..
I am replacing war files using cp command.
I agree. Here's the link:
subject: Deployment wars inside ear
It's not a secret anymore!