2

I installed tomcat 6 and want to add my web app to launch the URL. I followed How to set the context path of a web application in Tomcat 7.0

I created root.xml in /conf/Catalina/localhost/ path. And in root.xml file I have this

<Context path="/root" docBase="/scratch/rsarda/view_storage/web/appv2"/>

When I launch the url localhost:8080/root I got "HTTP Status 404" error. Also I don't see any error in /logs.

Please let me know what I am missing.

Thanks!

Community
  • 1
  • 1
prathima
  • 137
  • 1
  • 4
  • 9

1 Answers1

1

You should not have a "path" attribute in your <Context> element: Tomcat will use the name of the .xml file as the context path. Depending on other configuration, you may have to restart Tomcat in order to have it detect your changes.

Christopher Schultz
  • 20,221
  • 9
  • 60
  • 77