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> 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
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to