My suggestion would be to try various URL's from your browser like:

http://localhost:8080/channel/services
http://localhost:8080/channel/services/
http://localhost:8080/services/
etc..

and see if you can get the CXF services list to at least come up.  That would 
then allow you to get the URL and such it's really deployed on.   

Dan

On Sunday 10 October 2010 10:15:31 pm jaybytez wrote:
> I have a service that is using JAX-WS/JAXB and CXF to expose the service
> endpoint.
> 
> My files look like the following:
> 
> beans-context.xml (my SEI has the JAX-WS annotations, my SIB implements the
> SEI and has not JAX-WS annotations).
> ==================
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns="http://www.springframework.org/schema/beans";
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>     xmlns:aop="http://www.springframework.org/schema/aop";
>     xmlns:tx="http://www.springframework.org/schema/tx";
>     xmlns:p="http://www.springframework.org/schema/p";
>     xmlns:context="http://www.springframework.org/schema/context";
>     xmlns:jaxws="http://cxf.apache.org/jaxws";
>     xsi:schemaLocation="
>     http://www.springframework.org/schema/beans
>     http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
>     http://www.springframework.org/schema/tx
>     http://www.springframework.org/schema/tx/spring-tx-3.0.xsd
>     http://www.springframework.org/schema/aop
>     http://www.springframework.org/schema/aop/spring-aop-3.0.xsd
>     http://www.springframework.org/schema/context
>     http://www.springframework.org/schema/context/spring-context-3.0.xsd
>       http://cxf.apache.org/jaxws
>       http://cxf.apache.org/schemas/jaxws.xsd";>
> 
>     <import resource="classpath:META-INF/cxf/cxf.xml" />
>       <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
>       <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
> 
>       <jaxws:endpoint
>               id="jaxws.ChannelManagerMessagingService"
>               
> endpointName="s:ChannelManagerMessagingServiceEndpointServicePort"
>               serviceName="s:ChannelManagerMessagingServiceEndpointService"
>               
implementor="com.foo.service.comm.ChannelManagerMessagingServiceImpl"
>               
implementorClass="com.foo.service.comm.ChannelManagerMessagingService"
>               address="/comm"
>               xmlns:s="http://foo.com/services/comm"; />
> 
> </beans>
> 
> My web.xml looks like such:
> web.xml
> ==================
> <?xml version="1.0" encoding="ISO-8859-1"?>
> 
> <!DOCTYPE web-app
>     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>     "http://java.sun.com/dtd/web-app_2_3.dtd";>
> 
> 
> <web-app>
>       <context-param>
>               <param-name>contextConfigLocation</param-name>
>               <param-value>classpath:**/*-context.xml</param-value>
>       </context-param>
> 
>       <listener>
>               <listener-class>
>                       org.springframework.web.context.ContextLoaderListener
>               </listener-class>
>       </listener>
> 
>       <servlet>
>               <servlet-name>CXFServlet</servlet-name>
>               <display-name>CXF Servlet</display-name>
>               <servlet-class>
>                       org.apache.cxf.transport.servlet.CXFServlet
>               </servlet-class>
>               <load-on-startup>1</load-on-startup>
>       </servlet>
> 
>       <servlet-mapping>
>               <servlet-name>CXFServlet</servlet-name>
>               <url-pattern>/*</url-pattern>
>       </servlet-mapping>
> </web-app>
> 
> I build this war and deploy it to jetty/webapps (jetty 6.1.25 and I have
> not configured anything specific about the jetty server).
> 
> I open up SoapUI and create a project based on the WSDL I generated from
> running the CXF tools against my SEI.  I submit my service request to the
> following:
> 
> http://localhost:8080/channel/comm
> 
> channel - Is the name of my war file
> /comm - is defined in my CXF files as the address.
> 
> Is this correct?
> 
> When I submit my request to that url, I get the following error (and of
> course I had a sample like this that worked before so I am not sure what I
> am doing wrong):
> 
> C:\Development\servers\jetty-6.1.25>java -jar start.jar
> 2010-10-10 18:53:52.006:INFO::Logging to STDERR via
> org.mortbay.log.StdErrLog
> 2010-10-10 18:53:54.474:INFO::jetty-6.1-SNAPSHOT
> 2010-10-10 18:53:55.104:INFO::Deploy
> C:\Development\servers\jetty-6.1.25\context
> s\test-jndi.xml ->
> org.mortbay.jetty.webapp.webappcont...@bf2d5e{/test-jndi,C:\D
> evelopment\servers\jetty-6.1.25/contexts/test-jndi.d}
> 2010-10-10 18:53:55.186:INFO::Deploy
> C:\Development\servers\jetty-6.1.25\context
> s\test.xml ->
> org.mortbay.jetty.webapp.webappcont...@95fd19{/,C:\Development\ser
> vers\jetty-6.1.25/webapps/test}
> 2010-10-10 18:53:55.414:INFO::Deploy
> C:\Development\servers\jetty-6.1.25\context
> s\javadoc.xml ->
> org.mortbay.jetty.handler.contexthand...@65a77f{/javadoc,file:/
> C:/Development/servers/jetty-6.1.25/javadoc/}
> 2010-10-10 18:53:56.048:INFO::No Transaction manager found - if your webapp
> requ
> ires one, please configure one.
> 2010-10-10 18:53:58.819:INFO:/:Transparent AsyncProxyServlet @ /google to
> http:/
> /www.google.com
> 2010-10-10 18:53:59.134:INFO::Extract
> file:/C:/Development/servers/jetty-6.1.25/
> webapps/channel.war to
> C:\Users\A06807~1.HNC\AppData\Local\Temp\Jetty_0_0_0_0_80
> 80_channel.war__channel__.lqr5qx\webapp
> 2010-10-10 18:54:04.545:INFO:/channel:Initializing Spring root
> WebApplicationCon
> text
> 0    [main] INFO  org.springframework.web.context.ContextLoader  - Root
> WebAppli
> cationContext: initialization started
> 177  [main] INFO
> org.springframework.web.context.support.XmlWebApplicationConte
> xt  - Refreshing Root WebApplicationContext: startup date [Sun Oct 10
> 18:54:04 P
> DT 2010]; root of context hierarchy
> 482  [main] INFO
> org.springframework.beans.factory.support.DefaultListableBeanF
> actory  - Pre-instantiating singletons in
> org.springframework.beans.factory.supp
> ort.defaultlistablebeanfact...@b40ec4: defining beans []; root of factory
> hierar
> chy
> 486  [main] INFO  org.springframework.web.context.ContextLoader  - Root
> WebAppli
> cationContext: initialization completed in 484 ms
> 1022 [main] INFO  org.apache.cxf.transport.servlet.AbstractCXFServlet  -
> Load th
> e bus with application context
> 1032 [main] INFO  org.apache.cxf.bus.spring.BusApplicationContext  -
> Refreshing
> org.apache.cxf.bus.spring.busapplicationcont...@2d189c: startup date [Sun
> Oct 10
>  18:54:05 PDT 2010]; parent: Root WebApplicationContext
> 1069 [main] INFO
> org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitio
> nReader  - Loading XML bean definitions from class path resource
> [META-INF/cxf/c
> xf.xml]
> 2071 [main] INFO
> org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitio
> nReader  - Loading XML bean definitions from class path resource
> [META-INF/cxf/c
> xf-extension-soap.xml]
> 2078 [main] INFO
> org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitio
> nReader  - Loading XML bean definitions from class path resource
> [META-INF/cxf/c
> xf-extension-xml.xml]
> 2082 [main] INFO
> org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitio
> nReader  - Loading XML bean definitions from class path resource
> [META-INF/cxf/c
> xf-extension-jaxws.xml]
> 2085 [main] INFO
> org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitio
> nReader  - Loading XML bean definitions from class path resource
> [META-INF/cxf/c
> xf-extension-http.xml]
> 2089 [main] INFO
> org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitio
> nReader  - Loading XML bean definitions from class path resource
> [META-INF/cxf/c
> xf-extension-http-jetty.xml]
> 2093 [main] INFO
> org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitio
> nReader  - Loading XML bean definitions from class path resource
> [META-INF/cxf/c
> xf-extension-http.xml]
> 2096 [main] INFO
> org.springframework.beans.factory.support.DefaultListableBeanF
> actory  - Overriding bean definition for bean
> 'org.apache.cxf.transport.http.pol
> icy.HTTPClientAssertionBuilder': replacing [Generic bean: class
> [org.apache.cxf.
> transport.http.policy.HTTPClientAssertionBuilder]; scope=; abstract=false;
> lazyI
> nit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true;
> primary=fa
> lse; factoryBeanName=null; factoryMethodName=null; initMethodName=null;
> destroyM
> ethodName=null; defined in class path resource
> [META-INF/cxf/cxf-extension-http.
> xml]] with [Generic bean: class
> [org.apache.cxf.transport.http.policy.HTTPClient
> AssertionBuilder]; scope=; abstract=false; lazyInit=false; autowireMode=0;
> depen
> dencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null;
> facto
> ryMethodName=null; initMethodName=null; destroyMethodName=null; defined in
> class
>  path resource [META-INF/cxf/cxf-extension-http.xml]]
> 2098 [main] INFO
> org.springframework.beans.factory.support.DefaultListableBeanF
> actory  - Overriding bean definition for bean
> 'org.apache.cxf.transport.http.pol
> icy.HTTPServerAssertionBuilder': replacing [Generic bean: class
> [org.apache.cxf.
> transport.http.policy.HTTPServerAssertionBuilder]; scope=; abstract=false;
> lazyI
> nit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true;
> primary=fa
> lse; factoryBeanName=null; factoryMethodName=null; initMethodName=null;
> destroyM
> ethodName=null; defined in class path resource
> [META-INF/cxf/cxf-extension-http.
> xml]] with [Generic bean: class
> [org.apache.cxf.transport.http.policy.HTTPServer
> AssertionBuilder]; scope=; abstract=false; lazyInit=false; autowireMode=0;
> depen
> dencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null;
> facto
> ryMethodName=null; initMethodName=null; destroyMethodName=null; defined in
> class
>  path resource [META-INF/cxf/cxf-extension-http.xml]]
> 2099 [main] INFO
> org.springframework.beans.factory.support.DefaultListableBeanF
> actory  - Overriding bean definition for bean
> 'org.apache.cxf.transport.http.pol
> icy.NoOpPolicyInterceptorProvider': replacing [Generic bean: class
> [org.apache.c
> xf.transport.http.policy.NoOpPolicyInterceptorProvider]; scope=;
> abstract=false;
>  lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true;
> prim
> ary=false; factoryBeanName=null; factoryMethodName=null;
> initMethodName=null; de
> stroyMethodName=null; defined in class path resource
> [META-INF/cxf/cxf-extension
> -http.xml]] with [Generic bean: class
> [org.apache.cxf.transport.http.policy.NoOp
> PolicyInterceptorProvider]; scope=; abstract=false; lazyInit=false;
> autowireMode
> =0; dependencyCheck=0; autowireCandidate=true; primary=false;
> factoryBeanName=nu
> ll; factoryMethodName=null; initMethodName=null; destroyMethodName=null;
> defined
>  in class path resource [META-INF/cxf/cxf-extension-http.xml]]
> 2102 [main] INFO
> org.springframework.beans.factory.support.DefaultListableBeanF
> actory  - Overriding bean definition for bean
> 'org.apache.cxf.transport.http.Cli
> entOnlyHTTPTransportFactory': replacing [Generic bean: class
> [org.apache.cxf.tra
> nsport.http.ClientOnlyHTTPTransportFactory]; scope=; abstract=false;
> lazyInit=tr
> ue; autowireMode=0; dependencyCheck=0; autowireCandidate=true;
> primary=false; fa
> ctoryBeanName=null; factoryMethodName=null; initMethodName=null;
> destroyMethodNa
> me=null; defined in class path resource
> [META-INF/cxf/cxf-extension-http.xml]] w
> ith [Generic bean: class
> [org.apache.cxf.transport.http.ClientOnlyHTTPTransportF
> actory]; scope=; abstract=false; lazyInit=true; autowireMode=0;
> dependencyCheck=
> 0; autowireCandidate=true; primary=false; factoryBeanName=null;
> factoryMethodNam
> e=null; initMethodName=null; destroyMethodName=null; defined in class path
> resou
> rce [META-INF/cxf/cxf-extension-http.xml]]
> 2106 [main] INFO
> org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitio
> nReader  - Loading XML bean definitions from class path resource
> [META-INF/cxf/c
> xf-extension-addr.xml]
> 2392 [main] INFO
> org.springframework.beans.factory.support.DefaultListableBeanF
> actory  - Pre-instantiating singletons in
> org.springframework.beans.factory.supp
> ort.defaultlistablebeanfact...@e34726: defining beans
> [cxf,org.apache.cxf.bus.sp
> ring.BusApplicationListener,org.apache.cxf.bus.spring.BusWiringBeanFactoryP
> ostPr
> ocessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.b
> us.spr
> ing.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManager,org.
> apache
> .cxf.configuration.Configurer,org.apache.cxf.binding.BindingFactoryManager
> ,org.a
> pache.cxf.transport.DestinationFactoryManager,org.apache.cxf.transport.Con
> duitIn
> itiatorManager,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseM
> anager
> ,org.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.Bus
> LifeCy
> cleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.endpoint.
> Server
> LifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleManager,org.apache
> .cxf.t
> ransports.http.QueryHandlerRegistry,org.apache.cxf.endpoint.EndpointResolv
> erRegi
> stry,org.apache.cxf.headers.HeaderManager,org.apache.cxf.catalog.OASISCata
> logMan
> ager,org.apache.cxf.endpoint.ServiceContractResolverRegistry,org.apache.cx
> f.bind
> ing.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFacto
> ry,org
> .apache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.binding.xml
> .XMLBi
> ndingFactory,org.apache.cxf.jaxws.context.WebServiceContextResourceResolve
> r,org.
> apache.cxf.jaxws.context.WebServiceContextImpl,org.apache.cxf.transport.ht
> tp.pol
> icy.HTTPClientAssertionBuilder,org.apache.cxf.transport.http.policy.HTTPSe
> rverAs
> sertionBuilder,org.apache.cxf.transport.http.policy.NoOpPolicyInterceptorP
> rovide
> r,org.apache.cxf.transport.http.ClientOnlyHTTPTransportFactory,org.apache.
> cxf.tr
> ansport.http_jetty.JettyHTTPTransportFactory,org.apache.cxf.ws.addressing.
> policy
> .AddressingAssertionBuilder,org.apache.cxf.ws.addressing.policy.Addressing
> Policy
> InterceptorProvider,org.apache.cxf.ws.addressing.policy.UsingAddressingAss
> ertion Builder]; parent:
> org.springframework.beans.factory.support.DefaultListableBeanF
> act...@b40ec4
> 4446 [main] INFO  org.apache.cxf.transport.servlet.AbstractCXFServlet  -
> Replace
> d the http destination factory with servlet transport factory
> 2010-10-10 18:54:09.023:INFO::Extract
> file:/C:/Development/servers/jetty-6.1.25/
> webapps/cometd.war to
> C:\Users\A06807~1.HNC\AppData\Local\Temp\Jetty_0_0_0_0_808
> 0_cometd.war__cometd__.t2qfkl\webapp
> 2010-10-10 18:54:51.212:WARN::Unknown realm: Test JAAS Realm
> 2010-10-10 18:54:51.280:INFO::Opened
> C:\Development\servers\jetty-6.1.25\logs\20
> 10_10_11.request.log
> 2010-10-10 18:54:51.298:INFO::Started [email protected]:8080
> 105650 [13783...@qtp-14613018-4] WARN
> org.apache.cxf.transport.servlet.ServletC
> ontroller  - Can't find the request for
> http://localhost:8080/channel/comm/'s Ob
> server
> 
> Any help would be very beneficial.  Not sure what I am doing wrong to route
> the request I make through SoapUI to the service endpoint.  I did have an
> example that I wrote that worked before doing the same steps.
> 
> Thanks for your help,
> 
> Jay

-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog

Reply via email to