Meaningless Drivel is fun!
The moose likes Tomcat and the fly likes Viewing JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Viewing JSP" Watch "Viewing JSP" New topic

Viewing JSP

David Dilworth

Joined: Oct 15, 2002
Posts: 1
Using jakarta-tomcat-4.0.4 on window 2000. I have set up a new project with the following directory structure
I have edited the C:\project1\catalina\conf\server.xml file by changing <Host name="localhost" debug="0" appBase="c:\project1\webapps" unpackWARs="true"> and <Connector className="org.apache.catalina.connector.http.HttpConnector" port="80" minProcessors="5" maxProcessors="75" enableLookups="true" redirectPort="8443"
acceptCount="10" debug="0" connectionTimeout="60000"/>.
I have a simple hello.jsp file in the C:\project1\webapps directory. However, when I try to acces it using the url http://localhost/hello.jsp
I get status 404 error. Please help :>
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

You really shouldn't dump JSPs directly into the webapps directory. The idea is that each webapp should be a subdirectory in the webapps directory, though the exact location of a webapp may be set using the <Context> component of server.xml.
[ October 16, 2002: Message edited by: Tim Holloway ]

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: Viewing JSP
It's not a secret anymore!