[ https://issues.apache.org/jira/browse/CAMEL-14500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17030780#comment-17030780 ]
Claus Ibsen commented on CAMEL-14500: ------------------------------------- As spi-annotations is set in camel-core-engine, we can remove it from other places where its just duplciated > camel-core - spi-annotations is not optional > -------------------------------------------- > > Key: CAMEL-14500 > URL: https://issues.apache.org/jira/browse/CAMEL-14500 > Project: Camel > Issue Type: Improvement > Components: camel-core > Reporter: Claus Ibsen > Priority: Major > Fix For: 3.1.0 > > > They are no longer optional for running camel. As we look for @Component to > grab scheme name. > Caused by: java.lang.NoClassDefFoundError: > org/apache/camel/spi/annotations/Component > at org.apache.camel.support.DefaultComponent.doInit > (DefaultComponent.java:406) > at org.apache.camel.support.service.ServiceSupport.init > (ServiceSupport.java:82) > at org.apache.camel.support.service.ServiceHelper.initService > (ServiceHelper.java:55) > at org.apache.camel.impl.engine.AbstractCamelContext.initComponent > (AbstractCamelContext.java:576) > at org.apache.camel.impl.engine.AbstractCamelContext.access$000 > (AbstractCamelContext.java:170) > at org.apache.camel.impl.engine.AbstractCamelContext$2.apply > (AbstractCamelContext.java:505) > at org.apache.camel.impl.engine.AbstractCamelContext$2.apply > (AbstractCamelContext.java:501) > at java.util.concurrent.ConcurrentHashMap.computeIfAbsent > (ConcurrentHashMap.java:1660) > at org.apache.camel.impl.engine.AbstractCamelContext.getComponent > (AbstractCamelContext.java:501) > at org.apache.camel.impl.engine.AbstractCamelContext.getComponent > (AbstractCamelContext.java:477) > at org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint > (AbstractCamelContext.java:748) > at org.apache.camel.support.CamelContextHelper.getMandatoryEndpoint > (CamelContextHelper.java:57) > at org.apache.camel.impl.engine.DefaultRouteContext.resolveEndpoint > (DefaultRouteContext.java:120) > at org.apache.camel.reifier.RouteReifier.doCreateRoute > (RouteReifier.java:364) > at org.apache.camel.reifier.RouteReifier.createRoute > (RouteReifier.java:107) > at org.apache.camel.impl.DefaultModel.start (DefaultModel.java:356) > at org.apache.camel.impl.DefaultModel.startRoute (DefaultModel.java:330) > at org.apache.camel.impl.DefaultModel.startRouteDefinitions > (DefaultModel.java:323) > at org.apache.camel.impl.DefaultModel.startRouteDefinitions > (DefaultModel.java:302) > at org.apache.camel.impl.AbstractModelCamelContext.startRouteDefinitions > (AbstractModelCamelContext.java:317) > at org.apache.camel.impl.engine.AbstractCamelContext.doStartCamel > (AbstractCamelContext.java:2590) > at org.apache.camel.impl.engine.AbstractCamelContext.lambda$doStart$2 > (AbstractCamelContext.java:2442) > at > org.apache.camel.impl.engine.AbstractCamelContext.doWithDefinedClassLoader > (AbstractCamelContext.java:2459) > at org.apache.camel.impl.engine.AbstractCamelContext.doStart > (AbstractCamelContext.java:2440) > at org.apache.camel.support.service.ServiceSupport.start > (ServiceSupport.java:120) > at org.apache.camel.impl.engine.AbstractCamelContext.start > (AbstractCamelContext.java:2349) -- This message was sent by Atlassian Jira (v8.3.4#803005)