-
1. Re: cxf.xml configuration in Camel
davestanley Sep 28, 2009 11:37 AM (in response to shanaghe)Hi Eoin,
If you stick the cxf.xml file in your resources directory (assuming its a maven project), then it should get picked up.
Are you using Fuse ESB 3.x or 4.x?
Thanks
/Dave
-
2. Re: cxf.xml configuration in Camel
shanaghe Sep 28, 2009 11:43 AM (in response to davestanley)Hi Dave,
I'm using Fuse ESB 4.1.0.2. I had it in my src/main/resources, and it was being included in the bundle JAR in the right place. It just seemed that the file was being ignored/overwritten because the configuration was not applied.
Regards,
Eoin
-
3. Re: cxf.xml configuration in Camel
njiang Sep 28, 2009 9:31 PM (in response to shanaghe)Can you try to import the configure file from you application configuration ?
Like this
.....
-
4. Re: cxf.xml configuration in Camel
shanaghe Oct 2, 2009 8:32 AM (in response to njiang)Hi,
Thanks for the suggestion. I tried it, and it worked...eventually!
First of all Fuse couldn't find cxf.xml
Caused by: java.io.FileNotFoundException: OSGi resource[classpath:METAINF/cxf/cxf.xml|bnd.id=193|bnd.sym=.....] cannot be resolved to URL because it does not exist
So I added META-INF.cxf to my <Import-Package/> element for my bundle. Then followed a whole series of ClassNotFoundExceptions so I have ended up with this for my bundle.
<Import-Package>org.slf4j;version=1.4.3,
org.springframework.beans.factory.config;version=2.5.6,
org.apache.cxf,
org.apache.cxf.binding.soap.spring,
org.apache.cxf.bus,
org.apache.cxf.bus.spring,
org.apache.cxf.bus.resource,
org.apache.cxf.configuration.spring,
org.apache.cxf.configuration,
org.apache.cxf.binding,
org.apache.cxf.transport,
org.apache.cxf.wsdl11,
org.apache.cxf.phase,
org.apache.cxf.workqueue,
org.apache.cxf.buslifecycle,
org.apache.cxf.endpoint,
org.apache.cxf.headers,
org.apache.cxf.catalog,
org.apache.cxf.binding.soap,
org.apache.cxf.transport.http.policy,
org.apache.cxf.transport.http,
org.apache.cxf.transport.http_jetty,
org.apache.cxf.resource,
META-INF.cxf,
+ *</Import-Package>+
Is it really necessary? Am I missing something which avoids this?
-Eoin
-
5. Re: cxf.xml configuration in Camel
shanaghe Nov 12, 2009 12:33 PM (in response to shanaghe)As a follow up to this, I eventually went with a custom cxf-appname.xml file, preventing conflict issues with cxf.xml.
This is then imported in my camel-context.xml
The configuration now works in Fuse ESB 4.1.0.2 without any problems.