Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can't deploy war file outside of [tomcat]/webapps

 
M Conlin
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to deploy a war file outside of the [tomcat]/webapps directory.

How can I get tomact to recognize AND unpack a war file in a location other then the default webapps directory?

I have tried the following;
altering server.xml -
added context pointing directly to .war in other directory.

adding context.xml entry to my war -
added context.xml to META-INF of my war file, indicating that the docBase should be in outside directory.

Neither of these created the desired result.

Any suggestions?
 
Pavan Tummala
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes you can do it by adding a context xml in conf/localhost and the docbase points to wherever your webapp is.
 
Pavan Tummala
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oops Iam sorry I read the post wrong..ignore the previous msg
 
M Conlin
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I did get this working by altering the docBase attribute of the HOST tag inside the server.xml file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic