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

How to make JSP work  RSS feed

 
Jim Wang
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Every time after I install tomcat, no matter 3.2.1 or 4.0, when I go start my browser and go to http://localhost:8080/index.html, those examples of servlet work but JSP doesn't. The err which I get is:"
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)
...."
I follow every steps of the instruction from tomcat, I don't know what I'm missing. Could anyone tell me how to make JSP work?
Thanks.
Jim
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you have for the following system variables?

TOMCAT_HOME
CATALINA_HOME
JAVA_HOME
CLASSPATH
 
Jim Wang
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Mike:
My setting is:
JAVA_HOME=c:\JDK1.3
TOMCAT_HOME=C:\Tomcat\jakarta-tomcat-3.2.1
CATALINA_HOME=C:\Tomcat\jakarta-tomcat-4.0
CLASSPATH=
C:\WINNT\system32;
C:\WINNT;
C:\WINNT\System3\Wbem;c:\;c:\dell;
C:\WINNT\Java\Classes\RxAssistant.zip;
C:\jdk1.3\lib\tools.jar;
%TOMCAT_HOME%\lib\servlet.jar;
%TOMCAT_HOME%\lib\jasper.jar;
%CATALINA_HOME%bin\bootstrap.jar;
%TOMCAT_HOME%\bin\xalan.jar;
%TOMCAT_HOME%\bin\xerces.jar;
%TOMCAT_HOME%\classes;
%TOMCAT_HOME%\webapps\ROOT\WEB-INF\classes;
%CATALINA_HOME%\lib\jasper-runtime.jar;
%CATALINA_HOME%\lib\naming-factory.jar;
Jim
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!