• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

My JSP dont work on Apache Tomcat

 
Remo Burkhard
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try giving docBase="Your full path on hard disk"
instead of just star.
Let me know if it works
 
Remo Burkhard
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remo, I'm not very sure about that. You could probably lets us once you try it.
cya
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic