Hi-

Based on Sample of Akka Osgi Example as per the following link:
https://github.com/Crossing-Tech/akka-osgi-sample

I implemented same methodology for my requirement using Akka 2.2.0, Camel
2.11.1, CXF 2.7.5, Apache Karaf 2.3.2, Osgi 4.3.2 technologies. 

I developed as multi module maven project in java as per below structure:

1) Created Core module with Akka Osgi Extension by extending
ActorSystemActivator and then created actorsystem and registered this actor
system to osgi services.
2) Created Another sample bundle -> created an activator by extending
BundleActivator -> then retrieved actorsystem from osgi service tracker ->
then creating camelCXFRS  based untyped consumerActor with actor system ->
and also created normal actor i.e UnTypeActor implementation with
actorsystem.

3) Enabled above maven bundles with apache karaf maven plug-in and able to
generate them as osgi bundles i.e jar files.
4) Created features file by specifying dependencies used in maven pom files.
5) Then deployed features.xml in KARAF_HOME/deploy directory after starting
the karaf console from command prompt.
6) After resolving all dependencies with no errors in
Karaf_home/data/log/karaf.log file -> Then, i am getting the below exception
trace:

org.apache.camel.FailedToCreateRouteException: Failed to create route
akka://OACCActorSystem/user/OACCCamelCXFRestActor:
Route(akka://OACCActorSystem/user/OACCCamelCXFRestActor)[[Fr... because of
Failed to resolve endpoint:
cxfrs://http://127.0.0.1:7070/agilis/services/rest/oacc/?bindingStyle=SimpleConsumer&resourceClasses=com.diebold.agilis.oacc.rest.OACCRestService
due to: No component found with scheme: cxfrs
        at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:181)
        at
org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:751)
        at
org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:1845)
        at
org.apache.camel.impl.DefaultCamelContext.addRouteDefinitions(DefaultCamelContext.java:688)
        at
org.apache.camel.builder.RouteBuilder.populateRoutes(RouteBuilder.java:337)
        at
org.apache.camel.builder.RouteBuilder.addRoutesToCamelContext(RouteBuilder.java:264)
        at
org.apache.camel.impl.DefaultCamelContext.addRoutes(DefaultCamelContext.java:650)
        at
akka.camel.internal.ConsumerRegistrar$$anonfun$receive$4.applyOrElse(CamelSupervisor.scala:187)
        at akka.actor.ActorCell.receiveMessage(ActorCell.scala:498)
        at akka.actor.ActorCell.invoke(ActorCell.scala:456)
        at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:237)
        at akka.dispatch.Mailbox.run(Mailbox.scala:219)
[WARN] [09/11/2013 18:15:09.884]
[OACCActorSystem-akka.actor.default-dispatcher-2]
[akka://OACCActorSystem/user/camel-supervisor        at
akka.dispatch.ForkJoinExecutorConfigurator$AkkaForkJoinTask.exec(AbstractDispatcher.scala:386)
/registry/consumerRegistrar] Actor
[Actor[akka://OACCActorSystem/user/OACCCamelCXFRestActor#1061544027]] failed
to activate
        at
scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:262)
        at
scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:975)
        at
scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1478)
        at
scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:104)
Caused by: org.apache.camel.ResolveEndpointFailedException: Failed to
resolve endpoint:
cxfrs://http://127.0.0.1:7070/agilis/services/rest/oacc/?bindingStyle=SimpleConsumer&resourceClasses=com.diebold.agilis.oacc.rest.OACCRestService
due to: No component found with scheme: cxfrs
        at
org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:515)
        at
org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:62)
        at
org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:191)
        at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:108)
        at
org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:114)
        at
org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72)
        at
org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:90)
        at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:861)
        at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:176)
        ... 16 more


I am getting same in karaf console both for camel cxfrs based actors, camel
mina based actors but not for normal actors i.e Actors which implement
UnTypeActor. 

The above error stack error was printed by following the suggestion as per
below link"

https://www.assembla.com/spaces/akka/tickets/3541-errors-encountered-during-akka-camel-consumer-route-creation-are-too-difficult-to-debug#/activity/ticket


Please, help me in resolving above exception.

Regards
Ramakrishna



--
View this message in context: 
http://camel.465427.n5.nabble.com/Deployment-of-Akka-Camel-CXF-Osgi-sample-in-Apache-Karaf-container-tp5739297.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to