|
As of October 27th, please open all new issues in the Red Hat Customer Portal . |
|
[
Permlink
| « Hide
]
deleted user added a comment - 10/Nov/09 05:28 PM
https://issues.apache.org/activemq/browse/SMX4-423
@ Sergey,
I just submit a patch to the SMX4-423. Hope it will be committed very soon. the namespace problem has gone with the fix but the next exception is
javax.jbi.JBIException: java.lang.Exception: Error deploying SU camelcxf-smxcxf- after trying to execute the route Hi Sergey,
I can only reproduce this issue on Windows, the test case can run successfully in Mac OSX. After digging the code for a while I guess your issue is caused by the CXF BusFactory created a wrong version of BusFactory. org.apache.cxf.bus.factory=org.apache.cxf.bus.spring.SpringBusFactory Willem The patch committed into apache SMX component repository.
The system properties patch is same with
This issue should be fix with CAMEL-2216
Hi Willem
The producer issue is indeed fixed, but I'm still seeing a problem with the namespaces : Caused by: javax.jbi.management.DeploymentException: <component-task-result xmln It is a different exception than the one I reported here but it is still happening. This exception is reported when I have a cxf:bean consumer endpoint in the camel context
Trying the not-yet-released servicemix-camel component leads to :
atcher.java:206) @Sergey,
Can you make sure you also updated the camel-cxf jar which will not try to load the default bus any more? Attached camel-cxf-2.0.0-psc-01-00M2.jar and servicemix-camel-2009.02.0-psc-01-00M2.jar.
Please copy them into the Fuse-ESB system directory. Hi Willem
Unfortunately, installing these attachments into system did not help. So I decided to just try to go a different route and create a cxf:endpoint in an osgi bundle.... So far I'm just getting nowhere, not quite sure how to make it work, will keep trying. <beans xmlns="http://www.springframework.org/schema/beans" xsi:schemaLocation=" <import resource="classpath:META-INF/cxf/cxf.xml" /> <cxf:cxfEndpoint id="serviceEndpoint" address="http://localhost:9001/PersonService" <camel:camelContext> I'd just like a message be sent to http://localhost:9001/PersonService Next, I'm trying this : <beans xmlns="http://www.springframework.org/schema/beans" <bean class="org.apache.servicemix.samples.wsdl_first.PersonImpl" id="jaxwsBean" /> <!-- END SNIPPET: beanDefinition --> <cxf:cxfEndpoint id="routerEndpoint" <cxf:cxfEndpoint id="serviceEndpoint" <camelContext id="camel" xmlns="http://camel.apache.org/schema/spring"> <camel:conduit name="{http://servicemix.apache.org/samples/wsdl-first}soap3.camel-conduit"> </beans> This does not work either, this time <import resource="classpath:META-INF/cxf/cxf-extension-camel.xml" /> can not be found, even though it actually does exist in the camel-cxf : eption parsing XML document from OSGi resource[classpath:META-INF/cxf/cxf-extens Please see the attached bundle. The current spring context in META-INF/spring attempts to use camel conduit (see the pom.xml for the correct imports).
Can you please have a look and check what may not be set up correctly ? @Sergey,
Please check out the camelcxfProblem2.tgz which I used to test my fix. In Fuse ESB 4.x, we already install the CXF and it depends third party bundles, so please don't include the CXF jars into your camel-su's lib, and don't import the below files in your camel context (because camel-su can't see CXF bundle which are installed into ESB). camel-cxf will create a default bus for you. <import resource="classpath:META-INF/cxf/cxf.xml" /> <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" /> <import resource="classpath:META-INF/cxf/cxf-extension-http-jetty.xml" /> For import the cxf-extenstion-camel.xml here is the walk around method CAMEL-2185
BTW, you can create a bundler which holds the camel-context.xml to access the JBI endpoints, and it will give you more flexibility Hi Willem
Still having problems with using an camel transport, here's the exception : log:display-exception here is the beans.xml : <beans xmlns="http://www.springframework.org/schema/beans" <bean class="org.apache.camel.component.cxf.transport.CamelTransportFactory" lazy-init="false"> <bean class="org.apache.servicemix.samples.wsdl_first.PersonImpl" id="jaxwsBean" /> <!-- END SNIPPET: beanDefinition --> <cxf:cxfEndpoint id="routerEndpoint" <cxf:cxfEndpoint id="serviceEndpoint" <camelContext id="camelContext" xmlns="http://camel.apache.org/schema/spring"> <camel:conduit name="{http://servicemix.apache.org/samples/wsdl-first}soap3.camel-conduit"> </beans> Likewise, camel-su does not seem to work. I downloaded the latest snapshot, saved camel-cxf and service-camel into system, updated system properties, still the same problem (No Destination factory). Canel su context has no extra imports and pom.xml does not include cxf
Have you tried the fix on windows ? resend the camel-cxf and servicemix-camel jars
I can have a camel cxf consumer working when it is packaged in an OSGI bundle.
It is likely it's also working when it is packaged in JBI SU but I could not confirm yet.. This issue is not blocking now |
||||||||||||||||||||||||||||||||||||||||