This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes Java in General and the fly likes LinkageError while defining class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "LinkageError while defining class" Watch "LinkageError while defining class" New topic

LinkageError while defining class

anna pillutla
Ranch Hand

Joined: Aug 27, 2004
Posts: 32
Hi All,

I have a jsp in which I am calling a taglib to load my page. I get the following error msg in my browser:

Error 500: LinkageError while defining class: com.crdsapi.tags.LoginHandler Could not be defined due to: com/crdsapi/tags/LoginHandler (Unsupported major.minor version 48.0) This is often caused by having a class defined at multiple locations within the classloader hierarchy. Other potential causes include compiling against an older or newer version of the class that has an incompatible method signature. Dumping the current context classloader hierarchy: ==> indicates defining classloader ==>[0] Local ClassPath: C:\IBM\wsappdev51\workspace\CRDSSearchWeb\WebContent\WEB-INF\classes;C:\IBM\wsappdev51\workspace\CRDSSearchWeb\WebContent\WEB-INF\lib\ISRAUtility.jar;C:\IBM\wsappdev51\workspace\CRDSSearchWeb\WebContent\WEB-INF\lib\isrataghandlers.jar;
C:\IBM\wsappdev51\workspace\CdatabaseAPI\bin;C:\IBM\wsappdev51\workspace\JMSAPI\bin; Delegation Mode: PARENT_LAST [1] Local ClassPath: C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5\lib\app; Delegation Mode: PARENT_LAST [2] [3] [4] sun.misc.Launcher$AppClassLoader@4c3d8496 [5] sun.misc.Launcher$ExtClassLoader@4c38c496 ---Original exception--- java.lang.UnsupportedClassVersionError: com/conseco/crdsapi/tags/LoginHandler (Unsupported major.minor version 48.0) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass( Code)) at Code)) at at at at java.lang.ClassLoader.loadClass( Code)) at at at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance( Code)) at$JspServletWrapper.load( at$JspServletWrapper.loadIfNecessary( at$JspServletWrapper.service( at at at javax.servlet.http.HttpServlet.service( at at at at at at at at at at at at javax.servlet.http.HttpServlet.service( at javax.servlet.http.HttpServlet.service( at at at at at at at at at at at at at at at at at at at at$ --- end Original exception----

And I see the following error at console:

java.lang.UnsupportedClassVersionError: com/conseco/crdsapi/tags/LoginHandler (Unsupported major.minor version 48.

Any inputs on what coule be causing this?

[ May 05, 2005: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 62142

Looks like you have problems with your classes. Perhaps you are compiling against a different version of a class library (or libraries) than you are using at run-time?

In any case, this is pretty much independent of JSP, so I've moved this to the Java in General(intermediate) forum where those more savvy about these types of issues may see this.

I also changed the topic title to call attention to the specific error that you are getting.
[ May 05, 2005: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
subject: LinkageError while defining class