It looks like the mail send to users@camel.apache.org still doesn't be
shown in the nabble.
--- Begin Message ---
Hi ,

If you are using the ServletTransport for the CXF endpoint, you need to
use the related path instead of full path for the address.
Here[1] is the explanation for it

For you case , please change the cxf endpoint's address to "/account".

[1] http://cwiki.apache.org/CXF20DOC/servlet-transport.html

Willem

Sriram C wrote:
> I am trying to create a CXF endpoint using Spring DSL. My endpoint and route
> definitions are as follow:
> 
> <cxf:cxfEndpoint id="serviceEndpoint"
> address="http://localhost:8080/SFServices/services/account";
>               wsdlURL="classpath:accountOutboundMessage.wsdl"
>               serviceClass="com.mypackage.service.NotificationPort"
>               endpointName="s:Notification"
>               serviceName="s:NotificationService"
>       xmlns:s="http://soap.sforce.com/2005/09/outbound"; />
> 
>    <camelContext id="camel"
> xmlns="http://activemq.apache.org/camel/schema/spring";>
>     <route>
>       <from uri="cxf:bean:serviceEndpoint" />
>       <bean ref="testBean" method="toCompany"/>
>     </route>
>    </camelContext>
>    
>    
> The webapp starts up correctly. I can go to the CXF Service list page and
> see that the service has been correctly initialized. However when I access
> the WSDL for the published service, I see a 'No service was found' message
> with the following warning.  
> 
> WARN [13:08:47,515] -
> org.apache.cxf.transport.servlet.ServletController.invoke(126) | Can't find
> the request for http://localhost:8080/SFServices/services/account's Observer 
> 
> Can somebody point me to what is wrong in my configuration or how I can go
> about debugging this issue?
> 
> Thanks
> Sriram
> 
> The debug messages from Tomcat startup where the CXF endpoint is setup is
> listed below.
> 
> INFO [13:08:33,218] - org.apache.cxf.endpoint.ServerImpl.initDestination(91)
> | Setting the server's publish address to be
> http://localhost:8080/SFServices/services/account
> DEBUG [13:08:33,250] -
> org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilder.buildHandlerChainFromClass(72)
> | building handler chain
> DEBUG [13:08:33,250] -
> org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilder.findHandlerChainAnnotation(257)
> | Checking for HandlerChain annotation on
> com.mypackage.service.NotificationPort
> DEBUG [13:08:33,250] -
> org.apache.cxf.jaxws.handler.AnnotationHandlerChainBuilder.buildHandlerChainFromClass(77)
> | no HandlerChain annotation on interface
> com.mypackage.service.NotificationPort
> DEBUG [13:08:33,250] -
> org.apache.camel.management.DefaultInstrumentationAgent.registerMBeanWithServer(247)
> | Registered MBean with objectname:
> org.apache.camel:context=CM-Latitude-E55/camel,type=consumers,name=CxfConsumer(0x91cceb)
> DEBUG [13:08:33,250] -
> org.apache.cxf.transport.AbstractObservable.setMessageObserver(45) |
> registering incoming observer:
> org.apache.cxf.transport.chaininitiationobser...@1bc6271
> DEBUG [13:08:33,250] - org.apache.cxf.endpoint.ServerImpl.start(127) |
> register the server to serverRegistry 
> DEBUG [13:08:33,250] -
> org.apache.camel.impl.DefaultComponent.createEndpoint(79) | Creating
> endpoint uri=[spring-event:default], path=[default], parameters=[{}]
> DEBUG [13:08:33,265] -
> org.apache.camel.impl.DefaultCamelContext.getEndpoint(333) |
> spring-event:default converted to endpoint: Endpoint[spring-event:default]
> by component: org.apache.camel.component.event.eventcompon...@17f61bb
> DEBUG [13:08:33,281] -
> org.apache.camel.management.DefaultInstrumentationAgent.registerMBeanWithServer(247)
> | Registered MBean with objectname:
> org.apache.camel:context=CM-Latitude-E55/camel,type=endpoints,name="spring-event:default\?id=0x20a20c46"
> Feb 20, 2009 1:08:33 PM org.apache.catalina.core.ApplicationContext log
> INFO: Set web app root system property: 'webapp.root' =
> [C:\projects\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\SFServices\]
> Feb 20, 2009 1:08:33 PM org.apache.catalina.core.ApplicationContext log
> INFO: Initializing log4j from
> [C:\projects\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\SFServices\WEB-INF\classes\log4j.xml]
> INFO [13:08:33,453] -
> org.apache.cxf.transport.servlet.CXFServlet.updateContext(120) | Load the
> bus with application context
> INFO [13:08:33,453] -
> org.springframework.context.support.AbstractApplicationContext.prepareRefresh(411)
> | Refreshing org.apache.cxf.bus.spring.busapplicationcont...@1026e12:
> display name [org.apache.cxf.bus.spring.busapplicationcont...@1026e12];
> startup date [Fri Feb 20 13:08:33 PST 2009]; parent:
> org.springframework.web.context.support.xmlwebapplicationcont...@ad5fab
> INFO [13:08:33,468] - org.apache.cxf.common.logging.LogUtils.doLog(345) | No
> cxf.xml configuration file detected, relying on defaults.
> DEBUG [13:08:33,468] -
> org.apache.cxf.bus.spring.BusApplicationContext.getConfigResources(179) |
> Creating application context with resources: []
> INFO [13:08:33,468] -
> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(426)
> | Bean factory for application context
> [org.apache.cxf.bus.spring.busapplicationcont...@1026e12]:
> org.springframework.beans.factory.support.defaultlistablebeanfact...@cebf1c
> DEBUG [13:08:33,468] -
> org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(430)
> | 0 beans defined in
> org.apache.cxf.bus.spring.busapplicationcont...@1026e12: display name
> [org.apache.cxf.bus.spring.busapplicationcont...@1026e12]; startup date [Fri
> Feb 20 13:08:33 PST 2009]; parent:
> org.springframework.web.context.support.xmlwebapplicationcont...@ad5fab
> DEBUG [13:08:33,468] -
> org.springframework.context.support.AbstractApplicationContext.initMessageSource(648)
> | Unable to locate MessageSource with name 'messageSource': using default
> [org.springframework.context.support.delegatingmessagesou...@2db3da]
> DEBUG [13:08:33,484] -
> org.springframework.context.support.AbstractApplicationContext.initApplicationEventMulticaster(672)
> | Unable to locate ApplicationEventMulticaster with name
> 'applicationEventMulticaster': using default
> [org.springframework.context.event.simpleapplicationeventmulticas...@7aaf5a]
> DEBUG [13:08:33,484] -
> org.apache.camel.spring.SpringCamelContext.onApplicationEvent(109) |
> Publishing spring-event:
> org.springframework.context.event.contextrefreshedevent[source=org.apache.cxf.bus.spring.busapplicationcont...@1026e12:
> display name [org.apache.cxf.bus.spring.busapplicationcont...@1026e12];
> startup date [Fri Feb 20 13:08:33 PST 2009]; parent:
> org.springframework.web.context.support.xmlwebapplicationcont...@ad5fab]
> DEBUG [13:08:33,484] -
> org.apache.camel.spring.SpringCamelContext.maybeStart(96) | Starting the
> CamelContext now that the ApplicationContext has started
> INFO [13:08:33,484] -
> org.apache.cxf.transport.servlet.AbstractCXFServlet.replaceDestinationFactory(122)
> | Servlet transport factory already registered 
> Feb 20, 2009 1:08:33 PM org.apache.coyote.http11.Http11Protocol start
> INFO: Starting Coyote HTTP/1.1 on http-8080
> Feb 20, 2009 1:08:33 PM org.apache.jk.common.ChannelSocket init
> INFO: JK: ajp13 listening on /0.0.0.0:8009
> Feb 20, 2009 1:08:33 PM org.apache.jk.server.JkMain start
> INFO: Jk running ID=0 time=0/63  config=null
> Feb 20, 2009 1:08:33 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 27240 ms



--- End Message ---

Reply via email to