dcsimg
Error Running JSP files in TOMCAT 3.2.1
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Saturday, March 24, 2001 01:10 AM

I have JDK2 running under Windows NT Workstation. I installed Tomcat 3.2.1 and tried /examples. All servlets are running properly. JSP's are not running. CLASSPATH has tools.jar. TOMCAT_HOME and JAVA_HOME are defined. Following is the error appearing in the command promt. 2000-09-12 02:01:47 - ContextManager: Adding context Ctx( /examples ) 2000-09-12 02:01:47 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2000-09-12 02:01:47 - ContextManager: Adding context Ctx( ) 2000-09-12 02:01:47 - ContextManager: Adding context Ctx( /test ) 2000-09-12 02:01:48 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2000-09-12 02:01:48 - Po   More>>

I have JDK2 running under Windows NT Workstation. I installed Tomcat 3.2.1 and tried /examples. All servlets are running properly. JSP's are not running.
CLASSPATH has tools.jar. TOMCAT_HOME and JAVA_HOME are defined.
Following is the error appearing in the command promt.

2000-09-12 02:01:47 - ContextManager: Adding context Ctx( /examples )
2000-09-12 02:01:47 - ContextManager: Adding context Ctx( /admin )
Starting tomcat. Check logs/tomcat.log for error messages
2000-09-12 02:01:47 - ContextManager: Adding context Ctx( )
2000-09-12 02:01:47 - ContextManager: Adding context Ctx( /test )
2000-09-12 02:01:48 - PoolTcpConnector: Starting HttpConnectionHandler on 8080
2000-09-12 02:01:48 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007
2000-09-12 02:22:06 - Ctx( ): IOException in: R( + /index.html + null) Connect
ion aborted by peer: socket write error
2000-09-12 02:22:06 - Ctx( ): IOException in: R( + /tomcat-power.gif + null) C
onnection aborted by peer: socket write error
2000-09-12 02:22:08 - Ctx( /examples ): IOException in: R( /examples + /jsp/inde
x.html + null) Connection aborted by peer: socket write error
2000-09-12 02:22:22 - Ctx( /examples ): Exception in: R( /examples + /jsp/num/nu
mguess.jsp + null) - javax.servlet.ServletException: sun/tools/javac/Main
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:399)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
04)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372
)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.
java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743
)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
:498)
at java.lang.Thread.run(Thread.java:484)
Root cause:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.ja
va:128)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:245)
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462)
at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:
146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessar
y(JspServlet.java:152)
at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspSer
vlet.java:164)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
18)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:4
04)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372
)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.
java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743
)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
:498)
at java.lang.Thread.run(Thread.java:484)

On browser Window I get ERROR 500...
Please help..

   <<Less
About | Sitemap | Contact