Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP pages is not working with tomcate  RSS feed

 
ayman elgharabawy
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
servlets is working fine with tomcate but
when i use jsp pages in examples directory of tomcate
there is an error.. 500 error
class notdefFound javac main tools.
can anybody help me pls. i'm still beginner in jsp.
thanks
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure javac is on Tomcat's System Path (not Classpath). It needs to compile the JSP pages and therefore must be able to find the compiler (javac in this case). Once to add the appropriate path entry and things should work fine.
 
hemanth kumar
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi there,
Even i had the same problem , the reasons r many to name a few r claspath setting ,wher u have stored the files , if u have two versions of servlet.jar, registry error.
Wat i did was i formatted n made a fresh installation n they r workin now , why dont u tyr tht .
bye take care
send me the reply wat happened
 
Rick Hightower
Author
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is going to sound strange...
Look for tools.jar in your JDK directory.
Make sure it is on the classpath for Tomcat or drop it in the extention directory.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!