This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes Problem deploying two war files to one instance of jboss-5.1.0.GA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Problem deploying two war files to one instance of jboss-5.1.0.GA" Watch "Problem deploying two war files to one instance of jboss-5.1.0.GA" New topic
Author

Problem deploying two war files to one instance of jboss-5.1.0.GA

Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 573
I am trying to deploy to war files to one instance of jboss-5.1.0.GA. It returns the following error

Deployment "vfsfile:/C:/appservers/jboss-5.1.0.GA/server/xfunds/deploy/xfunds.war/" is in error due to the following reason(s): java.lang.IllegalStateException: jboss.web.deployment:war=/ is already installed.


xFunds.war deploys ok, its when i had yFunds.war that I get the above problem.

full stack trace



Is there any documentation that covers multiple war deployements, google just reveals this error but no solution

Thanksfor any hep

Tony
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9924
    
158

Are you trying to deploy the .war at root context? Do you have jboss-web.xml? What does it look like? JBoss AS by default ships with ROOT.war which deploys at root context, so you will have to do additional changes if you want to deploy your application at root context.

[My Blog] [JavaRanch Journal]
Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 573
Hi,

I have removed ROOT.war an deployed xFund.war at root level xfund works ok. No problems.

C:\appservers\jboss-5.1.0.GA\server\funds\deploy\xfund.war

C:\appservers\jboss-5.1.0.GA\server\funds\deploy\xfunds.war\WEB-INF




But I am trying to add another war file
C:\appservers\jboss-5.1.0.GA\server\funds\deploy\yfund.war

C:\appservers\jboss-5.1.0.GA\server\funds\deploy\yfunds.war\WEB-INF



Thanks for replying
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9924
    
158

You can't deploy both xfunds and yfunds at the same (root) context. Each application should have a separate context. So you will have to change the context-root of either of those applications to something else.
Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 573
The fix (I think) Since i have more deployment errors is:


C:\appservers\jboss-5.1.0.GA\server\funds\deploy\xfund.war

C:\appservers\jboss-5.1.0.GA\server\funds\deploy\xfunds.war\WEB-INF





C:\appservers\jboss-5.1.0.GA\server\funds\deploy\yfund.war

C:\appservers\jboss-5.1.0.GA\server\funds\deploy\yfunds.war\WEB-INF



so xfunds is at the root, an yfunds is root/yfunds



Tony Evans
Ranch Hand

Joined: Jun 29, 2002
Posts: 573
sorry had a cut an paste error

for fundX



for fundy

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Did you remove the default root application? It also uses the root context and would thus interfere with "fundX".


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem deploying two war files to one instance of jboss-5.1.0.GA
 
Similar Threads
Error starting up my jboss
Failed to create a new SAX parser
Class Loading Configuration
Error creating bean with name 'datasource': Invocation of init method failed; comp not bound
NameNotFoundException with topic name not bound message