Can you double check if you start the CXF endpoint twice?

--  
Willem Jiang

Red Hat, Inc.
Web: http://www.redhat.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.iteye.com (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem



On November 14, 2014 at 8:53:33 PM, contactreji (contactr...@gmail.com) wrote:
> Hey
>  
> I get following exception while starting my route with CXF. I guess my
> project was executing fine till 2 days back. But today I have this issue.
>  
> *Error occurred while running main from: org.apache.camel.spring.Main
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) 
>  
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>   
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:440)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.camel.RuntimeCamelException:
> java.lang.RuntimeException: Soap 1.1 endpoint already registered on address
> http://D-113063918:9191/mes/bw/MEStoBW_Material
> at
> org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1280)
>   
> at
> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(SpringCamelContext.java:120)
>   
> at
> org.apache.camel.spring.CamelContextFactoryBean.onApplicationEvent(CamelContextFactoryBean.java:280)
>   
> at
> org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
>   
> at
> org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)*
>   
>  
> I am posting my camel route file for your reference
>  
> *
>  
>  
>  
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xmlns:camel="http://camel.apache.org/schema/spring";
> xmlns:jaxws="http://cxf.apache.org/jaxws";
> xmlns:osgi="http://www.springframework.org/schema/osgi";
> xmlns:cxf="http://camel.apache.org/schema/cxf";
> xmlns:http-conf="http://cxf.apache.org/transports/http/configuration";
> xmlns:http="http://cxf.apache.org/transports/http/configuration";
> xmlns:sec="http://cxf.apache.org/configuration/security";
> xmlns:ctx="http://www.springframework.org/schema/context";
> xsi:schemaLocation="
> http://camel.apache.org/schema/cxf
> http://camel.apache.org/schema/cxf/camel-cxf.xsd
> http://cxf.apache.org/bindings/soap
> http://cxf.apache.org/schemas/configuration/soap.xsd
> http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
> http://camel.apache.org/schema/spring
> http://camel.apache.org/schema/spring/camel-spring.xsd
> http://www.springframework.org/schema/osgi
> http://www.springframework.org/schema/osgi/spring-osgi.xsd
> http://cxf.apache.org/configuration/security
> http://cxf.apache.org/schemas/configuration/security.xsd
> http://cxf.apache.org/transports/http/configuration
> http://cxf.apache.org/schemas/configuration/http-conf.xsd
> http://www.springframework.org/schema/context
> http://www.springframework.org/schema/context/spring-context.xsd
>  
> ">
>  
> >  
> location="file:D:/FactoryESB-PropertyFiles/ID_Name.properties,file:D:/FactoryESB-PropertyFiles/utility.properties"
>   
> />
>  
>  
>  
> >  
> serviceClass="outotec.pi.mes.id52.materialconsumptions.SIID52MaterialConsumptionAsyncOut"
>   
> wsdlURL="wsdl/SI_ID52_MaterialConsumption_async_outService.wsdl"
> serviceName="ons:SI_ID52_MaterialConsumption_async_outService"
> endpointName="ons:HTTP_Port"
> xmlns:ons="urn:outotec:pi:mes:id52:MaterialConsumptions"
> xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";>
>  
>  
>  
>  
> > class="org.apache.activemq.ActiveMQConnectionFactory">
>  
>  
>  
>  
> > class="org.apache.activemq.pool.PooledConnectionFactory"
> init-method="start" destroy-method="stop">
>  
>  
>  
>  
> > class="org.apache.camel.component.jms.JmsConfiguration">
>  
>  
>  
>  
> > class="org.apache.activemq.camel.component.ActiveMQComponent">
>  
>  
>  
>  
> >  
> location="file:D:/FactoryESB-PropertyFiles/ID_Name.properties,file:D:/FactoryESB-PropertyFiles/utility.properties"
>   
> id="placeholder" />
>  
>  
>  
>  
> Exception Handler Startes
> java.lang.Exception
>  
> true
>  
>  
> ${exception}
>  
>  
> > logName="Exception_{{interfaceID}}{{interfaceName}}" />
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
> TXN_${date:now:yyyyMMdd}${bean:dateClass?method=currentTimeMillis}  
>  
>  
> {{sourceSystem}}
>  
>  
> {{receiverSystem}}
>  
>  
> {{interfaceID}}
>  
>  
> {{interfaceName}}
>  
>  
> {{fuseArchivePath}}/{{FuseArchiveDirectoryName}}
>  
>  
> {{FuseArchiveDirectoryName}}
>  
>  
>  
>  
> received
>  
>  
>  
> ${date:now:yyyyMMdd}${bean:dateClass?method=currentTimeMillis}  
>  
>  
>  
>  
> > loggingLevel="INFO" logName="Archived -
> {{interfaceID}}:{{interfaceName}}">
>  
>  
> > loggingLevel="INFO"
> logName="DispatchNotice_{{interfaceID}}:{{interfaceName}}" />
> > />
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
> ${header.CamelFileNameOnly}
>  
>  
> > />
>  
>  
>  
>  
>  
>  
>  
> > class="com.outotec.javalogics.inventoryissuereturn.ResponseBuilder" />
>  
> *
>  
>  
>  
> And following is my POM file.
> *
>  
> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>  
> 4.0.0
>  
>  
>  
> 1.0.0
>  
>  
> com.poc
>  
>  
> bundle
>  
>  
>  
> fusesource
> FuseSource Release Repository
> http://repo.fusesource.com/nexus/content/groups/public/
>  
> false
>  
>  
> true
>  
>  
>  
> fusesource.ea
> FuseSource Community Early Access Release Repository
> http://repo.fusesource.com/nexus/content/groups/ea
>  
> false
>  
>  
> true
>  
>  
>  
> jboss-public-repository-group
> JBoss Public Repository Group
> http://repository.jboss.org/nexus/content/groups/public/
> default
>  
> true
> never
>  
>  
> true
> daily
>  
>  
>  
>  
>  
>  
> fusesource
> FuseSource Release Repository
> http://repo.fusesource.com/nexus/content/groups/public/
>  
> false
>  
>  
> true
>  
>  
>  
> fusesource.ea
> FuseSource Community Early Access Release Repository
> http://repo.fusesource.com/nexus/content/groups/ea
>  
> false
>  
>  
> true
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
> org.apache.camel
> camel-core
> 2.10.0
>  
>  
>  
> org.apache.camel
> camel-cxf
> 2.10.0
>  
>  
> org.apache.camel
> camel-mail
> 2.10.0
>  
>  
>  
> log4j
> log4j
> 1.2.16
>  
>  
>  
>  
>  
> org.slf4j
> slf4j-api
> 1.6.1
>  
>  
> org.slf4j
> slf4j-log4j12
> 1.6.1
>  
>  
>  
>  
> org.apache.cxf
> cxf-rt-transports-http-jetty
> 2.7.13
>  
>  
>  
>  
> org.apache.camel
> camel-test-spring
> 2.10.0
> test
>  
>  
>  
> org.apache.activemq
> activemq-core
> 5.7.0
>  
>  
>  
> junit
> junit
> 4.10
> test
>  
>  
> com.sun.xml.bind
> jaxb-osgi
> 2.2.7
>  
>  
> org.apache.camel
> camel-jaxb
> 2.11.1
>  
>  
> junit
> junit
> 4.10
> test
>  
>  
> com.sun.xml.bind
> jaxb-osgi
> 2.2.7
>  
>  
> org.apache.camel
> camel-jaxb
> 2.11.1
>  
>  
>  
> org.apache.activemq
> activemq-camel
> 5.8.0
>  
>  
>  
> org.apache.camel
> camel-mail
> 2.10.0
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
> org.apache.felix
> maven-bundle-plugin
> 2.3.4
> true
>  
>  
>  
> javax.activation;version=1.1,
> *
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
>  
> org.apache.maven.plugins
> maven-compiler-plugin
> 2.3.2
>  
> 1.6
> 1.6
>  
>  
>  
>  
> org.apache.maven.plugins
> maven-resources-plugin
> 2.6
>  
>  
>  
>  
> org.apache.camel
> camel-maven-plugin
> 2.10.0
>  
>  
>  
>  
>  
>  
>  
>  
> INTERFACEID-InterfaceName
>  
>  
>  
>  
> INTERFACEID-InterfaceName
> INTERFACEID-InterfaceName
>  
> *
>  
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/CXF-Error-starting-route-with-CXF-endpoint-tp5759130.html
>   
> Sent from the Camel - Users mailing list archive at Nabble.com.
>  

Reply via email to