In Camel 3 the DefaultComponent is located at org.apache.camel.support
It is reported in the migration guide https://camel.apache.org/manual/latest/camel-3-migration-guide.html#_migrating_custom_components Il giorno mar 3 dic 2019 alle ore 12:59 <thomas.thi...@telekom.de> ha scritto: > Hi, > > I got this error. What is missing? > > java.lang.NoClassDefFoundError: org/apache/camel/impl/DefaultComponent > > Stacktrace: > > java.lang.NoClassDefFoundError: org/apache/camel/impl/DefaultComponent > at java.base/java.lang.ClassLoader.defineClass1(Native Method) > ~[na:na] > at > java.base/java.lang.ClassLoader.defineClass(ClassLoader.java:1016) ~[na:na] > at > java.base/java.security.SecureClassLoader.defineClass(SecureClassLoader.java:174) > ~[na:na] > at > java.base/jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:802) > ~[na:na] > at > java.base/jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:700) > ~[na:na] > at > java.base/jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:623) > ~[na:na] > at > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581) > ~[na:na] > at > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) > ~[na:na] > at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) > ~[na:na] > at > org.apache.camel.util.ObjectHelper.doLoadClass(ObjectHelper.java:474) > ~[camel-util-3.0.0.jar:3.0.0] > at > org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:378) > ~[camel-util-3.0.0.jar:3.0.0] > at > org.apache.camel.util.ObjectHelper.loadClass(ObjectHelper.java:355) > ~[camel-util-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.engine.DefaultClassResolver.loadClass(DefaultClassResolver.java:140) > ~[camel-base-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.engine.DefaultClassResolver.resolveClass(DefaultClassResolver.java:55) > ~[camel-base-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.engine.DefaultFactoryFinder.doNewInstance(DefaultFactoryFinder.java:120) > ~[camel-base-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.engine.DefaultFactoryFinder.lambda$findClass$0(DefaultFactoryFinder.java:77) > ~[camel-base-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.engine.DefaultFactoryFinder$1.apply(DefaultFactoryFinder.java:155) > ~[camel-base-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.engine.DefaultFactoryFinder$1.apply(DefaultFactoryFinder.java:151) > ~[camel-base-3.0.0.jar:3.0.0] > at > java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705) > ~[na:na] > at > org.apache.camel.impl.engine.DefaultFactoryFinder.addToClassMap(DefaultFactoryFinder.java:151) > ~[camel-base-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.engine.DefaultFactoryFinder.findClass(DefaultFactoryFinder.java:74) > ~[camel-base-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.engine.DefaultFactoryFinder.findClass(DefaultFactoryFinder.java:66) > ~[camel-base-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.engine.DefaultComponentResolver.findComponent(DefaultComponentResolver.java:83) > ~[camel-base-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.engine.DefaultComponentResolver.resolveComponent(DefaultComponentResolver.java:56) > ~[camel-base-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.engine.AbstractCamelContext.initComponent(AbstractCamelContext.java:568) > ~[camel-base-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.engine.AbstractCamelContext.access$000(AbstractCamelContext.java:165) > ~[camel-base-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.engine.AbstractCamelContext$2.apply(AbstractCamelContext.java:496) > ~[camel-base-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.engine.AbstractCamelContext$2.apply(AbstractCamelContext.java:492) > ~[camel-base-3.0.0.jar:3.0.0] > at > java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1705) > ~[na:na] > at > org.apache.camel.impl.engine.AbstractCamelContext.getComponent(AbstractCamelContext.java:492) > ~[camel-base-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.engine.AbstractCamelContext.getComponent(AbstractCamelContext.java:468) > ~[camel-base-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(AbstractCamelContext.java:745) > ~[camel-base-3.0.0.jar:3.0.0] > at > org.apache.camel.support.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:55) > ~[camel-support-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.engine.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:120) > ~[camel-base-3.0.0.jar:3.0.0] > at > org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:363) > ~[camel-core-engine-3.0.0.jar:3.0.0] > at > org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:108) > ~[camel-core-engine-3.0.0.jar:3.0.0] > at org.apache.camel.impl.DefaultModel.start(DefaultModel.java:356) > ~[camel-core-engine-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.DefaultModel.startRoute(DefaultModel.java:330) > ~[camel-core-engine-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.java:323) > ~[camel-core-engine-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.DefaultModel.startRouteDefinitions(DefaultModel.java:302) > ~[camel-core-engine-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.AbstractModelCamelContext.startRouteDefinitions(AbstractModelCamelContext.java:342) > ~[camel-core-engine-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel(AbstractCamelContext.java:2597) > ~[camel-base-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.engine.AbstractCamelContext.lambda$doStart$2(AbstractCamelContext.java:2445) > ~[camel-base-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.engine.AbstractCamelContext.doWithDefinedClassLoader(AbstractCamelContext.java:2462) > ~[camel-base-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.engine.AbstractCamelContext.doStart(AbstractCamelContext.java:2443) > ~[camel-base-3.0.0.jar:3.0.0] > at > org.apache.camel.spring.boot.SpringBootCamelContext.doStart(SpringBootCamelContext.java:39) > ~[camel-spring-boot-3.0.0.jar:3.0.0] > at > org.apache.camel.support.service.ServiceSupport.start(ServiceSupport.java:117) > ~[camel-api-3.0.0.jar:3.0.0] > at > org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2352) > ~[camel-base-3.0.0.jar:3.0.0] > at > org.apache.camel.spring.SpringCamelContext.start(SpringCamelContext.java:121) > ~[camel-spring-3.0.0.jar:3.0.0] > at > org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:157) > ~[camel-spring-3.0.0.jar:3.0.0] > at > org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE] > at > org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE] > at > org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE] > at > org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:403) > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE] > at > org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:360) > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE] > at > org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:897) > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE] > at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:553) > ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE] > at > org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) > ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] > at > org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) > ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] > at > org.springframework.boot.SpringApplication.run(SpringApplication.java:315) > ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] > at > org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) > ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] > at > org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) > ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] > at > de.telekom.dms.dpp2.DppMobilWorkflowApplication.main(DppMobilWorkflowApplication.java:40) > ~[classes/:na] > Caused by: java.lang.ClassNotFoundException: > org.apache.camel.impl.DefaultComponent > at > java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:583) > ~[na:na] > at > java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) > ~[na:na] > at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521) > ~[na:na] > ... 63 common frames omitted > >