wood burning stoves*
The moose likes Tomcat and the fly likes Exception: Http status 500 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Exception: Http status 500" Watch "Exception: Http status 500" New topic
Author

Exception: Http status 500

shalaka wadekar
Ranch Hand

Joined: Mar 21, 2008
Posts: 37
Hi All,

I am using Apache Tomcat 5.5
I get the following error when I try to load the Tomcat homepage using http://localhost/
Default port is set to 80.

javax.servlet.ServletException: org/apache/jsp/index_jsp (Unsupported major.minor version 49.0)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:272)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

I was working on this same Tomcat setup a couple of months back... & it was working fine
Tomcat homepage was loading. I have not made any changes to the tomcat configuration since then. I had set some classpath for another application some time back but I removed that from the enviroment variables. Now in the classpath there are only things that Tomcat would need.
Am I missing something? Kindly help on this.


shalaka
SCJP
SCWCD
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179

What version of java does Tomcat run with??

"Unsupported major.minor version 49.0" means that some code is compiled with java 1.5, and Tomcat try to run it with a java version less then 1.5
[ August 03, 2008: Message edited by: Rene Larsen ]

Regards, Rene Larsen
Dropbox Invite
shalaka wadekar
Ranch Hand

Joined: Mar 21, 2008
Posts: 37
Hi,

Thanks for the response!
I guess I am aware of this cause. I am using jdk1.4. What do you suggest I should do now? It was working fine with the same version earlier. How come suddenly it started giving out this error?

Regards,
Shalaka
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

update your jdk with 5 to make it run.


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

or for the next it will be good if you do check the Java class file is compiled into which version.

for example you have "MyClass.class" then use this simple to know..

javap -verbose MyClass

The output.

SourceFile: "MyClass.java"
minor version: 0
major version: 49

to check the class version use this source.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception: Http status 500