Win a copy of Programming with Types this week in the Angular and TypeScript forum
or The Design of Web APIs in the Web Services forum!
  • 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
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Joe Ess
  • salvin francis

JSP 404 error with web.xml

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An having issues with Tomcat running my JSP pages.

I have my app running in a directory outside of Tomcat and have the appropriate context fragment set up to locate my application. If I don't place a web.xml file in the WEB-INF directory of my application directory my JSP's work just fine. If I do place a web.xml file in that directory Tomcat gives me a 404 error when I attempt to access a JSP.

I'm using the default web.xml file that came with Tomcat. Any ideas?

I would have thought that if I'd have problems like this it would be the other way around.

Thanks
Dave
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do you use seperate contexts or run everything from the root context
 
Dave Berkheimer
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a seperate context set up in an xml fragment under the CATALINA\LocalHost\ directory.

The name of the xml file is "nn3apps.xml".

The context in the fragment file is:

<Context path="/nn3apps" docBase="c:nn3apps" debug="0" reloadable="true"/>

Like I said, the jsp's work as long as the web.xml file does not exist in the WEB-INF directory of my application ("c:\nn3apps\WEB-INF").

Thanks
Dave B
 
Did Steve tell you that? Fuh - Steve. Just look at this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!