java.lang.ClassNotFoundException: org.archive.io.SinkHandler

JIRA | Michael Stack | 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

    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
  2. 0

    Exception: client startup on Windows

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

    Root Cause Analysis

    1. java.lang.ClassNotFoundException

      org.archive.io.SinkHandler

      at java.net.URLClassLoader$1.run()
    2. Java RT
      LogManager$RootLogger.getHandlers
      1. java.net.URLClassLoader$1.run(URLClassLoader.java:199)
      2. java.security.AccessController.doPrivileged(Native Method)
      3. java.net.URLClassLoader.findClass(URLClassLoader.java:187)
      4. java.lang.ClassLoader.loadClass(ClassLoader.java:289)
      5. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
      6. java.lang.ClassLoader.loadClass(ClassLoader.java:235)
      7. java.util.logging.LogManager$5.run(LogManager.java:783)
      8. java.security.AccessController.doPrivileged(Native Method)
      9. java.util.logging.LogManager.initializeGlobalHandlers(LogManager.java:776)
      10. java.util.logging.LogManager.access$900(LogManager.java:114)
      11. java.util.logging.LogManager$RootLogger.getHandlers(LogManager.java:883)
      11 frames
    3. webarchive-commons
      SinkHandler.getInstance
      1. org.archive.io.SinkHandler.getInstance(SinkHandler.java:80)
      1 frame
    4. org.archive.crawler
      WebappLifecycle.contextInitialized
      1. org.archive.crawler.Heritrix.<init>(Heritrix.java:313)
      2. org.archive.crawler.WebappLifecycle.contextInitialized(WebappLifecycle.java:41)
      2 frames
    5. Glassfish Core
      Catalina.start
      1. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3831)
      2. org.apache.catalina.core.StandardContext.start(StandardContext.java:4323)
      3. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:823)
      4. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807)
      5. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:595)
      6. org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.java:277)
      7. org.apache.catalina.core.StandardHost.install(StandardHost.java:832)
      8. org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:625)
      9. org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:431)
      10. org.apache.catalina.startup.HostConfig.start(HostConfig.java:983)
      11. org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:349)
      12. org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
      13. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1091)
      14. org.apache.catalina.core.StandardHost.start(StandardHost.java:789)
      15. org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1083)
      16. org.apache.catalina.core.StandardEngine.start(StandardEngine.java:478)
      17. org.apache.catalina.core.StandardService.start(StandardService.java:480)
      18. org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
      19. org.apache.catalina.startup.Catalina.start(Catalina.java:556)
      19 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:324)
      4 frames
    7. Glassfish Core
      Bootstrap.main
      1. org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
      2. org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
      2 frames