Meaningless Drivel is fun!*
The moose likes Servlets and the fly likes New To JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "New To JSP" Watch "New To JSP" New topic
Author

New To JSP

Bal Sharma
Ranch Hand

Joined: Sep 19, 2001
Posts: 273
Hello Everybody:
I am using tomcat 4. Among the JSP sample example only Number guess is working. I tried to run rest of the sample examples but I got following errors. What is going on? I am new to JSP and Servlet. Please tell me how to fix it?
A Servlet Exception Has Occurred
org.apache.jasper.JasperException: Unable to compile class for JSP if (pageContext != null) pageContext.handlePageException(t);
^
1 error
at org.apache.jasper.compiler.Compiler.compile(Unknown Source)
at org.apache.jasper.servlet.JspServlet.loadJSP(Unknown Source)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Unknown Source)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Unknown Source)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown Source)
at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown Source)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.valves.AccessLogValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardEngineValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.connector.http.HttpProcessor.process(Unknown Source)
at org.apache.catalina.connector.http.HttpProcessor.run(Unknown Source)
at java.lang.Thread.run(Thread.java:484)

ernest fakudze
Ranch Hand

Joined: Aug 27, 2001
Posts: 216
i got the same problem too when I installed Tomcat 4. All along I have been using Tomcat 3.23 and I have had to stick to it because it works. Apparently there is something that we don't know about Tomcat 4 and maybe the experts will tell us why this error comes up one day. By the way I also posted the same question about Tomcat 4 about 2 weeks ago and nobody answered me. So my advise is that you should isntall Tomcat 3.23 and it works real good.


In a time of drastic change it is the learners who inherit the future. The learned usually find themselves equipped to live in a world that no longer exists.<br />Eric Hoffer
Bal Sharma
Ranch Hand

Joined: Sep 19, 2001
Posts: 273
Originally posted by ernest fakudze:
So my advise is that you should isntall Tomcat 3.23 and it works real good.

Thank you very much for advise. I will reinstall Tomcat 3.23 BK
 
 
subject: New To JSP
 
Similar Threads
struts-example.war
Can not compile the jsp file
Beginner's, servlet problem
Why Is Tomcat 4 Doing This?
java.lang.verifyError;Illegal target of jump or branch