Menu

NocClassDefFoundError

Help
2005-11-07
2013-01-24
  • siva papineni

    siva papineni - 2005-11-07

    Hi,
    I'm using WSAD 5.1.1 and tried using MessAdmin .The first page that displays all sessions working fine, but the page that displays session details has given a org/eclipse/core/resources/IWorkspaceRoot]: java.lang.NoClassDefFoundError: org/eclipse/core/resources/IWorkspaceRoot error

    Even after miving the eclipse-resources.jar that contains the above class didn't help in anyway resulting in the same NocClassdefFound error.

    Thanks

     
    • Cédrik

      Cédrik - 2005-11-09

      I'm surprised, as I didn't use any eclipse class at all in this project!
      Can you post or send me by email a full stacktrace? It should help solving your problem.

      Now... would <http://www.javaworld.com/javaforums/showflat.php?Cat=&Board=958763&Number=15235&page=0&view=collapsed&sb=5&o=> be related to your problem? I sounds very similar to me (the session detail page computes object sizes). Could you try to test your application outside WSAD (i.e. directly in WebSphere)?

       
    • Cédrik

      Cédrik - 2005-11-09

      In any case, I'll include a workaround in the next version of MessAdmin. In case you want it *now*, add to clime.messadmin.utils.ObjectProfiler, line 81:
              } catch (Exception e) {
                  // BUG: throws "java.lang.NoClassDefFoundError: org.eclipse.core.resources.IWorkspaceRoot" when run in WSAD 5?
                  // see http://www.javaworld.com/javaforums/showflat.php?Cat=&Board=958763&Number=15235&page=0&view=collapsed&sb=5&o=
                  return -1;

       
    • siva papineni

      siva papineni - 2005-11-09

      StackTrace

      [11/9/05 9:52:33:295 EST] 6f64b626 WebGroup      I SRVE0180I: [Web] [/Web] [Servlet.LOG]: /MessAdmin/sessionDetail.jsp: init

      [11/9/05 9:52:52:773 EST] 6f64b626 WebGroup      E SRVE0026E: [Servlet Error]-[org/eclipse/core/resources/IWorkspaceRoot]: java.lang.NoClassDefFoundError: org/eclipse/core/resources/IWorkspaceRoot
          at java.lang.Class.getFields0(Native Method)
          at java.lang.Class.getDeclaredFields(Class.java:1038)
          at clime.messadmin.utils.ObjectProfiler$ClassAccessPrivilegedAction.run(ObjectProfiler.java:143)
          at java.security.AccessController.doPrivileged(Native Method)
          at clime.messadmin.utils.ObjectProfiler.getClassMetadata(ObjectProfiler.java(Compiled Code))
          at clime.messadmin.utils.ObjectProfiler.getClassMetadata(ObjectProfiler.java(Compiled Code))
          at clime.messadmin.utils.ObjectProfiler.computeSizeof(ObjectProfiler.java(Compiled Code))
          at clime.messadmin.utils.ObjectProfiler.sizeof(ObjectProfiler.java:78)
          at clime.messadmin.taglib.SizeofTag.doEndTag(SizeofTag.java:25)
          at org.apache.jsp._sessionDetail._jspService(_sessionDetail.java:507)
          at com.ibm.ws.webcontainer.jsp.runtime.HttpJspBase.service(HttpJspBase.java:89)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
          at com.ibm.ws.webcontainer.jsp.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:364)
          at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.serviceJspFile(JspServlet.java:700)
          at com.ibm.ws.webcontainer.jsp.servlet.JspServlet.service(JspServlet.java:798)
          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:1025)
          at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:566)
          at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.include(WebAppRequestDispatcher.java:251)
          at clime.messadmin.AdminMessageInjectorServlet.displaySessionDetailPage(AdminMessageInjectorServlet.java:193)
          at clime.messadmin.AdminMessageInjectorServlet.process(AdminMessageInjectorServlet.java:99)
          at clime.messadmin.AdminMessageInjectorServlet.doGet(AdminMessageInjectorServlet.java:66)
          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:76)
          at clime.messadmin.core.MessAdminFilter.doFilter(MessAdminFilter.java:149)
          at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:132)
          at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:71)
          at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:1021)
          at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:566)
          at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:198)
          at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:80)
          at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:214)
          at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
          at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
          at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
          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:615)
          at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:449)
          at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)

       
      • Cédrik

        Cédrik - 2005-11-09

        This looks like it. I'll try to find the time this WE to backport the fix from current dev version to 2.0 branch, and post it to sf.net.
        Thanks for reporting this bug!

         
    • siva papineni

      siva papineni - 2005-11-16

      Thanks for the updated version to fix the bug. But, unfortunatley it didn't help and getting the same exception still on WSAD 5.1.1

      I didn't get a chance to test on WAS though.
      Thanks

       
      • Cédrik

        Cédrik - 2005-11-17

        What was I thinking? I caught an Exception when you were throwing an Error at me... stupid me! :-/ Version 2.0.2 (to be released tonight) will fix that for good.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.