• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I did get this working by altering the docBase attribute of the HOST tag inside the server.xml file.
reply
    Bookmark Topic Watch Topic
  • New Topic