google-code-export / ivyidea

Automatically exported from code.google.com/p/ivyidea
1 stars 0 forks source link

NoClassDefFoundError when using sftp resolver #58

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When I want to use an sftp resolver, I get following exception (apparently
some library jar is missing):

com/jcraft/jsch/JSchException: com/jcraft/jsch/JSchException
java.lang.NoClassDefFoundError: com/jcraft/jsch/JSchException
    at org.apache.ivy.plugins.resolver.SFTPResolver.<init>(SFTPResolver.java:31)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorI
mpl.java:39)
    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorA
ccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at java.lang.Class.newInstance0(Class.java:355)
    at java.lang.Class.newInstance(Class.java:308)
    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(XmlSettings
Parser.java:558)
    at
org.apache.ivy.core.settings.XmlSettingsParser.startElement(XmlSettingsParser.ja
va:200)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
    at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown
Source)
    at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.
dispatch(Unknown
Source)
    at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:277)
    at
org.apache.ivy.core.settings.XmlSettingsParser.doParse(XmlSettingsParser.java:15
9)
    at
org.apache.ivy.core.settings.XmlSettingsParser.parse(XmlSettingsParser.java:149)
    at org.apache.ivy.core.settings.IvySettings.load(IvySettings.java:377)
    at org.apache.ivy.Ivy.configure(Ivy.java:411)
    at org.clarent.ivyidea.ivy.IvyManager.getIvy(IvyManager.java:29)
    at
org.clarent.ivyidea.resolve.DependencyResolver.resolve(DependencyResolver.java:5
2)
    at
org.clarent.ivyidea.resolve.IntellijDependencyResolver$1.run(IntellijDependencyR
esolver.java:44)
    at
com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationI
mpl.java:343)
    at
org.clarent.ivyidea.resolve.IntellijDependencyResolver.resolve(IntellijDependenc
yResolver.java:40)
    at
org.clarent.ivyidea.ResolveForActiveModuleAction$1.doResolve(ResolveForActiveMod
uleAction.java:41)
    at
org.clarent.ivyidea.intellij.task.IvyIdeaResolveBackgroundTask.run(IvyIdeaResolv
eBackgroundTask.java:47)
    at
com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(Progress
ManagerImpl.java:3)
    at
com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl
.java:5)
    at
com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgre
ss(ProgressManagerImpl.java:13)
    at
com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManage
rImpl.java:101)
    at
com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(ProgressManagerImpl
.java:16)
    at
com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java
:8)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:8
86)
    at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)
    at
com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.ja
va:5)
Caused by: java.lang.ClassNotFoundException: com.jcraft.jsch.JSchException
    at
com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:5
4)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
    ... 46 more

Original issue reported on code.google.com by willem.verstraeten on 11 Sep 2009 at 2:44

GoogleCodeExporter commented 9 years ago
probably already fixed in 9.0-beta2 since that version of the plugin also ships 
the
jsch library jar

Original comment by willem.verstraeten on 24 Sep 2009 at 1:21

GoogleCodeExporter commented 9 years ago
It must resolve jsch.jar from ivysettings.xml, i'll try to fix it

Original comment by aefimov....@gmail.com on 27 Feb 2011 at 9:04

GoogleCodeExporter commented 9 years ago
Issue 70 has been merged into this issue.

Original comment by aefimov....@gmail.com on 27 Feb 2011 at 9:06