Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Why the context path effect is disappeared after deploying WAR?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I put a website.WAR file in /webapps folder, and set the context of tomcat/conf/server.xml in the following way:

Therefore I can use http://ip/ to browse the web pages located in /webapps/website folder. When I want to re-deploy the WAR by a modified one, tomcat just deploy the new WAR file. Everything looks fine, but I cannot use http://ip/ to browse anymore. Instead, I have to type http://ip/website to browse the same page. The setting of context path seems to be inactive.

Does anyone know how I can keep the effect of context path after trying to re-deploy the website?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!