aspose file tools
The moose likes Tomcat and the fly likes Viewing JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply 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: 14487
    
    7

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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Viewing JSP
 
Similar Threads
Tomcat 4 : How to deploy and run JSP and Servlets
tomcat context
Tomcat 5.0.27 Http status 404 Error
What is Tomcat virtual host, What is different from the Apache Tomcat?
Tomcat SSL problem