Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP Error... Help needed..  RSS feed

 
Nasser Aboobaker
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
mmmmm this looks neat. A new thread just dedicated to JSP. I hope my issue will get noticed here and I get an answer for my PROBLEM.
I am just copying my problem here from JSP/SERVLET page.
Hi friends,
I have installed Tomcat 4.0 and tried to run the example JSP and the following error had happened. Can some one help me to rectify it. Thanks in advance.
Nasser
A Servlet Exception Has Occurred
Exception Report:
javax.servlet.ServletException: sun/tools/javac/Main
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2366)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1005)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1098)
at java.lang.Thread.run(Thread.java:539)
Root Cause:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:128)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:271)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:543)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:176)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:188)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:1264)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2366)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1005)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1098)
at java.lang.Thread.run(Thread.java:539)

IP: Logged

Pranit Saha
ranch hand posted October 21, 2001 02:56 AM
--------------------------------------------------------------------------------
Do u have the JAVA_HOME and TOMCAT_HOME properly installed..
just check it.. u can post the .bat file here too.. it'll be easier to identify
Pranit.
IP: Logged

joshi jayram
greenhorn posted October 21, 2001 06:30 AM
--------------------------------------------------------------------------------
just one correction to what pranit said
You need to set CATALINA_HOME environment variable in tomcat4.0.It should point to your tomcat installation directory

------------------
What if this is as good as it gets ?
IP: Logged

Nasser Aboobaker
greenhorn posted October 21, 2001 10:14 AM
--------------------------------------------------------------------------------
Hi Pranit, Joshi,
I am working on WINNT 4.0, and my Environment settings are as follows,
JAVA_HOME = E:\JAVA
PATH = e:\j2sdkee1.3\bin; E:\JAVA\BIN; c:\com
classpath = %classpath%;c:\xml4j\xml4j\xml4j.jar;
c:\xml4j\xml4j\xml4jSamples.jar
TOMCAT_HOME = E:\Apache\Apache Tomcat 4.0\bin
How do I set my Catalina_home ???.
I hope I would be able to run it soon..
Thanks a lot for your time,
Nasser
IP: Logged

Pranit Saha
ranch hand posted October 21, 2001 11:03 PM
--------------------------------------------------------------------------------
set JAVA_HOME=E:\JDK1.2.1 OR 1.3, Whatever u r having..
set TOMCAT_HOME=E:\APACHE\APACHE TOMCAT 4.0
quote:
--------------------------------------------------------------------------------
Originally posted by Nasser Aboobaker:
Hi Pranit, Joshi,
I am working on WINNT 4.0, and my Environment settings are as follows,
JAVA_HOME = E:\JAVA
PATH = e:\j2sdkee1.3\bin; E:\JAVA\BIN; c:\com
classpath = %classpath%;c:\xml4j\xml4j\xml4j.jar;
c:\xml4j\xml4j\xml4jSamples.jar
TOMCAT_HOME = E:\Apache\Apache Tomcat 4.0\bin
How do I set my Catalina_home ???.
I hope I would be able to run it soon..
Thanks a lot for your time,
Nasser

--------------------------------------------------------------------------------

IP: Logged

Nasser Aboobaker
greenhorn posted October 22, 2001 10:52 PM
--------------------------------------------------------------------------------
Dear Pranit,
My JAVA_HOME = e:\jdk1.4
TOMCAT_HOME = E:\Apache\Apache Tomcat 4.0
But the problem still exists.. JSP pages throws error.
Nasser



[This message has been edited by Nasser Aboobaker (edited October 23, 2001).]
 
Nasser Aboobaker
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,
Thanks for whatever help rendered.. well I found the problem and corrected it.. tools.jar was not loading.. pasted a copy of it in tomcat_home\lib and working fine..
Nasser
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!