I have reverted back to prerequisite="false" as JB recommended. I have set
karaf.clean.all = false. I am building the full application KAR.


A. Rothman wrote
> In your case, does it recover after Karaf is restarted (without cleaning
> the
> data dir, i.e. karaf.clean.all = false)? Do your bundles
> restart/refresh/diag normally?

No. Every Karaf restart yields a seemingly random result. The SOAP
web-service bundles mostly deploy successfully, but when sending a request
with a SOAP client, then any of the web-services may respond with a SOAP
fault "Can't transform a Source of type
javax.xml.transform.stax.StAXSource". No error in the Karaf logs though.
Irrespective of whether the service responds with a result or the SOAP
fault, my own bundle and the camel-jaxb bundle are both in state "active".
Restarting and/or refreshing the camel-jaxb bundle yields nothing in the
logs. Restarting and/or refreshing my bundle triggers the restart of the
Camel context, no errors in the log. The restart/refresh does not change the
outcome of the client request.

I have also observed that in contrast to the SOAP services the bundle
containing the REST service hardly ever deploys successfully. The main
difference I see between the two is that both the Blueprint and Camel
context in the REST service bundle are almost empty. The project is just a
shell for future implementation at the moment. While the context of the SOAP
bundles and that of the data backend bundle are far more substantial.

2015-11-23 08:24:41,619 | ERROR | FelixStartLevel  | BlueprintCamelContext      
     
| 433 - org.apache.camel.camel-blueprint - 2.16.0 |   | Error occurred
during starting Camel: CamelContext(rest-api) due Failed to create route
route1 at: >>> RestBinding <<< in route:
Route(route1)[[From[rest:get:/patient/{id}:/representative?r... because of
JSon DataFormat json-jackson not found.
org.apache.camel.FailedToCreateRouteException: Failed to create route route1
at: >>> RestBinding <<< in route:
Route(route1)[[From[rest:get:/patient/{id}:/representative?r... because of
JSon DataFormat json-jackson not found.
        at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1072)
        at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:196)
...
Caused by: java.lang.IllegalArgumentException: JSon DataFormat json-jackson
not found.
        at
org.apache.camel.model.rest.RestBindingDefinition.createProcessor(RestBindingDefinition.java:123)
        at
org.apache.camel.model.ProcessorDefinition.makeProcessorImpl(ProcessorDefinition.java:534)
        at
org.apache.camel.model.ProcessorDefinition.makeProcessor(ProcessorDefinition.java:495)
        at
org.apache.camel.model.ProcessorDefinition.addRoutes(ProcessorDefinition.java:219)
        at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1069)
        ... 55 more

To me this feels like a race condition.

Ralf



--
View this message in context: 
http://karaf.922171.n3.nabble.com/KAR-deployment-in-Karaf-4-0-3-fails-with-varying-errors-tp4043649p4043670.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to