Ah, found it. I had the camel-grpc 3.14 maven project imported in the workspace also. When I closed the project it works as expected. Could be a resolver problem when Eclipse add the project dependency as a workspace project instead of a jar dependency, but it is a bit of a corner case maybe. Thanks.
On 2022/01/19 13:51:01 Claus Ibsen wrote: > Hi > > There should not be any eclipse specific code in camel or camel-main. > Its just a "public static void Main" class. > > The stracktrace you posted tells that you need to add camel-grpc to, > the classpath. > > > On Wed, Jan 19, 2022 at 1:20 PM Peter Lundin Q > <pe...@ericsson.com.invalid> wrote: > > > > Hi, > > > > I noticed that when upgrading from 3.13.0 to 3.14.0 the possibility of > > running a Camel Main application from Eclipse stopped working both for "Run > > As -> Java Application" and "Debug As". > > Switching camel version back to 3.13.0 in the pom and it works fine. Any > > ideas on what could cause this? > > I found this but it seems deprecated for 3.x. > > https://camel.apache.org/components/2.x/others/eclipse.html > > Eclipse IDE for Java Developers > > Version: 2021-09 (4.21.0) > > Build id: 20210910-1417 > > > > Exception in thread "main" org.apache.camel.FailedToCreateRouteException: > > Failed to create route route3 at: >>> To[grpc://<rest of service uri > > removed>, please check your classpath contains the needed Camel component > > jar. > > at > > org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:240) > > at org.apache.camel.reifier.RouteReifier.createRoute(RouteReifier.java:74) > > at > > org.apache.camel.impl.DefaultModelReifierFactory.createRoute(DefaultModelReifierFactory.java:49) > > at > > org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:868) > > at > > org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:758) > > at > > org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamelContext.java:2861) > > at org.apache.camel.support.service.BaseService.init(BaseService.java:83) > > at > > org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2567) > > at org.apache.camel.support.service.BaseService.start(BaseService.java:111) > > at > > org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2586) > > at > > org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:247) > > at org.apache.camel.main.Main.doStart(Main.java:116) > > at org.apache.camel.support.service.BaseService.start(BaseService.java:119) > > at org.apache.camel.main.MainSupport.run(MainSupport.java:69) > > at com.ericsson.ptd.rtd.aas.RtdProducerMain.main(RtdProducerMain.java:30) > > Caused by: org.apache.camel.NoSuchEndpointException: No endpoint could be > > found for: grpc://<rest of service uri removed>, please check your > > classpath contains the needed Camel component jar. > > at > > org.apache.camel.impl.engine.AbstractCamelContext.doGetEndpoint(AbstractCamelContext.java:974) > > at > > org.apache.camel.impl.engine.AbstractCamelContext.getEndpoint(AbstractCamelContext.java:850) > > at > > org.apache.camel.support.CamelContextHelper.resolveEndpoint(CamelContextHelper.java:123) > > at org.apache.camel.reifier.SendReifier.resolveEndpoint(SendReifier.java:43) > > at org.apache.camel.reifier.SendReifier.createProcessor(SendReifier.java:36) > > at > > org.apache.camel.reifier.ProcessorReifier.makeProcessor(ProcessorReifier.java:838) > > at > > org.apache.camel.reifier.ProcessorReifier.addRoutes(ProcessorReifier.java:579) > > at > > org.apache.camel.reifier.RouteReifier.doCreateRoute(RouteReifier.java:236) > > ... 14 more > > Best Regards /Peter > > > > -- > Claus Ibsen > ----------------- > http://davsclaus.com @davsclaus > Camel in Action 2: https://www.manning.com/ibsen2 >