This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Unsupported Major minor Versioning Problem? 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 "Unsupported Major minor Versioning Problem?" Watch "Unsupported Major minor Versioning Problem?" New topic
Author

Unsupported Major minor Versioning Problem?

nagraj patel
Greenhorn

Joined: Feb 16, 2013
Posts: 18

I am facing problem related to listener in java when i try with web.xml without listener it working fine but with listener through exception like: Unsupported major.minor version 51.0 .

SEVERE: Exception sending context initialized event to listener instance of class com.s5.server.watch724.ApiKeyInitializer
java.lang.UnsupportedClassVersionError: com/s5/common/db/MessageInterface : Unsupported major.minor version 51.0 (unable to load class com.s5.common.db.MessageInterface)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2858)
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 com.s5.server.watch724.ApiKeyInitializer.contextInitialized(ApiKeyInitializer.java:44)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4206)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4705)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Feb 23, 2013 1:23:09 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41141
    
  45
Which Java version does the server use? It sounds like that clas (com/s5/common/db/MessageInterface) is compiled for Java 7 -that's what that "51.0" means-, and that you're using a lower version.


Ping & DNS - my free Android networking tools app
nagraj patel
Greenhorn

Joined: Feb 16, 2013
Posts: 18
@Ulf Dittmer:Yes i know this problem due to java compiler version so i changed the jdk 1.6 but still same problem ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41141
    
  45
Does that mean you have recompiled the com.s5.common.db.MessageInterface class for Java 6, or that you're now running Tomcat with Java 7?
nagraj patel
Greenhorn

Joined: Feb 16, 2013
Posts: 18
Thanks Sir @Ulf Dittmer:I resolved this problem . In Eclipse IDE compiler level is 1.7 while jdk level is 1.6 that create problem when I try to run .
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unsupported Major minor Versioning Problem?
 
Similar Threads
Error configuring application listener of class org.springframework.web.context.ContextLoaderListene
java.lang.ClassNotFoundException: org.apache.struts2.tiles.StrutsTilesListener
unable to start tomcat in eclipse.
Cannot bring up a html page using tomcat 6.0
Eclipse Europa, Unable to bind common-collection.jar to web project