aspose file tools*
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
Author

Viewing JSP

David Dilworth
Greenhorn

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
c:\project1
C:\project1\catalina
C:\project1\catalina\conf
C:\project1\catalina\logs
C:\project1\catalina\work
C:\project1\lib
C:\project1\webapps
C:\project1\webapps\WEB-INF
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: 16065
    
  21

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 ]

Customer surveys are for companies who didn't pay proper attention to begin with.
 
 
subject: Viewing JSP