Meaningless Drivel is fun!*
The moose likes Tomcat and the fly likes Bad Version Number when deploying app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Bad Version Number when deploying app" Watch "Bad Version Number when deploying app" New topic
Author

Bad Version Number when deploying app

Henrique Ordine
Ranch Hand

Joined: Sep 03, 2004
Posts: 127
Dear ranchers:

When trying to deploy my application on tomcat 5.5 I get the following error:
SEVERE: Error configuring application listener of class br.gov.fazenda.ouvidoria.sisouvidor.listener.ApplicationListener
java.lang.UnsupportedClassVersionError: Bad version number in .class file

I was compiling my application using JDK 1.6 but I changed that to 1.5.0_11, which is the same as the one my tomcat server is using. I'm still getting the same error.
Could anyone tell me if there is anything else that causes this error?


J2EE Architect/Developer
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Originally posted by Henrique Ordine:

java.lang.UnsupportedClassVersionError: Bad version number in .class file


-------------------------------------------------------------------
i think you are using different jdk and jre version...
----------------------------------------------------------------------


one more question to you why you change your .class files from 1.6 to 1.5
-----------------------------------------
you can use jdk 1.6 to tomcat5.5
------------------------------------------

correct me ,if i am wrong
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Bad Version Number when deploying app
 
Similar Threads
Bad version number in .class file
Tomcat 5.5 JRE?
Getting error: Bad version number in .class file
do not understand compiling a servlet
Change Tomcat's JDK Version