aspose file tools*
The moose likes JSP and the fly likes Jsp Error 500 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Jsp Error 500" Watch "Jsp Error 500" New topic
Author

Jsp Error 500

SonalPSPL Bagmar
Greenhorn

Joined: Jul 29, 2004
Posts: 22
this is the complete error ...

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to compile class for JSP

Generated servlet error:
C:\Program Files\Apache Software Foundation\Tomcat 5.0\work\Catalina\localhost\appraisal\org\apache\jsp\jsp\Login_jsp.java:8: cannot access java.lang.Object


Generated servlet error:
bad class file: C:\Program Files\Java\jre1.5.0\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.
implements org.apache.jasper.runtime.JspSourceDependent {
^
1 error



org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:332)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:412)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
Apache Tomcat/5.0.28
Anandh Ramesh
Ranch Hand

Joined: Dec 15, 2004
Posts: 61
hi,

i would advise you to post the error in your previous post itself... it is not nice to keep navigating from one post to another. you must maintain all info regarding a single question in a single conversation. this is not only to avoid duplication, but also to avoid misinterpretation by readers. people who read only your second posting cannot make head or tail of it, as you can understand. this may not lead you to an effective solution as well. please try to restrain all details of one particular query to one single post.

cheers,
Anandh


cheers,<br />Anandh
Ramaswamy Srinivasan
Ranch Hand

Joined: Aug 31, 2004
Posts: 295
Hi Sonal,

Can you post your code?

That might be helpful.

Cheers,
Swamy
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Generated servlet error:
bad class file: C:\Program Files\Java\jre1.5.0\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.
implements org.apache.jasper.runtime.JspSourceDependent {


This usually is the result of someone overwriting the libraries that ship with Tomcat. Did you bring over any of the jar files from a previous version of Tomcat?

Did you put rt.jar in the lib directory of your java installation?


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Generated servlet error:
bad class file: C:\Program Files\Java\jre1.5.0\lib\rt.jar(java/lang/Object.class)


You do have a full jdk installed, right?
Tomcat 5.0 and lower require a full jdk.
If you used the Windows installer it may have picked up the wrong java installation. If you installed by unzipping Tomcat and are using the bat scripts to start it, make sure your JAVA_HOME environment variable is pointing to a full JDK
[ December 29, 2004: Message edited by: Ben Souther ]
Rashid Darvesh
Ranch Hand

Joined: Feb 13, 2004
Posts: 189
Hi
i too have the same problem. previoulsy i had the following environmetn
i was running
weblogic 8.1 and my jdk was version 1.4 ant tomcat4.1 i had no issues. the trouble started when i upgraded my jdk to 5.0 and my tomcat to 5.4
i tried allt he possible things listed in this topic trial still no luck, is it becoz the weblogic is using jdk1.4 and the java_home is set to 5.0, is this causing the problem.
Any suggestions...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jsp Error 500