gtata007 commented on issue #3973:
URL: https://github.com/apache/camel-k/issues/3973#issuecomment-1401374668

   Hi @squakez ,
   
   Thank you for all your suggestions on this CXF SOAP invocation. Here I am 
attaching the sample code from GitHub. and the command i use to run is as below.
   
   https://github.com/gtata007/camel-k-soap/tree/develop
   
   camel run TestWeb.java --deps=camel-cxf:3.14.0
   
   While I am trying to build/run the application with the camel command, it 
started throwing an error. Because it is unable to reference the java 
package/classes from the repository in my route builder java code. What are the 
possible ways to build this application by referring to the class files?
   
   Below is the error stack trace for reference.
   
   org.joor.ReflectException: Compilation error:
   /TestWeb.java:5: error: package org.oorsprong.websamples_countryinfo does 
not exist
   import org.oorsprong.websamples_countryinfo.CountryInfoService;
                                              ^
   
           at 
org.apache.camel.dsl.java.joor.MultiCompile.compileUnit(MultiCompile.java:144)
           at 
org.apache.camel.dsl.java.joor.JavaRoutesBuilderLoader.doLoadRoutesBuilders(JavaRoutesBuilderLoader.java:122)
           at 
org.apache.camel.dsl.support.ExtendedRouteBuilderLoaderSupport.loadRoutesBuilders(ExtendedRouteBuilderLoaderSupport.java:48)
           at 
org.apache.camel.impl.engine.DefaultRoutesLoader.findRoutesBuilders(DefaultRoutesLoader.java:119)
           at 
org.apache.camel.main.DefaultRoutesCollector.collectRoutesFromDirectory(DefaultRoutesCollector.java:148)
           at 
org.apache.camel.main.RoutesConfigurer.configureRoutes(RoutesConfigurer.java:187)
           at 
org.apache.camel.main.BaseMainSupport.configureRoutes(BaseMainSupport.java:652)
           at 
org.apache.camel.main.MainSupport.initCamelContext(MainSupport.java:404)
           at org.apache.camel.main.KameletMain.doInit(KameletMain.java:265)
           at 
org.apache.camel.support.service.BaseService.init(BaseService.java:83)
           at 
org.apache.camel.support.service.BaseService.start(BaseService.java:111)
           at org.apache.camel.dsl.jbang.core.commands.Run.run(Run.java:560)
           at org.apache.camel.dsl.jbang.core.commands.Run.call(Run.java:208)
           at org.apache.camel.dsl.jbang.core.commands.Run.call(Run.java:75)
           at picocli.CommandLine.executeUserObject(CommandLine.java:2041)
           at picocli.CommandLine.access$1500(CommandLine.java:148)
           at 
picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2461)
           at picocli.CommandLine$RunLast.handle(CommandLine.java:2453)
           at picocli.CommandLine$RunLast.handle(CommandLine.java:2415)
           at 
picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2273)
           at picocli.CommandLine$RunLast.execute(CommandLine.java:2417)
           at picocli.CommandLine.execute(CommandLine.java:2170)
           at 
org.apache.camel.dsl.jbang.core.commands.CamelJBangMain.run(CamelJBangMain.java:129)
           at main.CamelJBang.main(CamelJBang.java:36)
   
   
   Can you please throw some light on this issue?
   
   
   Regards,
   Guru


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to