2 Replies Latest reply on Jul 1, 2009 4:20 PM by Simone Pringle

    EIP Diagram - HTTP endpoint causes NoClassDefFoundError

    Simone Pringle Newbie

      I have created an EIP diagram which uses an  HTTP endpoint.  When I try to debug it, I get a NoClassDefFoundError for org.apache.commons.httpclient/HttpConnectionManager.

       

      I have already added the Commons HTTPClient library in the classpath - any ideas?

       

      Thanks,

      Simone

       

      debug=true, debugPort=53052, eventPort=44702, contextFileName=file:/opt/progress/fuse-integration-designer-1.2/workspace/.metadata/.plugins/com.fusesource.tools.eip.run/camel-debugger-tmp9066622795423124306.xml

       

      java.lang.NoClassDefFoundError: org/apache/commons/httpclient/HttpConnectionManager

           at java.lang.Class.getDeclaredConstructors0(Native Method)

           at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)

           at java.lang.Class.getDeclaredConstructors(Class.java:1836)

           at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:166)

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:925)

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:835)

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:440)

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)

           at java.security.AccessController.doPrivileged(Native Method)

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)

           at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:300)

           at org.apache.camel.spring.spi.SpringInjector.newInstance(SpringInjector.java:39)

           at org.apache.camel.impl.DefaultComponentResolver.resolveComponent(DefaultComponentResolver.java:73)

           at org.apache.camel.impl.DefaultCamelContext.getComponent(DefaultCamelContext.java:178)

           at org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:332)

           at org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:54)

           at org.apache.camel.model.RouteType.resolveEndpoint(RouteType.java:99)

           at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:106)

           at org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:112)

           at org.apache.camel.model.FromType.resolveEndpoint(FromType.java:73)

           at org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:81)

           at org.apache.camel.model.RouteType.addRoutes(RouteType.java:213)

           at org.apache.camel.model.RouteType.addRoutes(RouteType.java:89)

           at org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:670)

           at org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:663)

           at org.apache.camel.spring.SpringCamelContext.maybeDoStart(SpringCamelContext.java:166)

           at org.apache.camel.spring.SpringCamelContext.doStart(SpringCamelContext.java:161)

           at org.apache.camel.impl.ServiceSupport.start(ServiceSupport.java:53)

           at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:607)

           at org.apache.camel.spring.SpringCamelContext.maybeStart(SpringCamelContext.java:96)

           at org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:115)

           at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:78)

           at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)

           at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:76)

           at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:275)

           at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:737)

           at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:384)

           at org.springframework.context.support.FileSystemXmlApplicationContext.(FileSystemXmlApplicationContext.java:106)

           at com.fusesource.tools.eip.run.debugger.scaffolded.CamelStandinRuntime.doLaunchDebuggedContext(CamelStandinRuntime.java:175)

           at com.fusesource.tools.eip.run.debugger.scaffolded.CamelStandinRuntime.init(CamelStandinRuntime.java:82)

           at com.fusesource.tools.eip.run.debugger.scaffolded.CamelLauncher.main(CamelLauncher.java:79)

      Caused by: java.lang.ClassNotFoundException: org.apache.commons.httpclient.HttpConnectionManager

           at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

           at java.security.AccessController.doPrivileged(Native Method)

           at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

           at java.lang.ClassLoader.loadClass(ClassLoader.java:307)

           at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)

           at java.lang.ClassLoader.loadClass(ClassLoader.java:252)

           at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)

           ... 42 more

       

      Edited by: simonepringle on Jun 29, 2009 4:05 PM