• 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

Why the context path effect is disappeared after deploying WAR?

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Beauty is in the eye of the tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic