• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

My JSP dont work on Apache Tomcat

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Remo, I'm not very sure about that. You could probably lets us once you try it.
cya
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic