Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

camel-example-cxf-blueprint example service in ESB 5.0 RC2

Can anyone provide a zip of a working version of:
camel-example-cxf-blueprint
for talend-esb-se-5.0.0-RC2?
I'm really bad at getting a simple SOAP service to run inside the ESB as an OSGi bundle and this seems like the perfect example.
When I install it using Maven and then try to install it using Karaf, I get this error:
osgi:install -s mvn0683p000009MA5A.pngrg.apache.camel/camel-example-cxf-blueprint
org.osgi.framework.BundleException: The bundle "camel-example-cxf-blueprint_2.9.0.SNAPSHOT " could not be resolved. Reason: Missing Constraint: Import-Package: org.apache.camel; version="[2.9.0,3.0.0)"
I know 5.0 is going to eventually use camel 2.9.0 but for now it seems it is using 2.8.2.
When I package this and drop it in the deploy directory, I get this error:
WARN Could not find endpoint/port for {http://reportincident.example.camel.apache.org}ReportIncidentEndpointPort in wsdl. Using {http://reportincident.example.camel.apache.org}ReportIncidentService.
There does not seem to be a similar example in Talend ESB 4.2.1, which is currently our production ESB, so I tried out 5.0.
Karaf version 2.2.4
Karaf home /Users/rpoindex/apps/talend-esb-se-5.0.0-RC2/container
Karaf base /Users/rpoindex/apps/talend-esb-se-5.0.0-RC2/container
OSGi Framework org.eclipse.osgi - 3.6.2.R36x_v20110210
miles

Labels (2)
10 Replies
Anonymous
Not applicable
Author

I had a similar issue with another example of camel (camel-example-cxf-osgi)
The URL for the WSDL as suggested in the readme.txt under the examples folder is
http://localhost:8181/cxf/camel-example-cxf-osgi/webservices/incident?wsdl
The default port for http service is 8080 and not 8181 (org.osgi.service.http.port=8080). This is defined in the file /etc/org.ops4j.pax.web.cfg
The default servlet context is /services and not /cxf (org.apache.cxf.servlet.context=/services). This is defined in the file /etc/org.apache.cxf.osgi.cfg
Hence, the correct URL to get the WSDL is
http://localhost:8080/services/camel-example-cxf-osgi/webservices/incident?wsdl
BTW, this is on Talend Integration Factory 2.8.2