wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Unable to get a 'Congratulations Page' Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Unable to get a Watch "Unable to get a New topic
Author

Unable to get a 'Congratulations Page'

mythily prakash
Ranch Hand

Joined: Jan 27, 2006
Posts: 31
Hi,
I downloaded the TOMCAT 4 on my machine and i installed it in my machine with the help of Installation Instructions they provided.They asked to make the tomcat as the current dir and give the command like this "C:\jakarta-tomcat-4.1.31\bin\startup.bat".And on my browser "http://localhost:8080". IF i give so, then it will display a congratulations page. but i couldn't get this page instead i got some error messages on the page having something like...

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file

at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:248)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:315)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:328)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:427)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:142
............

and also while giving startup.bat it will give an error like ..
The system cannot find the file -Dsun.io.useCanonCaches=false. - in my command prompt.

pls guide me get get installed Tomcat in my machine.

Thanks,
Mythily.


Best Regards,<br />Mythily.S<br />9886530336
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

We have a forum devoted to Tomcat here. I'll move this question there for you.


[Jess in Action][AskingGoodQuestions]
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Why are you starting out with an outdated version?
Did you set all the required environment variables?
If so, did you test them to make sure they're correct?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Tauri Valor
Ranch Hand

Joined: Aug 03, 2005
Posts: 166
Make sure that in Environment variables, you have set CATALINA_HOME and TOMCAT_HOME variables to your tomcat home directory (eg; c:\tomcat4.1 ).

And also see that your servlet.jar is set in CLASSPATH variable .(C:\tomcat4.1\common\lib\servlet.jar


A Moment's insight is sometimes worth a Life's experience.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Unable to get a 'Congratulations Page'