You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by alapaka <al...@rocketmail.com> on 2013/10/14 06:57:47 UTC
CXF Camel Blueprint - problem deploying Web Service application
G'day all;
I currently have a web service running standalone (no container) using CXF /
Camel / Spring / Jetty.
here is the setup in spring config:
<cxf:cxfEndpoint id="OrderService"
address="${webServicesIncomingURI}/OrderService"
endpointName="s:OrderServicePort"
serviceName="s:OrderService"
wsdlURL="${repository}${wsdlPath}OrderService.wsdl"
xmlns:s="http://me.com.au/namespaces/2007/test/Order"/>
Camel receives the incoming requests on a cxf endpoint:
<from uri="cxf:bean:OrderService?dataFormat=PAYLOAD"/>
This is all working fine when executed using mvn:camel run, using jetty as
http server.
I now want to port this to use blueprint and run in servicemix. So I
translated the above cxf config to this:
<jaxws:endpoint id="OrderService"
address="${webServicesIncomingURI}/OrderService"
endpointName="s:OrderServicePort"
serviceName="s:OrderService"
wsdlLocation="${repository}${wsdlPath}OrderService.wsdl"
xmlns:s="http://me.com.au/namespaces/2007/test/Order"/>
installing this into servicemix gives a null pointer exception:
java.lang.NullPointerException at
org.apache.aries.blueprint.container.RecipeBuilder.getValue(RecipeBuilder.java:335[10:org.apache.aries.blueprint:0.3.2]
....
I can see the cxf-codegen generated classes so the stub code is being
generated for the blueprint version as in the working spring version.
I think I am missing something silly and obvious, so for the sake of brevity
I have left out most of the config etc... I can post the entire config and
pom and whatever else.
One difference between the spring and blueprint code are the camel/cxf
versions used. For the spring I am running the latest camel (2.12.1) and cxf
(2.7.6) whereas I am attempting to deploy the blueprint to servicemix 4.5.2
(camel 2.10.6 / cxf 2.6.8)
I am compiling both with maven 3.0.5
If more info from the spring/blueprint configs and pom files and karaf
output is needed just let me know.
thanks in advance!
--
View this message in context: http://camel.465427.n5.nabble.com/CXF-Camel-Blueprint-problem-deploying-Web-Service-application-tp5741491.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: CXF Camel Blueprint - problem deploying Web Service application
Posted by alapaka <al...@rocketmail.com>.
OK I have gotten beyond this error. I was using the wrong schema/element.
instead of:
jaxws:endpoint
from
http://cxf.apache.org/blueprint/jaxws
http://cxf.apache.org/schemas/blueprint/jaxws.xsd
I used:
cxfEndpoint
from
http://camel.apache.org/schema/blueprint/cxf
http://camel.apache.org/schema/blueprint/cxf/camel-cxf.xsd
now the bundle deploys with no errors. I really have to run so I will
confirm tomorrow that the web services implemented in a camel route behind
this endpoint still work as before using spring-dm.
I will also post full source of my config for others who hit this snag.
--
View this message in context: http://camel.465427.n5.nabble.com/CXF-Camel-Blueprint-problem-deploying-Web-Service-application-tp5741491p5741496.html
Sent from the Camel - Users mailing list archive at Nabble.com.