wood burning stoves 2.0*
The moose likes Servlets and the fly likes error in console 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 » Java » Servlets
Bookmark "error in console" Watch "error in console" New topic

error in console

ganesan ayyanu

Joined: Oct 26, 2011
Posts: 3

this error shown in console how to solve this issue first i want to know why it is coming continiously...........................

java.lang.UnsupportedClassVersionError: Bad version number in .class file (unable to load class ser)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2822)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationServletAnnotations(WebAnnotationSet.java:108)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:58)
at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:297)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1078)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4611)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:799)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:779)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:601)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:675)
at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:601)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:502)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1383)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:306)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)
at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1385)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1649)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1658)
at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1638)
at java.lang.Thread.run(Unknown Source)
Saifuddin Merchant
Ranch Hand

Joined: Feb 08, 2009
Posts: 597

Google? java.lang.UnsupportedClassVersionError

Cheers - Sam.
Twisters - The new age Java Quiz || My Blog
Sunil Sunny
Ranch Hand

Joined: Oct 18, 2011
Posts: 41
this error usually occurs when a higher version of Java Compiler is used to generate the ".class file" than the JVM version which is used to execute that class file. So do not worry just download a "jdk1.7 full with Jre"(latest release) and compile your ".java file " again it will work .
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 12761
Alternate approach - you can compile with "target" option to generate a class file which will be accepted by the older JVM.

Sunil Sunny
Ranch Hand

Joined: Oct 18, 2011
Posts: 41
William Brogden wrote:Alternate approach - you can compile with "target" option to generate a class file which will be accepted by the older JVM.


yes, but that too is possible with higher vesion compiler.
subject: error in console
Similar Threads
Truncated Class Error
SEVERE: Error configuring application listener when deploying IDM WAR on Tomcat
Cannot bring up a html page using tomcat 6.0
error in console
Error when I deploy my Strut application on Tomcat