aspose file tools*
The moose likes Struts and the fly likes Can't deploy war file outside of [tomcat]/webapps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Can Watch "Can New topic
Author

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

M Conlin
Greenhorn

Joined: Aug 01, 2005
Posts: 15
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

Joined: Dec 25, 2004
Posts: 74
yes you can do it by adding a context xml in conf/localhost and the docbase points to wherever your webapp is.


If Java had true garbage collection, most programs would delete themselves upon execution -- Robert Sewell
Pavan Tummala
Ranch Hand

Joined: Dec 25, 2004
Posts: 74
oops Iam sorry I read the post wrong..ignore the previous msg
M Conlin
Greenhorn

Joined: Aug 01, 2005
Posts: 15
I did get this working by altering the docBase attribute of the HOST tag inside the server.xml file.
 
 
subject: Can't deploy war file outside of [tomcat]/webapps