Thank you both! Best, Christian
Sent from a mobile device Am 25.03.2013 16:13 schrieb "Willem jiang" <willem.ji...@gmail.com>: > Hi Claus, > > I just change the pom of camel-cxf-transport blueprint related > dependencies to provided. > > -- > Willem Jiang > > Red Hat, Inc. > FuseSource is now part of Red Hat > Web: http://www.fusesource.com | http://www.redhat.com > Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) > (English) > http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese) > Twitter: willemjiang > Weibo: 姜宁willem > > > > > > On Monday, March 25, 2013 at 10:25 PM, Claus Ibsen wrote: > > > Hi Christian > > > > Well spotted. > > > > Its indeed a problem with duplicate blueprint JARs on the classpath. > > The problem is camel-cxf brings in another set of JARs which is > duplicates. > > > > I have fixed this on the trunk. > > > > camel-cxf should IMHO have these blueprint JARs set as > > <scope>provided</scope> > > > > Willem I think this time it was camel-cxf-transport that has this > problem. > > Didn't you fix that scope on camel-cxf recently? > > > > > > On Sat, Mar 23, 2013 at 2:44 PM, Christian Müller > > <christian.muel...@gmail.com (mailto:christian.muel...@gmail.com)> > wrote: > > > Hello Claus, Willem! > > > > > > Could you please have a look at the test > > > > org.apache.camel.test.cxf.blueprint.CxfConsumerSoap12Test.testBeanDefinitionParserAndInvokeGreeter. > > > It fails from time to time also on my machine. If it fails, it looks > like > > > because the service is registered and started twice: > > > 2013-03-23 14:34:41,573 [int Extender: 3] INFO > ReflectionServiceFactoryBean > > > - Creating Service { > http://apache.org/hello_world_soap_http}GreeterService > > > from class org.apache.hello_world_soap_http.Greeter > > > 2013-03-23 14:34:41,573 [int Extender: 3] INFO > ReflectionServiceFactoryBean > > > - Creating Service { > http://apache.org/hello_world_soap_http}GreeterService > > > from class org.apache.hello_world_soap_http.Greeter > > > 2013-03-23 14:34:41,906 [int Extender: 3] INFO ServerImpl > > > - Setting the server's publish address to be > > > http://localhost:1101/CxfConsumerSoap12Test/router > > > 2013-03-23 14:34:41,906 [int Extender: 3] INFO ServerImpl > > > - Setting the server's publish address to be > > > http://localhost:1101/CxfConsumerSoap12Test/router > > > > > > > > > If the test succeed, than you will see the following exception in the > log > > > file (the second service isn't registered because of this exception and > > > everything works as expected): > > > 2013-03-23 14:39:01,661 [int Extender: 3] ERROR BlueprintCamelContext > > > - Error occurred during starting Camel: CamelContext(camel) due Soap > 1.2 > > > endpoint already registered on address > > > http://localhost:1101/CxfConsumerSoap12Test/router > > > java.lang.RuntimeException: Soap 1.2 endpoint already registered on > address > > > http://localhost:1101/CxfConsumerSoap12Test/router > > > at > > > > org.apache.cxf.binding.soap.SoapBindingFactory.addListener(SoapBindingFactory.java:921) > > > at org.apache.cxf.endpoint.ServerImpl.start(ServerImpl.java:131) > > > > > > Best, > > > Christian > > > > > > > > > > > > > > > -- > > Claus Ibsen > > ----------------- > > Red Hat, Inc. > > FuseSource is now part of Red Hat > > Email: cib...@redhat.com (mailto:cib...@redhat.com) > > Web: http://fusesource.com > > Twitter: davsclaus > > Blog: http://davsclaus.com > > Author of Camel in Action: http://www.manning.com/ibsen > > > > > >