• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

LinkageError while defining class

 
anna pillutla
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • 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] com.ibm.ws.classloader.CompoundClassLoader@1d2fc485 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\CRDSSearchWeb\WebContent\WEB-INF\lib\jdom.jar;C:\IBM\wsappdev51\workspace\CRDSSearchWeb\WebContent\WEB-INF\lib\xerces.jar;C:\IBM\wsappdev51\workspace\CRDSSearchWeb\WebContent;
C:\IBM\wsappdev51\workspace\CRDSApi\bin;
C:\IBM\wsappdev51\workspace\CAPI\bin;C:\IBM\wsappdev51\workspace\CastJMSAPI\bin;
C:\IBM\wsappdev51\workspace\CdatabaseAPI\bin;C:\IBM\wsappdev51\workspace\JMSAPI\bin; Delegation Mode: PARENT_LAST [1] com.ibm.ws.classloader.ExtJarClassLoader@737477786 Local ClassPath: C:\Program Files\IBM\WebSphere Studio\Application Developer\v5.1\runtimes\base_v5\lib\app; Delegation Mode: PARENT_LAST [2] com.ibm.ws.classloader.ProtectionClassLoader@679849e [3] com.ibm.ws.bootstrap.ExtClassLoader@4fca8496 [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(ClassLoader.java(Compiled Code)) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code)) at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:407) at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java:357) at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java:271) at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code)) at com.ibm.ws.webcontainer.jsp.servlet.JasperLoader.loadClass(JasperLoader.java:153) at com.ibm.ws.webcontainer.jsp.servlet.JasperLoader.loadClass(JasperLoader.java:80) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java(Compiled Code)) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.load(JspServlet.java:152) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:290) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:321) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:675) at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:773) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174) at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116) at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283) at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42) at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:943) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:530) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:176) at com.ibm.ws.webcontainer.servlet.SimpleFileServlet.doGet(SimpleFileServlet.java:225) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174) at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313) at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116) at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283) at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42) at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40) at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:61) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:939) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:530) at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:176) at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:79) at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:201) at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71) at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182) at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334) at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56) at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:610) at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:435) at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593) --- 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?

Thanks,
Anna.
[ May 05, 2005: Message edited by: Bear Bibeault ]
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64959
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic