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