Hello Willem,

there is no Spring 4 involved. Unless you add camel-test-spring 2.14.0 as a
dependency, which I have not done at this point in time. camel-spring 2.14.0
pulls in Spring 3.2.11.RELEASE as its dependency.

Same with the Karaf features. Installing my feature with the descriptor
above leads to the following features to be installed:

karaf@root()> feature:list -i |grep -i spring
spring-dm         | 1.2.1            | x         | spring-3.0.2            |
Spring DM support
spring            | 3.2.11.RELEASE_1 | x         | spring-3.0.2            |
Spring 3.2.x support
spring-jms        | 3.2.11.RELEASE_1 | x         | spring-3.0.2            |
Spring 3.2.x JMS support
spring-oxm        | 3.2.11.RELEASE_1 | x         | spring-3.0.2            |
Spring 3.2.x OXM support
spring-tx         | 3.2.11.RELEASE_1 | x         | spring-3.0.2            |
Spring 3.2.x Transaction (TX) support
spring-web        | 3.2.11.RELEASE_1 | x         | spring-3.0.2            |
Spring 3.2.x Web support
camel-spring      | 2.14.0           | x         | camel-2.14.0            |
camel-spring-ws   | 2.14.0           | x         | camel-2.14.0            |

karaf@root()> bundle:list |grep -i spring
 88 | Active   |  50 | 2.14.0         | camel-spring
114 | Active   |  50 | 2.1.4.RELEASE  | Spring XML
115 | Active   |  50 | 2.1.4.RELEASE  | Spring Web Services Core, Fragments:
116
116 | Resolved |  50 | 2.1.4.RELEASE  | Spring Web Services Support, Hosts:
115
117 | Active   |  50 | 2.14.0         | camel-spring-ws

For now I have settled for deploying a spring context instead of blueprint.
However, that deployment is far from straight forward, too. I had to add
additional system parameters to the Karaf start script.

-Djavax.xml.soap.MessageFactory=com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl
 
-Djavax.xml.soap.MetaFactory=com.sun.xml.internal.messaging.saaj.soap.SAAJMetaFactoryImpl
 
-Djavax.xml.soap.SOAPFactory=com.sun.xml.internal.messaging.saaj.soap.ver1_1.SOAPFactory1_1Impl

Plus a dynamic import header in the manifest of my bundle: 

DynamicImport-Package: *

Without those additions I end up with this in the log:

Caused by: javax.xml.soap.SOAPException: Unable to create MessageFactory:
Provider for javax.xml.soap.MessageFactory cannot be found
        at
javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:90)[:2.4.0]
        at
org.springframework.ws.soap.saaj.SaajSoapMessageFactory.afterPropertiesSet(SaajSoapMessageFactory.java:147)[115:org.springframework.ws:2.1.4.RELEASE]
        ... 16 more

The original exception, which is only visible in the debugger, sais:

javax.xml.soap.SOAPException: Provider
org.apache.axis2.saaj.SAAJMetaFactoryImpl not found


Ralf



--
View this message in context: 
http://camel.465427.n5.nabble.com/Bundle-using-camel-spring-ws-failes-to-deploy-in-Karaf-tp5758291p5758358.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to