This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jsp Error 500

 
SonalPSPL Bagmar
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ramaswamy Srinivasan
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sonal,

Can you post your code?

That might be helpful.

Cheers,
Swamy
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic