java.lang.ClassNotFoundException: org.compiere.util.CLogConsole

compiere | *anonymous | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Exception: client startup on Windows

    compiere | 1 decade ago | *anonymous
    java.lang.ClassNotFoundException: org.compiere.util.CLogConsole
  2. 0

    Heritrix-as-a-war-file is broken since commit of SinkHandler. Fix. See note below from list. Quoting bmadaras9 <madaras@ebrinc.com>: > > > > > I am trying to drop Heritrix into Tomcat 5.0.28 to test it out and so I can > run a remote debug on it to see exactly what is going on as the JSP interacts > with heritrix. This mail describes the issue: http://www.mail-archive.com/ tomcat- user@jakarta.apache.org/msg103306.html (The wrong classpath context is in place when the lookup on SinkHandler is being done). I tried playing around adding SinkHandler as an inner class of Heritrix as was suggested in another post -- so the correct context is forced -- but it needs more work. Adding heritrix*.jar to commons/endorsed only adds to the confusion. Making a small jar that has org.archive.io.SinkHandler* in it -- making it with jdk1.4.x -- and adding this to commons/endorsed works. Looks like heritrix-as-a-war has been broken with a while, since the commit of SinkHandler. I'll make an issue to fix... Thanks for pointing out the problem. St.Ack > > I downloaded src heritrix-1.5.1-200510181217 from > > http://crawltools.archive.org:8080/cruisecontrol/artifacts/HEAD- heritrix/ 20051018121732 > > > > I setup Maven as directed in the developer manual and ran "maven war" > > This seems to describe the problem: > > I then threw the war into tomcat and started up and received this error: > > INFO: Installing web application at context path /heritrix from URL > file:C:/Tomcat5/webapps/heritrix > > Can't load log handler "org.archive.io.SinkHandler" > > java.lang.ClassNotFoundException: org.archive.io.SinkHandler > > java.lang.ClassNotFoundException: org.archive.io.SinkHandler > > at java.net.URLClassLoader$1.run(URLClassLoader.java:199) > > 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:235) > > at java.util.logging.LogManager$5.run(LogManager.java:783) > > at java.security.AccessController.doPrivileged(Native Method) > > at > java.util.logging.LogManager.initializeGlobalHandlers (LogManager.java:776) > > at java.util.logging.LogManager.access$900 (LogManager.java:114) > > at > java.util.logging.LogManager$RootLogger.getHandlers (LogManager.java:883) > > at org.archive.io.SinkHandler.getInstance(SinkHandler.java: 80) > > at org.archive.crawler.Heritrix.<init>(Heritrix.java:313) > > at > org.archive.crawler.WebappLifecycle.contextInitialized (WebappLifecycle.java: 41) > > at > org.apache.catalina.core.StandardContext.listenerStart (StandardContext.java: 3831) > > at > org.apache.catalina.core.StandardContext.start (StandardContext.java:4323) > > at > org.apache.catalina.core.ContainerBase.addChildInternal (ContainerBase.java: 823) > > at > org.apache.catalina.core.ContainerBase.addChild (ContainerBase.java:807) > > at org.apache.catalina.core.StandardHost.addChild (StandardHost.java:595) > > at > org.apache.catalina.core.StandardHostDeployer.install (StandardHostDeployer.java:277) > > at org.apache.catalina.core.StandardHost.install (StandardHost.java:832) > > at org.apache.catalina.startup.HostConfig.deployWARs (HostConfig.java:625) > > at org.apache.catalina.startup.HostConfig.deployApps (HostConfig.java:431) > > at org.apache.catalina.startup.HostConfig.start (HostConfig.java:983) > > at > org.apache.catalina.startup.HostConfig.lifecycleEvent (HostConfig.java:349) > > at > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent (LifecycleSupport.java:119) > > at org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1091) > > at org.apache.catalina.core.StandardHost.start (StandardHost.java:789) > > at org.apache.catalina.core.ContainerBase.start (ContainerBase.java:1083) > > at org.apache.catalina.core.StandardEngine.start (StandardEngine.java:478) > > at > org.apache.catalina.core.StandardService.start (StandardService.java:480) > > at > org.apache.catalina.core.StandardServer.start (StandardServer.java:2313) > > at org.apache.catalina.startup.Catalina.start(Catalina.java: 556) > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > at > sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:39) > > at > sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:25) > > at java.lang.reflect.Method.invoke(Method.java:324) > > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java: 287) > > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java: 425) > >

    JIRA | 1 decade ago | Michael Stack
    java.lang.ClassNotFoundException: org.archive.io.SinkHandler

    Root Cause Analysis

    1. java.lang.ClassNotFoundException

      org.compiere.util.CLogConsole

      at java.net.URLClassLoader$1.run()
    2. Java RT
      LogManager$RootLogger.getHandlers
      1. java.net.URLClassLoader$1.run(Unknown Source)
      2. java.security.AccessController.doPrivileged(Native Method)
      3. java.net.URLClassLoader.findClass(Unknown Source)
      4. java.lang.ClassLoader.loadClass(Unknown Source)
      5. sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
      6. java.lang.ClassLoader.loadClass(Unknown Source)
      7. java.util.logging.LogManager$7.run(Unknown Source)
      8. java.security.AccessController.doPrivileged(Native Method)
      9. java.util.logging.LogManager.initializeGlobalHandlers(Unknown Source)
      10. java.util.logging.LogManager.access$900(Unknown Source)
      11. java.util.logging.LogManager$RootLogger.getHandlers(Unknown Source)
      11 frames
    3. org.compiere.util
      CLogMgt.initialize
      1. org.compiere.util.CLogMgt.initialize(CLogMgt.java:67)
      1 frame
    4. org.compiere
      Compiere.main
      1. org.compiere.Compiere.startup(Compiere.java:389)
      2. org.compiere.Compiere.main(Compiere.java:501)
      2 frames
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      4. java.lang.reflect.Method.invoke(Unknown Source)
      4 frames
    6. com.sun.javaws
      Launcher.run
      1. com.sun.javaws.Launcher.executeApplication(Unknown Source)
      2. com.sun.javaws.Launcher.executeMainClass(Unknown Source)
      3. com.sun.javaws.Launcher.continueLaunch(Unknown Source)
      4. com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
      5. com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
      6. com.sun.javaws.Launcher.run(Unknown Source)
      6 frames
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Unknown Source)
      1 frame