As the unavailability of the camel-jaxb and camel-jackson data formats is the
problem observed most often, I tried to "override" the auto discovery
mechanism for the data formats in Camel and added specific imports of the
packages exported by the respective data format bundles to the MANIFEST of
my bundles.

This indeed increased the chances of a successful deployment of the KAR
file. There are no exceptions during deploy, but still about 1 in 3
deployments one or more of the web-services responds with "Can't
transform...". Uninstalling and re-installing the feature of the web-service
does not change this. 

If, after a successful deployment, I refresh the camel-jaxb bundle all bets
are off again. The web-service bundles get restarted as a result of the
refresh. Most of the time they come back up alright, but it might happen
they all fail to start with the previously posted exception:

015-11-24 08:34:27,123 | ERROR | xFrameworkWiring | BlueprintCamelContext       
    
| 61 - org.apache.camel.camel-blueprint - 2.16.0 |   | Error occurred during
starting Camel: CamelContext(pas-patient-registration-ws) due Failed to
create route addTrustRole at: >>> Unmarshal[ref:jaxb] <<< in route:
Route(addTrustRole)[[From[spring-ws:soapaction:http://www.po... because of
Data format 'jaxb' could not be created. Ensure that the data format is
valid and the associated Camel component is present on the classpath
org.apache.camel.FailedToCreateRouteException: Failed to create route
addTrustRole at: >>> Unmarshal[ref:jaxb] <<< in route:
Route(addTrustRole)[[From[spring-ws:soapaction:http://www.po... because of
Data format 'jaxb' could not be created. Ensure that the data format is
valid and the associated Camel component is present on the classpath
        at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:1072)
        at
org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:196)
        at
org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:944)[54:org.apache.camel.camel-core:2.16.0]
...
Caused by: java.lang.IllegalArgumentException: Data format 'jaxb' could not
be created. Ensure that the data format is valid and the associated Camel
component is present on the classpath
        at
org.apache.camel.model.DataFormatDefinition.getDataFormat(DataFormatDefinition.java:107)
        at
org.apache.camel.model.DataFormatDefinition.getDataFormat(DataFormatDefinition.java:78)
        at
org.apache.camel.model.UnmarshalDefinition.createProcessor(UnmarshalDefinition.java:179)
        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

Ralf



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

Reply via email to