wood burning stoves*
The moose likes JSP and the fly likes My JSP dont work on Apache Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "My JSP dont work on Apache Tomcat" Watch "My JSP dont work on Apache Tomcat" New topic
Author

My JSP dont work on Apache Tomcat

Remo Burkhard
Greenhorn

Joined: Feb 16, 2002
Posts: 12
Help I read all books but do not find out my problem!
I installed the Apache Tomcat 4 and trying to run the exercise at: http://www.stardeveloper.com/articles/060801-3.shtml
a) I put my index.jsp in c:\Tomcat4\webapps\star\index.jsp
b) In c:\tomcat4\conf\server.xml I updated unlike as said in the example as follows:
..
<Context path="/star" docBase="star" debug="1" reloadable="true"/>
</Context>
</Host>
</Engine>
</Service>
..
c) When I restart the server it never finds my index.jsp when I direct it to
http://localhost:8080/star/index.jsp
(the other examples on http://localhost:8080/examples/jsp/index.html run perfect)
What am I doing wrong?
Thank you Remo
Rex Rock
Ranch Hand

Joined: Jun 25, 2001
Posts: 82
Try giving docBase="Your full path on hard disk"
instead of just star.
Let me know if it works
Remo Burkhard
Greenhorn

Joined: Feb 16, 2002
Posts: 12
Great it worked. Thank you!! Do you know if this causes problems if I lateron upload the whole bunch on my Webserver, or should I use anyway the
directory structure with where I put all my jsp files into a special directory like ../star/jsp/ for my jsp files?
Thank you again and greatings from Zurich
Remo
Rex Rock
Ranch Hand

Joined: Jun 25, 2001
Posts: 82
Remo, I'm not very sure about that. You could probably lets us once you try it.
cya
 
 
subject: My JSP dont work on Apache Tomcat
 
Similar Threads
HELP !! My First Servlet can't work with Tomcat
IIS and TOMCAT
Can't inlculde files from a parent directory in new tomcat
Servlet Context Virtual Sandbox
web.xml configuration question