On Thursday, February 09, 2012 5:47:09 AM snatera wrote:
> Hello Dan!
> 
> Thanks for taking your time to reply to me.
> 
> In this link Fuse Source explains the way that I implemented:
> http://fusesource.com/docs/esb/4.3/cxf_security/HTTPCompatible.html#i488847

Nice of them to promote the use of generally bad ideas...   :-(


> I was trying to use <import resource="classpath:META-INF/cxf/cxf.xml" />
> before, but I had this Exception:
> 
> -- Exception in thread "SpringOsgiExtenderThread-29"
> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find
> class [org.apache.cxf.bus.spring.SpringBus] for bean with name 'cxf' defined
> in OSGi
> resource[classpath:META-INF/cxf/cxf.xml|bnd.id=219|bnd.sym=cnti-sw-dev-https
> ]; nested exception is java.lang.ClassNotFoundException:
> org.apache.cxf.bus.spring.SpringBus not found from bundle [my-bundle] --

You likely need to either add some imports (org.apache.cxf.bus.spring) or add 
a "Require-Bundle: org.apache.cxf.bundle" header to the manifest.    
Definitely one of the more annoying things about spring-dm.

 
> And.. if I do this <cxf:bus name="cxf"/> I get this Exception:
> 
>  --  org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
> Line 24 in XML document from URL
> [bundle://219.29:0/META-INF/spring/beans.xml] is invalid; nested exception
> is org.xml.sax.SAXParseException: cvc-complex-type.2.4.c: The matching
> wildcard is strict, but no declaration can be found for element 'cxf:bus'.

This is easier....  You need to update the schemaLocation attribute on the 
root beans to add 

"http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd";

to the list of namespaces to map to a schema for validation purposes.

Dan



> --
> 
> What can I do to solve this?
> Thanks a lot,
> 
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Problem-with-multiple-CXF-services-using-
> the-same-https-port-tp3379301p5469462.html Sent from the Camel - Users
> mailing list archive at Nabble.com.
-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to