Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-8012

Missing jsch-0.1.31.jar when using sftp in ivysettings

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: ivy-plugin
    • Labels:
      None
    • Similar Issues:
    • Released As:
      1.14

      Description

      If you use sftp resolvers in the ivysettings.xml Hudson/Ivy plugin throws a ClassNotFoundException.

      Please include the jsch-0.1.31.jar in the ivy.hpi file.

      Maybe the other dependencies are important, too. Have a look in the lib folder of the ivy binary-with-dependencies distribution.

        Attachments

          Activity

          Hide
          tbingaman Timothy Bingaman added a comment -

          Hi,

          any chance you can post the stacktrace so I can see at what point it tries to load that class?

          I just want to make certain that it happens in the pre-build parsing step rather than during build time. If it was during build time then just including the jar in your ant install should do the trick. If it's during the parse though then yes, I'll need to bundle that dep.

          thanks,
          Timo

          Show
          tbingaman Timothy Bingaman added a comment - Hi, any chance you can post the stacktrace so I can see at what point it tries to load that class? I just want to make certain that it happens in the pre-build parsing step rather than during build time. If it was during build time then just including the jar in your ant install should do the trick. If it's during the parse though then yes, I'll need to bundle that dep. thanks, Timo
          Hide
          michaelkebe michaelkebe added a comment -

          This one is from the output of the console:

          D:\Java\hudson>java -jar hudson.war
          Running from: D:\Java\hudson\hudson.war
          [Winstone 2010/11/15 07:13:29] - Beginning extraction from war file
          hudson home directory: C:\Dokumente und Einstellungen\XXX\.hudson
          [Winstone 2010/11/15 07:14:13] - HTTP Listener started: port=8080
          [Winstone 2010/11/15 07:14:13] - AJP13 Listener started: port=8009
          Using one-time self-signed certificate
          [Winstone 2010/11/15 07:14:13] - Winstone Servlet Engine v0.9.10 running: controlPort=disabled
          15.11.2010 07:14:13 hudson.model.Hudson$4 onAttained
          INFO: Started initialization
          15.11.2010 07:14:39 hudson.model.Hudson$4 onAttained
          INFO: Listed all plugins
          15.11.2010 07:14:39 hudson.model.Hudson$4 onAttained
          INFO: Prepared all plugins
          15.11.2010 07:14:39 hudson.model.Hudson$4 onAttained
          INFO: Started all plugins
          15.11.2010 07:14:39 hudson.model.Hudson$4 onAttained
          INFO: Augmented all extensions
          15.11.2010 07:14:41 hudson.model.Hudson$4 onAttained
          INFO: Loaded all jobs
          15.11.2010 07:14:41 hudson.ivy.IvyMessageImpl log
          INFO: :: loading settings :: file = J:\XXX\ivysettings.xml
          15.11.2010 07:14:42 hudson.model.Hudson$4 onAttained
          INFO: Completed initialization
          15.11.2010 07:14:42 hudson.model.Hudson$4 onTaskFailed
          SCHWERWIEGEND: Failed Finalizing set up
          java.lang.NoClassDefFoundError: com/jcraft/jsch/SftpException
                  at org.apache.ivy.plugins.resolver.SFTPResolver.<init>(SFTPResolver.java:31)
                  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                  at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
                  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
                  at java.lang.reflect.Constructor.newInstance(Unknown Source)
                  at java.lang.Class.newInstance0(Unknown Source)
                  at java.lang.Class.newInstance(Unknown Source)
                  at org.apache.ivy.util.Configurator.addChild(Configurator.java:586)
                  at org.apache.ivy.util.Configurator.startCreateChild(Configurator.java:503)
                  at org.apache.ivy.core.settings.XmlSettingsParser.inConfiguratorStarted(XmlSettingsParser.java:569)
                  at org.apache.ivy.core.settings.XmlSettingsParser.startElement(XmlSettingsParser.java:201)
                  at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
                  at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
                  at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Sou
          rce)
                  at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
                  at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
                  at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
                  at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
                  at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
                  at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
                  at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
                  at javax.xml.parsers.SAXParser.parse(Unknown Source)
                  at javax.xml.parsers.SAXParser.parse(Unknown Source)
                  at org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:160)
                  at org.apache.ivy.core.settings.XmlSettingsParser.parse(XmlSettingsParser.java:150)
                  at org.apache.ivy.core.settings.IvySettings.load(IvySettings.java:384)
                  at org.apache.ivy.Ivy.configure(Ivy.java:411)
                  at hudson.ivy.IvyBuildTrigger.getIvy(IvyBuildTrigger.java:217)
                  at hudson.ivy.IvyBuildTrigger.recomputeModuleDescriptor(IvyBuildTrigger.java:293)
                  at hudson.ivy.IvyBuildTrigger.getModuleDescriptor(IvyBuildTrigger.java:246)
                  at hudson.ivy.IvyBuildTrigger.buildDependencyGraph(IvyBuildTrigger.java:394)
                  at hudson.util.DescribableList.buildDependencyGraph(DescribableList.java:181)
                  at hudson.model.Project.buildDependencyGraph(Project.java:168)
                  at hudson.model.DependencyGraph.<init>(DependencyGraph.java:104)
                  at hudson.model.Hudson.rebuildDependencyGraph(Hudson.java:3384)
                  at hudson.model.Hudson$13.run(Hudson.java:2199)
                  at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
                  at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
                  at hudson.model.Hudson$3.runTask(Hudson.java:691)
                  at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
                  at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                  at java.lang.Thread.run(Unknown Source)
          Caused by: java.lang.ClassNotFoundException: com.jcraft.jsch.SftpException
                  at java.net.URLClassLoader$1.run(Unknown Source)
                  at java.security.AccessController.doPrivileged(Native Method)
                  at java.net.URLClassLoader.findClass(Unknown Source)
                  at java.lang.ClassLoader.loadClass(Unknown Source)
                  at java.lang.ClassLoader.loadClass(Unknown Source)
                  ... 44 more
          15.11.2010 07:14:42 hudson.WebAppMain$2 run
          SCHWERWIEGEND: Failed to initialize Hudson
          org.jvnet.hudson.reactor.ReactorException: java.lang.NoClassDefFoundError: com/jcraft/jsch/SftpException
                  at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246)
                  at hudson.model.Hudson.executeReactor(Hudson.java:709)
                  at hudson.model.Hudson.<init>(Hudson.java:627)
                  at hudson.model.Hudson.<init>(Hudson.java:567)
                  at hudson.WebAppMain$2.run(WebAppMain.java:220)
          Caused by: java.lang.NoClassDefFoundError: com/jcraft/jsch/SftpException
                  at org.apache.ivy.plugins.resolver.SFTPResolver.<init>(SFTPResolver.java:31)
                  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
                  at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
                  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
                  at java.lang.reflect.Constructor.newInstance(Unknown Source)
                  at java.lang.Class.newInstance0(Unknown Source)
                  at java.lang.Class.newInstance(Unknown Source)
                  at org.apache.ivy.util.Configurator.addChild(Configurator.java:586)
                  at org.apache.ivy.util.Configurator.startCreateChild(Configurator.java:503)
                  at org.apache.ivy.core.settings.XmlSettingsParser.inConfiguratorStarted(XmlSettingsParser.java:569)
                  at org.apache.ivy.core.settings.XmlSettingsParser.startElement(XmlSettingsParser.java:201)
                  at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
                  at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
                  at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Sou
          rce)
                  at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
                  at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
                  at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
                  at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
                  at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
                  at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
                  at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
                  at javax.xml.parsers.SAXParser.parse(Unknown Source)
                  at javax.xml.parsers.SAXParser.parse(Unknown Source)
                  at org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:160)
                  at org.apache.ivy.core.settings.XmlSettingsParser.parse(XmlSettingsParser.java:150)
                  at org.apache.ivy.core.settings.IvySettings.load(IvySettings.java:384)
                  at org.apache.ivy.Ivy.configure(Ivy.java:411)
                  at hudson.ivy.IvyBuildTrigger.getIvy(IvyBuildTrigger.java:217)
                  at hudson.ivy.IvyBuildTrigger.recomputeModuleDescriptor(IvyBuildTrigger.java:293)
                  at hudson.ivy.IvyBuildTrigger.getModuleDescriptor(IvyBuildTrigger.java:246)
                  at hudson.ivy.IvyBuildTrigger.buildDependencyGraph(IvyBuildTrigger.java:394)
                  at hudson.util.DescribableList.buildDependencyGraph(DescribableList.java:181)
                  at hudson.model.Project.buildDependencyGraph(Project.java:168)
                  at hudson.model.DependencyGraph.<init>(DependencyGraph.java:104)
                  at hudson.model.Hudson.rebuildDependencyGraph(Hudson.java:3384)
                  at hudson.model.Hudson$13.run(Hudson.java:2199)
                  at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
                  at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
                  at hudson.model.Hudson$3.runTask(Hudson.java:691)
                  at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
                  at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                  at java.lang.Thread.run(Unknown Source)
          Caused by: java.lang.ClassNotFoundException: com.jcraft.jsch.SftpException
                  at java.net.URLClassLoader$1.run(Unknown Source)
                  at java.security.AccessController.doPrivileged(Native Method)
                  at java.net.URLClassLoader.findClass(Unknown Source)
                  at java.lang.ClassLoader.loadClass(Unknown Source)
                  at java.lang.ClassLoader.loadClass(Unknown Source)
                  ... 44 more
          

          This one is from the webinterface trying to access http://localhost:8080

          [!] Error
          
          org.jvnet.hudson.reactor.ReactorException: java.lang.NoClassDefFoundError: com/jcraft/jsch/SftpException
          	at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246)
          	at hudson.model.Hudson.executeReactor(Hudson.java:709)
          	at hudson.model.Hudson.(Hudson.java:627)
          	at hudson.model.Hudson.(Hudson.java:567)
          	at hudson.WebAppMain$2.run(WebAppMain.java:220)
          Caused by: java.lang.NoClassDefFoundError: com/jcraft/jsch/SftpException
          	at org.apache.ivy.plugins.resolver.SFTPResolver.(SFTPResolver.java:31)
          	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
          	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
          	at java.lang.reflect.Constructor.newInstance(Unknown Source)
          	at java.lang.Class.newInstance0(Unknown Source)
          	at java.lang.Class.newInstance(Unknown Source)
          	at org.apache.ivy.util.Configurator.addChild(Configurator.java:586)
          	at org.apache.ivy.util.Configurator.startCreateChild(Configurator.java:503)
          	at org.apache.ivy.core.settings.XmlSettingsParser.inConfiguratorStarted(XmlSettingsParser.java:569)
          	at org.apache.ivy.core.settings.XmlSettingsParser.startElement(XmlSettingsParser.java:201)
          	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
          	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
          	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
          	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
          	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
          	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
          	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
          	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
          	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
          	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
          	at javax.xml.parsers.SAXParser.parse(Unknown Source)
          	at javax.xml.parsers.SAXParser.parse(Unknown Source)
          	at org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:160)
          	at org.apache.ivy.core.settings.XmlSettingsParser.parse(XmlSettingsParser.java:150)
          	at org.apache.ivy.core.settings.IvySettings.load(IvySettings.java:384)
          	at org.apache.ivy.Ivy.configure(Ivy.java:411)
          	at hudson.ivy.IvyBuildTrigger.getIvy(IvyBuildTrigger.java:217)
          	at hudson.ivy.IvyBuildTrigger.recomputeModuleDescriptor(IvyBuildTrigger.java:293)
          	at hudson.ivy.IvyBuildTrigger.getModuleDescriptor(IvyBuildTrigger.java:246)
          	at hudson.ivy.IvyBuildTrigger.buildDependencyGraph(IvyBuildTrigger.java:394)
          	at hudson.util.DescribableList.buildDependencyGraph(DescribableList.java:181)
          	at hudson.model.Project.buildDependencyGraph(Project.java:168)
          	at hudson.model.DependencyGraph.(DependencyGraph.java:104)
          	at hudson.model.Hudson.rebuildDependencyGraph(Hudson.java:3384)
          	at hudson.model.Hudson$13.run(Hudson.java:2199)
          	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
          	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
          	at hudson.model.Hudson$3.runTask(Hudson.java:691)
          	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
          	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          	at java.lang.Thread.run(Unknown Source)
          Caused by: java.lang.ClassNotFoundException: com.jcraft.jsch.SftpException
          	at java.net.URLClassLoader$1.run(Unknown Source)
          	at java.security.AccessController.doPrivileged(Native Method)
          	at java.net.URLClassLoader.findClass(Unknown Source)
          	at java.lang.ClassLoader.loadClass(Unknown Source)
          	at java.lang.ClassLoader.loadClass(Unknown Source)
          	... 44 more
          
          Show
          michaelkebe michaelkebe added a comment - This one is from the output of the console: D:\Java\hudson>java -jar hudson.war Running from: D:\Java\hudson\hudson.war [Winstone 2010/11/15 07:13:29] - Beginning extraction from war file hudson home directory: C:\Dokumente und Einstellungen\XXX\.hudson [Winstone 2010/11/15 07:14:13] - HTTP Listener started: port=8080 [Winstone 2010/11/15 07:14:13] - AJP13 Listener started: port=8009 Using one-time self-signed certificate [Winstone 2010/11/15 07:14:13] - Winstone Servlet Engine v0.9.10 running: controlPort=disabled 15.11.2010 07:14:13 hudson.model.Hudson$4 onAttained INFO: Started initialization 15.11.2010 07:14:39 hudson.model.Hudson$4 onAttained INFO: Listed all plugins 15.11.2010 07:14:39 hudson.model.Hudson$4 onAttained INFO: Prepared all plugins 15.11.2010 07:14:39 hudson.model.Hudson$4 onAttained INFO: Started all plugins 15.11.2010 07:14:39 hudson.model.Hudson$4 onAttained INFO: Augmented all extensions 15.11.2010 07:14:41 hudson.model.Hudson$4 onAttained INFO: Loaded all jobs 15.11.2010 07:14:41 hudson.ivy.IvyMessageImpl log INFO: :: loading settings :: file = J:\XXX\ivysettings.xml 15.11.2010 07:14:42 hudson.model.Hudson$4 onAttained INFO: Completed initialization 15.11.2010 07:14:42 hudson.model.Hudson$4 onTaskFailed SCHWERWIEGEND: Failed Finalizing set up java.lang.NoClassDefFoundError: com/jcraft/jsch/SftpException at org.apache.ivy.plugins.resolver.SFTPResolver.<init>(SFTPResolver.java:31) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.ivy.util.Configurator.addChild(Configurator.java:586) at org.apache.ivy.util.Configurator.startCreateChild(Configurator.java:503) at org.apache.ivy.core.settings.XmlSettingsParser.inConfiguratorStarted(XmlSettingsParser.java:569) at org.apache.ivy.core.settings.XmlSettingsParser.startElement(XmlSettingsParser.java:201) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Sou rce) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:160) at org.apache.ivy.core.settings.XmlSettingsParser.parse(XmlSettingsParser.java:150) at org.apache.ivy.core.settings.IvySettings.load(IvySettings.java:384) at org.apache.ivy.Ivy.configure(Ivy.java:411) at hudson.ivy.IvyBuildTrigger.getIvy(IvyBuildTrigger.java:217) at hudson.ivy.IvyBuildTrigger.recomputeModuleDescriptor(IvyBuildTrigger.java:293) at hudson.ivy.IvyBuildTrigger.getModuleDescriptor(IvyBuildTrigger.java:246) at hudson.ivy.IvyBuildTrigger.buildDependencyGraph(IvyBuildTrigger.java:394) at hudson.util.DescribableList.buildDependencyGraph(DescribableList.java:181) at hudson.model.Project.buildDependencyGraph(Project.java:168) at hudson.model.DependencyGraph.<init>(DependencyGraph.java:104) at hudson.model.Hudson.rebuildDependencyGraph(Hudson.java:3384) at hudson.model.Hudson$13.run(Hudson.java:2199) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at hudson.model.Hudson$3.runTask(Hudson.java:691) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: com.jcraft.jsch.SftpException at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 44 more 15.11.2010 07:14:42 hudson.WebAppMain$2 run SCHWERWIEGEND: Failed to initialize Hudson org.jvnet.hudson.reactor.ReactorException: java.lang.NoClassDefFoundError: com/jcraft/jsch/SftpException at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246) at hudson.model.Hudson.executeReactor(Hudson.java:709) at hudson.model.Hudson.<init>(Hudson.java:627) at hudson.model.Hudson.<init>(Hudson.java:567) at hudson.WebAppMain$2.run(WebAppMain.java:220) Caused by: java.lang.NoClassDefFoundError: com/jcraft/jsch/SftpException at org.apache.ivy.plugins.resolver.SFTPResolver.<init>(SFTPResolver.java:31) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.ivy.util.Configurator.addChild(Configurator.java:586) at org.apache.ivy.util.Configurator.startCreateChild(Configurator.java:503) at org.apache.ivy.core.settings.XmlSettingsParser.inConfiguratorStarted(XmlSettingsParser.java:569) at org.apache.ivy.core.settings.XmlSettingsParser.startElement(XmlSettingsParser.java:201) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Sou rce) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:160) at org.apache.ivy.core.settings.XmlSettingsParser.parse(XmlSettingsParser.java:150) at org.apache.ivy.core.settings.IvySettings.load(IvySettings.java:384) at org.apache.ivy.Ivy.configure(Ivy.java:411) at hudson.ivy.IvyBuildTrigger.getIvy(IvyBuildTrigger.java:217) at hudson.ivy.IvyBuildTrigger.recomputeModuleDescriptor(IvyBuildTrigger.java:293) at hudson.ivy.IvyBuildTrigger.getModuleDescriptor(IvyBuildTrigger.java:246) at hudson.ivy.IvyBuildTrigger.buildDependencyGraph(IvyBuildTrigger.java:394) at hudson.util.DescribableList.buildDependencyGraph(DescribableList.java:181) at hudson.model.Project.buildDependencyGraph(Project.java:168) at hudson.model.DependencyGraph.<init>(DependencyGraph.java:104) at hudson.model.Hudson.rebuildDependencyGraph(Hudson.java:3384) at hudson.model.Hudson$13.run(Hudson.java:2199) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at hudson.model.Hudson$3.runTask(Hudson.java:691) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: com.jcraft.jsch.SftpException at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 44 more This one is from the webinterface trying to access http://localhost:8080 [!] Error org.jvnet.hudson.reactor.ReactorException: java.lang.NoClassDefFoundError: com/jcraft/jsch/SftpException at org.jvnet.hudson.reactor.Reactor.execute(Reactor.java:246) at hudson.model.Hudson.executeReactor(Hudson.java:709) at hudson.model.Hudson.(Hudson.java:627) at hudson.model.Hudson.(Hudson.java:567) at hudson.WebAppMain$2.run(WebAppMain.java:220) Caused by: java.lang.NoClassDefFoundError: com/jcraft/jsch/SftpException at org.apache.ivy.plugins.resolver.SFTPResolver.(SFTPResolver.java:31) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.ivy.util.Configurator.addChild(Configurator.java:586) at org.apache.ivy.util.Configurator.startCreateChild(Configurator.java:503) at org.apache.ivy.core.settings.XmlSettingsParser.inConfiguratorStarted(XmlSettingsParser.java:569) at org.apache.ivy.core.settings.XmlSettingsParser.startElement(XmlSettingsParser.java:201) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at javax.xml.parsers.SAXParser.parse(Unknown Source) at org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:160) at org.apache.ivy.core.settings.XmlSettingsParser.parse(XmlSettingsParser.java:150) at org.apache.ivy.core.settings.IvySettings.load(IvySettings.java:384) at org.apache.ivy.Ivy.configure(Ivy.java:411) at hudson.ivy.IvyBuildTrigger.getIvy(IvyBuildTrigger.java:217) at hudson.ivy.IvyBuildTrigger.recomputeModuleDescriptor(IvyBuildTrigger.java:293) at hudson.ivy.IvyBuildTrigger.getModuleDescriptor(IvyBuildTrigger.java:246) at hudson.ivy.IvyBuildTrigger.buildDependencyGraph(IvyBuildTrigger.java:394) at hudson.util.DescribableList.buildDependencyGraph(DescribableList.java:181) at hudson.model.Project.buildDependencyGraph(Project.java:168) at hudson.model.DependencyGraph.(DependencyGraph.java:104) at hudson.model.Hudson.rebuildDependencyGraph(Hudson.java:3384) at hudson.model.Hudson$13.run(Hudson.java:2199) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at hudson.model.Hudson$3.runTask(Hudson.java:691) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.ClassNotFoundException: com.jcraft.jsch.SftpException at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 44 more
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : tbingaman
          Path:
          trunk/hudson/plugins/ivy/src/test/resources/example-project/modules/build/ivy/ivysettings.xml
          http://jenkins-ci.org/commit/36955
          Log:
          Added some more Ivy resolvers in the example project Ivy settings to test JENKINS-8012.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : tbingaman Path: trunk/hudson/plugins/ivy/src/test/resources/example-project/modules/build/ivy/ivysettings.xml http://jenkins-ci.org/commit/36955 Log: Added some more Ivy resolvers in the example project Ivy settings to test JENKINS-8012 .
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : tbingaman
          Path:
          trunk/hudson/plugins/ivy/pom.xml
          http://jenkins-ci.org/commit/36956
          Log:
          [FIXED JENKINS-8012] Bundle jsch and commons-vfs with Ivy plugin since those classes may have to be loaded when parsing the Ivy settings file.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : tbingaman Path: trunk/hudson/plugins/ivy/pom.xml http://jenkins-ci.org/commit/36956 Log: [FIXED JENKINS-8012] Bundle jsch and commons-vfs with Ivy plugin since those classes may have to be loaded when parsing the Ivy settings file.
          Hide
          tbingaman Timothy Bingaman added a comment -

          Thanks for reporting this issue and providing the stack trace!
          Just pushed out version 1.14 with the fix

          Show
          tbingaman Timothy Bingaman added a comment - Thanks for reporting this issue and providing the stack trace! Just pushed out version 1.14 with the fix

            People

            • Assignee:
              tbingaman Timothy Bingaman
              Reporter:
              michaelkebe michaelkebe
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: