Problem with NoClassDefFoundError

Help
2008-12-30
2013-01-13
  • Siva Krishna K
    Siva Krishna K
    2008-12-30

    Hello,

    I'm new to CEWOLF API.  Can some one please help me.

    I'm using Java 1.4, Weblogic 8.1, CEWolf 1.0 in my project.  I kept the required jars in class path.  Still I'm getting the following error message while accessing the JSP.

    java.lang.NoClassDefFoundError: org/jfree/ui/Drawable
        at java.lang.ClassLoader.defineClass0(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
        at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
        at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
        at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:282)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
        at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:224)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
        at java.lang.Class.getDeclaredFields0(Native Method)
        at java.lang.Class.privateGetDeclaredFields(Class.java:1522)
        at java.lang.Class.getDeclaredField(Class.java:1214)
        at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1474)
        at java.io.ObjectStreamClass.access$400(ObjectStreamClass.java:47)
        at java.io.ObjectStreamClass$3.run(ObjectStreamClass.java:335)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.io.ObjectStreamClass.(ObjectStreamClass.java:333)
        at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:253)
        at java.io.ObjectStreamClass.(ObjectStreamClass.java:329)
        at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:253)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1015)
        at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1337)
        at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1309)
        at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1252)
        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1057)
        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
        at java.rmi.MarshalledObject.(MarshalledObject.java:92)
        at de.laures.cewolf.taglib.util.KeyGenerator.generateKey(KeyGenerator.java:51)
        at de.laures.cewolf.storage.AbstractSessionStorage.getKey(AbstractSessionStorage.java:80)
        at de.laures.cewolf.storage.AbstractSessionStorage.contains(AbstractSessionStorage.java:75)
        at de.laures.cewolf.storage.AbstractSessionStorage.storeChartImage(AbstractSessionStorage.java:53)
        at de.laures.cewolf.taglib.tags.ChartImgTag.doStartTag(ChartImgTag.java:79)
        at jsp_servlet._secure.__charts._jspService(__charts.java:243)
        at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
        at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:463)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
        at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:322)
        at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
        at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:315)
        at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6718)
        at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
        at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
        at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
        at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
        at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
        at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

    Regards
    Siva Krishna. K.

     
    • Ulf Dittmer
      Ulf Dittmer
      2008-12-30

      Which jar files do you mean by "the required jars"? The missing class is part of the JCommon library; the file might be called something like "jcommon-1.0.14.jar".

       
    • Siva Krishna K
      Siva Krishna K
      2008-12-31

      Here are the jar files I found in cewolfexample-1.0.war and I kept them in classpath.

      cewolf-1.0.jar
      batik-awt-util-1.6.jar
      batik-dom-1.6.jar
      batik-svggen-1.6.jar
      batik-util-1.6.jar
      batik-xml-1.6.jar
      gnujaxp-1.0.0.jar
      jcommon-1.0.0.jar
      jfreechart-1.0.0.jar