Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Viewing JSP

 
David Dilworth
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 18304
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic