Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

LinkageError while defining class

Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
Posts: 67620
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic