Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Tony Evans
Ranch Hand
Posts: 598
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Tony Evans
Ranch Hand
Posts: 598
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10447
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 598
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 598
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry had a cut an paste error

for fundX



for fundy

 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you remove the default root application? It also uses the root context and would thus interfere with "fundX".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic