File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Exception: Http status 500" Watch "Exception: Http status 500" New topic

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)

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.

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

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?

Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1323

update your jdk with 5 to make it run.

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

Joined: Dec 06, 2005
Posts: 1323

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: ""
minor version: 0
major version: 49

to check the class version use this source.
I agree. Here's the link:
subject: Exception: Http status 500
It's not a secret anymore!