Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

I got the following error while running my very simple JSP on
Tomcat 4.1. server

peri

2007-12-01

Replies:


Hello,
I'm trying to run my very simple JPS on tomcat 4.1 sever. I also use struts
1.1. framework (I know it is very old) Also I'm using JDK 1.6.03 and eclipse
3.3 ide.
My problem is when I try to run my very simple JSP on tomcat I got following
error.I cannot find out the reason of this error. Can anyone help me to
solve this error?
Thank you very much.

the JPS's code :

<%@(protected)" %>
<%@(protected)" %>
<html>
 <body>
Hello World !!!!
 </body>
</html>

And the error.

C:\Program Files\Apache Software Foundation\Tomcat
4.1\work\Standalone\localhost\Login\login_jsp.java:8: cannot access
java.lang.Object
bad class file: C:\Program
Files\Java\jre1.6.0_03\lib\rt.jar(java/lang/Object.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the
classpath.
public class login_jsp extends HttpJspBase {
    ^
1 error


 at
org.apache.jasper.compiler.DefaultErrorHandler.javacError (DefaultErrorHandler.java:85)
 at
org.apache.jasper.compiler.ErrorDispatcher.javacError (ErrorDispatcher.java:248)
 at org.apache.jasper.compiler.Compiler.generateClass (Compiler.java:343)
 at org.apache.jasper.compiler.Compiler.compile (Compiler.java:356)
 at
org.apache.jasper.JspCompilationContext.compile (JspCompilationContext.java:427)
 at
org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:142)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:240)
 at org.apache.jasper.servlet.JspServlet.service (JspServlet.java:187)
 at javax.servlet.http.HttpServlet.service (HttpServlet.java:810)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (ApplicationFilterChain.java:199)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter (ApplicationFilterChain.java:145)
 at
org.apache.catalina.core.StandardWrapperValve.invoke (StandardWrapperValve.java:210)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
 at
org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:433)
 at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:955)
 at
org.apache.catalina.core.StandardContextValve.invoke (StandardContextValve.java:139)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
 at
org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:433)
 at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:955)
 at
org.apache.catalina.core.StandardContext.invoke (StandardContext.java:2460)
 at
org.apache.catalina.core.StandardHostValve.invoke (StandardHostValve.java:133)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:119)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
 at
org.apache.catalina.valves.ErrorReportValve.invoke (ErrorReportValve.java:117)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:594)
 at
org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:433)
 at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:955)
 at
org.apache.catalina.core.StandardEngineValve.invoke (StandardEngineValve.java:127)
 at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:596)
 at
org.apache.catalina.core.StandardPipeline.invoke (StandardPipeline.java:433)
 at org.apache.catalina.core.ContainerBase.invoke (ContainerBase.java:955)
 at org.apache.coyote.tomcat4.CoyoteAdapter.service (CoyoteAdapter.java:157)
 at
org.apache.coyote.http11.Http11Processor.process (Http11Processor.java:874)
 at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
 at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket (PoolTcpEndpoint.java:528)
 at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt (LeaderFollowerWorkerThread.java:81)
 at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
 at java.lang.Thread.run(Unknown Source)
--
Sent from the Tomcat - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.