I reinstalled Karaf, switched to Equinox, example works fine now. I submitted a patch to this example's README that was applied by Willem.

Thanks,
Glen

On 11/03/2011 02:23 PM, Daniel Kulp wrote:
On Thursday, November 03, 2011 2:03:15 PM Glen Mazza wrote:
Hi all, two questions:

1.) Line #51 of the camel-example-cxf-osgi sample's README[1] hosts a
CXF web service at the following URL:

http://localhost:8181/cxf/camel-example-cxf-osgi/webservices/incident?wsdl

However, the default string for OOTB Karaf would have "services" instead
of CXF:

http://localhost:8181/services/camel-example-cxf-osgi/webservices/incident
<http://localhost:8181/cxf/camel-example-cxf-osgi/webservices/incident>?wsdl

I have a patch to update the README and can have the URL changed to
"services" but was wondering where "cxf" came from--is that the default
string if it is hosted on ServiceMix (only Karaf uses "services" by
default?), or does ServiceMix use "services" too by default?  Then we
can switch the README to have them use "services" instead so no special
container configuration would be needed.
/cxf is the default for CXF and is likely the right URL.

It sounds like you have a kind of mixed up OSGi container thing.  Likely you
are trying to use something like CXF 2.4.3 with Felix (which has some issues
that will be fixed in 2.4.4, use Equinox) or possibly using some karaf configs
from Talend products.

Definitely retry with a more vanilla install of Karaf.    You can follow
instructions from my blog:

http://www.dankulp.com/blog/?p=352

to get Camel/CXF setup and try that.   I just gave that a try with that
example and it seemed to show up fine at :

http://localhost:8181/cxf/camel-example-cxf-osgi/webservices/incident?wsdl


Dan


2.) I cannot get this sample to work using either "cxf" or "services"
above in the URL string. Karaf log error message is: "Can't find the the
request for
http://localhost:8181/services/camel-example-cxf-osgi/webservices/incident's
Observer " which may mean CXF configuration isn't being properly detected.

Line #32 of the Spring camel-context.xml configuration here:
*http://tinyurl.com/3bumwtx* seems suspect:
*
*address="/camel-example-cxf-osgi/webservices/incident"

Shouldn't it be the entire address, like so:

address="http://localhost:8181/services/camel-example-cxf-osgi/webservices/i
ncident
<http://localhost:8181/cxf/camel-example-cxf-osgi/webservices/incident>?wsd
l"

(although that didn't seem to work for me either, same error!) The
address value of the camel-context.xml for *test* cases has the full URL
as above.

Thanks,
Glen

[1]
http://svn.apache.org/viewvc/camel/trunk/examples/camel-example-cxf-osgi/REA
DME.txt?annotate=1147432


--
Glen Mazza
Talend - http://www.talend.com/apache
Blog - http://www.jroller.com/gmazza/
Twitter - glenmazza

Reply via email to