Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

How to make JSP work  RSS feed

 
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
 
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
 
I'm gonna teach you a lesson! Start by looking at this tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!