You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "Ridgway, Jamie Mr CONT USAAC" <JA...@USAAC.ARMY.MIL> on 2007/06/21 19:07:55 UTC

[U] No Service found

UNCLASSIFIED////


I have finally convinced both Glassfish and Weblogic 9.2 to deploy my
service. It was ugly how I did it but it worked.

Now when I try to access the wsdl  using
http://localhost:8080/cxf-test/gfs?wsdl  I get a page back displaying
"No service found".  The log files show where the request is being
processed by the ServletController but has a warning saying : Can't find
the the request for http://localhost:8080/cxf-test/gfs's Observer  (The
message does have "the the" in it).

Can anyone enlighten me?

Thanks,
Jamie
UNCLASSIFIED////

Re: [U] RE: No Service found

Posted by Willem Jiang <ni...@iona.com>.
OK,
The exception was thrown from the jaxb, so please check the JAXB jars in 
you class path.
Are you using JDK 1.6 ? Current CXF just use JAXB 2.0.5.

BTW
Please try CXF 2.0.1 or the latest snap shot , there are lots of bug 
fixings beyond the CXF 2.0.

Willem.
FrankieHuang wrote:
> Hi Willem,
>   
> 1. My war name is "website2.war";
> 2. My CXF version is 2.0-incubator. I use maven2 as my build tool.
> 3. I just following the "Writing a service with Spring" in How-Tos, wrote
> service code, declared service bean in beans.xml and wrote CXFServlet and
> let it load-on-startup at web.xml. And then put the war file to Tomcat 6.0's
> webapps.
>
>   I found an "Severe" error in localhost.2007-08-31.log of tomcat:
> ---------------------------------------------------------------------------------
> Severe: StandardWrapper.Throwable
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'CollectiveServices': Invocation of init method failed; nested
> exception is org.apache.cxf.service.factory.ServiceConstructionException
> Caused by: org.apache.cxf.service.factory.ServiceConstructionException
> 	at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:269)
> 	at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:220)
> 	at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:248)
> 	at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:136)
> 	at
> org.apache.cxf.frontend.AbstractEndpointFactory.createEndpoint(AbstractEndpointFactory.java:83)
> 	at
> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:89)
> 	at
> org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:142)
> 	at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:277)
> 	at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:223)
> 	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:175)
> 	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:329)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1160)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1122)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:429)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)
> 	at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
> 	at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:273)
> 	at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)
> 	at
> org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
> 	at
> org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:308)
> 	at
> org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:252)
> 	at
> org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:221)
> 	at
> org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:115)
> 	at javax.servlet.GenericServlet.init(GenericServlet.java:212)
> 	at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
> 	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
> 	at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044)
> 	at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
> 	at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
> 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
> 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
> 	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
> 	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
> 	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
> 	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
> 	at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
> 	at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)
> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> 	at org.apache.catalina.core.StandardService.start(StandardService.java:448)
> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Caused by: javax.xml.bind.JAXBException: property
> "com.sun.xml.bind.defaultNamespaceRemap" is not supported
> 	at
> com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:52)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
> 	at javax.xml.bind.ContextFinder.find(ContextFinder.java:381)
> 	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
> 	at
> org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContext(JAXBDataBinding.java:397)
> 	at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:267)
> 	... 56 more
> 2007-8-31 16:10:42 org.apache.catalina.core.StandardContext loadOnStartup
> Severe: Servlet /website2 threw load() exception
> javax.xml.bind.JAXBException: property
> "com.sun.xml.bind.defaultNamespaceRemap" is not supported
> 	at
> com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:52)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
> 	at javax.xml.bind.ContextFinder.find(ContextFinder.java:381)
> 	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
> 	at
> org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContext(JAXBDataBinding.java:397)
> 	at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:267)
> 	at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:220)
> 	at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:248)
> 	at
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:136)
> 	at
> org.apache.cxf.frontend.AbstractEndpointFactory.createEndpoint(AbstractEndpointFactory.java:83)
> 	at
> org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:89)
> 	at
> org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:142)
> 	at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:277)
> 	at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:223)
> 	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:175)
> 	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:329)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1160)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1122)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085)
> 	at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:429)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)
> 	at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)
> 	at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
> 	at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:273)
> 	at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)
> 	at
> org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
> 	at
> org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:308)
> 	at
> org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:252)
> 	at
> org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:221)
> 	at
> org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:115)
> 	at javax.servlet.GenericServlet.init(GenericServlet.java:212)
> 	at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
> 	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
> 	at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044)
> 	at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
> 	at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
> 	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
> 	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
> 	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
> 	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
> 	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
> 	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
> 	at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
> 	at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)
> 	at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
> 	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
> 	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
> 	at org.apache.catalina.core.StandardService.start(StandardService.java:448)
> 	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
> 	at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
> 	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> -----------------------------------------------------------------------------------------------------
>
>   I ignored it just now.
>
>   thank you very much.
>
> Frankie
>   

Re: [U] RE: No Service found

Posted by FrankieHuang <hu...@hiany.com>.
Hi Willem,
  
1. My war name is "website2.war";
2. My CXF version is 2.0-incubator. I use maven2 as my build tool.
3. I just following the "Writing a service with Spring" in How-Tos, wrote
service code, declared service bean in beans.xml and wrote CXFServlet and
let it load-on-startup at web.xml. And then put the war file to Tomcat 6.0's
webapps.

  I found an "Severe" error in localhost.2007-08-31.log of tomcat:
---------------------------------------------------------------------------------
Severe: StandardWrapper.Throwable
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'CollectiveServices': Invocation of init method failed; nested
exception is org.apache.cxf.service.factory.ServiceConstructionException
Caused by: org.apache.cxf.service.factory.ServiceConstructionException
	at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:269)
	at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:220)
	at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:248)
	at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:136)
	at
org.apache.cxf.frontend.AbstractEndpointFactory.createEndpoint(AbstractEndpointFactory.java:83)
	at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:89)
	at
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:142)
	at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:277)
	at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:223)
	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:175)
	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:329)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1160)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1122)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:429)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:273)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)
	at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
	at
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:308)
	at
org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:252)
	at
org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:221)
	at
org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:115)
	at javax.servlet.GenericServlet.init(GenericServlet.java:212)
	at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
	at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at org.apache.catalina.core.StandardService.start(StandardService.java:448)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: javax.xml.bind.JAXBException: property
"com.sun.xml.bind.defaultNamespaceRemap" is not supported
	at
com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:52)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
	at javax.xml.bind.ContextFinder.find(ContextFinder.java:381)
	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
	at
org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContext(JAXBDataBinding.java:397)
	at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:267)
	... 56 more
2007-8-31 16:10:42 org.apache.catalina.core.StandardContext loadOnStartup
Severe: Servlet /website2 threw load() exception
javax.xml.bind.JAXBException: property
"com.sun.xml.bind.defaultNamespaceRemap" is not supported
	at
com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:52)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
	at javax.xml.bind.ContextFinder.find(ContextFinder.java:381)
	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
	at
org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContext(JAXBDataBinding.java:397)
	at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:267)
	at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:220)
	at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:248)
	at
org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:136)
	at
org.apache.cxf.frontend.AbstractEndpointFactory.createEndpoint(AbstractEndpointFactory.java:83)
	at
org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:89)
	at
org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:142)
	at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:277)
	at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:223)
	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:175)
	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:329)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1160)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1122)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1085)
	at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:429)
	at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:250)
	at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:247)
	at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:161)
	at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:273)
	at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:346)
	at
org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:156)
	at
org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:308)
	at
org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:252)
	at
org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:221)
	at
org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:115)
	at javax.servlet.GenericServlet.init(GenericServlet.java:212)
	at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
	at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
	at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4044)
	at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
	at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
	at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
	at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)
	at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
	at org.apache.catalina.core.StandardService.start(StandardService.java:448)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
	at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
-----------------------------------------------------------------------------------------------------

  I ignored it just now.

  thank you very much.

Frankie
-- 
View this message in context: http://www.nabble.com/-U--No-Service-found-tf3960093.html#a12422552
Sent from the cxf-user mailing list archive at Nabble.com.


Re: [U] RE: No Service found

Posted by Willem Jiang <ni...@iona.com>.
Hi Frankie,

It just looks like there is no observer of  
"http://localhost/website2/ws/HelloWorld",
No I can't figure out the reason of this issue, the configuration is right.

Please check the below things:
1. Does your war name  be " website2.war "?
2. Can you tell the version number of the CXF that you used? I
3. How do you publish the service? Did you just do like the wiki said?


Willem.



 
FrankieHuang wrote:
> Hi Willem,
>
>    I got the "No service was found." at url
> "http://localhost/website2/ws/HelloWorld/services" and
> "http://localhost/website2/ws/services".
>    and I try to access this service via a client code, I got a "Fault":
> ---------------------------------------------------------------------------------------
> org.apache.cxf.interceptor.Fault: Could not send Message.
> 	at
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
> 	at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:206)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:253)
> 	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:204)
> 	at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
> 	at org.apache.cxf.frontend.ClientProxy.invoke(ClientProxy.java:68)
> 	at $Proxy14.sayHi(Unknown Source)
> 	at test.ws.ClientTest.testSayHiWithSpringConfig(ClientTest.java:31)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
> 	at
> org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
> 	at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
> 	at
> org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
> 	at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
> 	at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
> 	at
> org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
> 	at
> org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
> 	at
> org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
> 	at
> org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
> 	at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
> 	at
> org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
> 	at
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
> 	at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> 	at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> 	at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> 	at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
> Caused by: java.io.IOException: Not Found
> 	at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1781)
> 	at
> org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1698)
> 	at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
> 	at
> org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
> 	... 29 more
>
> -----------------------------------------------------------------------------------------------
>
>    and server side tomcat console a warnning:
> ----------------------------------------------------------------------------------------
> 2007-8-31 14:02:23 org.apache.cxf.transport.servlet.ServletController invoke
> WARN: Can't find the the request for
> http://localhost/website2/ws/HelloWorld's Observer
> ----------------------------------------------------------------------------------------
>
>    My client test code:
> ----------------------------------------------------------------------------------------
> package test.ws;
>
> import static org.junit.Assert.assertEquals;
>
> import org.junit.AfterClass;
> import org.junit.BeforeClass;
> import org.junit.Test;
> import org.springframework.context.support.ClassPathXmlApplicationContext;
>
> import com.hiany.accounts.ws.HelloWorld;
>   
> public final class ClientTest {   
>   
>     private static ClassPathXmlApplicationContext context;   
>   
>     @BeforeClass  
>     public static void beforeClass() {   
>         context = new ClassPathXmlApplicationContext(   
>                 new String[] { "client-beans.xml" });   
>     }   
>   
>     @AfterClass  
>     public static void afterClass() {   
>         context = null;   
>     }   
>   
>     @Test  
>     public void testSayHiWithSpringConfig() throws Exception {   
>         HelloWorld client = (HelloWorld) context.getBean("client");   
>   
>         String response = client.sayHi("Joe");   
>         assertEquals("Hello Joe", response);   
>     }
> } 
> -----------------------------------------------------------------------------------------------
>    
>    the client-beans.xml:
> ----------------------------------------------------------------------------------------------
> <beans xmlns="http://www.springframework.org/schema/beans"  
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
>     xmlns:jaxws="http://cxf.apache.org/jaxws"  
>     xsi:schemaLocation="   
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd   
> http://cxf.apache.org/jaxws http://cxf.apache.org/schema/jaxws.xsd">  
>   
>     <bean id="aegisBean"  
>         class="org.apache.cxf.aegis.databinding.AegisDatabinding" />  
>            
>     <bean id="serviceFactoryBean"
> class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean">  
>         <property name="dataBinding" ref="aegisBean" />  
>     </bean>  
>   
>     <bean id="client" class="com.hiany.accounts.ws.HelloWorld"  
>         factory-bean="clientFactory" factory-method="create" />  
>   
>     <bean id="clientFactory"  
>         class="org.apache.cxf.frontend.ClientProxyFactoryBean">  
>         <property name="serviceFactory" ref="serviceFactoryBean" />  
>         <property name="serviceClass"  
>             value="com.hiany.accounts.ws.HelloWorld" />  
>         <property name="address"  
>             value="http://localhost/website2/ws/HelloWorld" />  
>     </bean>  
>   
> </beans>
> ------------------------------------------------------------------------------------------------
>
>   Thanks again!
>   

Re: [U] RE: No Service found

Posted by FrankieHuang <hu...@hiany.com>.
Hi Willem,

   I got the "No service was found." at url
"http://localhost/website2/ws/HelloWorld/services" and
"http://localhost/website2/ws/services".
   and I try to access this service via a client code, I got a "Fault":
---------------------------------------------------------------------------------------
org.apache.cxf.interceptor.Fault: Could not send Message.
	at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:64)
	at
org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:206)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:253)
	at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:204)
	at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:73)
	at org.apache.cxf.frontend.ClientProxy.invoke(ClientProxy.java:68)
	at $Proxy14.sayHi(Unknown Source)
	at test.ws.ClientTest.testSayHiWithSpringConfig(ClientTest.java:31)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
	at
org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
	at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
	at
org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
	at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
	at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
	at
org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
	at
org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
	at
org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
	at
org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
	at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
	at
org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
	at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38)
	at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
	at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: java.io.IOException: Not Found
	at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1781)
	at
org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1698)
	at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:66)
	at
org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
	... 29 more

-----------------------------------------------------------------------------------------------

   and server side tomcat console a warnning:
----------------------------------------------------------------------------------------
2007-8-31 14:02:23 org.apache.cxf.transport.servlet.ServletController invoke
WARN: Can't find the the request for
http://localhost/website2/ws/HelloWorld's Observer
----------------------------------------------------------------------------------------

   My client test code:
----------------------------------------------------------------------------------------
package test.ws;

import static org.junit.Assert.assertEquals;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.hiany.accounts.ws.HelloWorld;
  
public final class ClientTest {   
  
    private static ClassPathXmlApplicationContext context;   
  
    @BeforeClass  
    public static void beforeClass() {   
        context = new ClassPathXmlApplicationContext(   
                new String[] { "client-beans.xml" });   
    }   
  
    @AfterClass  
    public static void afterClass() {   
        context = null;   
    }   
  
    @Test  
    public void testSayHiWithSpringConfig() throws Exception {   
        HelloWorld client = (HelloWorld) context.getBean("client");   
  
        String response = client.sayHi("Joe");   
        assertEquals("Hello Joe", response);   
    }
} 
-----------------------------------------------------------------------------------------------
   
   the client-beans.xml:
----------------------------------------------------------------------------------------------
<beans xmlns="http://www.springframework.org/schema/beans"  
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
    xmlns:jaxws="http://cxf.apache.org/jaxws"  
    xsi:schemaLocation="   
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd   
http://cxf.apache.org/jaxws http://cxf.apache.org/schema/jaxws.xsd">  
  
    <bean id="aegisBean"  
        class="org.apache.cxf.aegis.databinding.AegisDatabinding" />  
           
    <bean id="serviceFactoryBean"
class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean">  
        <property name="dataBinding" ref="aegisBean" />  
    </bean>  
  
    <bean id="client" class="com.hiany.accounts.ws.HelloWorld"  
        factory-bean="clientFactory" factory-method="create" />  
  
    <bean id="clientFactory"  
        class="org.apache.cxf.frontend.ClientProxyFactoryBean">  
        <property name="serviceFactory" ref="serviceFactoryBean" />  
        <property name="serviceClass"  
            value="com.hiany.accounts.ws.HelloWorld" />  
        <property name="address"  
            value="http://localhost/website2/ws/HelloWorld" />  
    </bean>  
  
</beans>
------------------------------------------------------------------------------------------------

  Thanks again!
-- 
View this message in context: http://www.nabble.com/-U--No-Service-found-tf3960093.html#a12421162
Sent from the cxf-user mailing list archive at Nabble.com.


Re: [U] RE: No Service found

Posted by Willem Jiang <ni...@iona.com>.
Hi Frankie

Current CXF does not support to get the service list with the 
"?serviceList",
I think you can get the service list with this url

http://localhost/website2/ws/HelloWorld/services


Willem.


FrankieHuang wrote:
> Hi Willem2,
>   I got the similar question, but can not resolve it accordding at the
> answer above.
>
>   I saw the info in Tomcat 6.0 console:
> 2007-8-31 12:10:32
> org.apache.cxf.service.factory.ReflectionServiceFactoryBean
> buildServiceFromClass
> Info: Creating Service {http://ws.accounts.hiany.com/}HelloWorldImplService
> from class com.hiany.accounts.ws.HelloWorldImpl
>
>   But when I open browser at "http://localhost/website2/ws/?serviceList", I
> got a "No service was found".
>
>   I wrote a interface HelloWorld.java and a class HelloWorldImpl.java. And
> my cxf-servlet.xml
> =========================================================================
> <beans xmlns="http://www.springframework.org/schema/beans"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xmlns:jaxws="http://cxf.apache.org/jaxws"
> 	xsi:schemaLocation="http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans.xsd
> http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"
>   
> 	<!-- Web Service -->
> 	<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" />
>     <!-- 
>     <bean id="jaxWsServiceFactoryBean" 
>     		class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean">  
>         <property name="wrapped" value="true" />  
>         <property name="dataBinding" ref="aegisBean" />  
>     </bean>  
>     <bean id="aegisBean"
> class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
>     -->
>     
>     <jaxws:endpoint id="CollectiveServices" 
> 	    	implementor="com.hiany.accounts.ws.HelloWorldImpl" 
> 	    	address="/HelloWorld"
> 	    	>
>     </jaxws:endpoint>
> </beans>
> ===========================================================================
>
> my web.xml:
> ===========================================================================
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns="http://java.sun.com/xml/ns/j2ee"
> 	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> 	xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"
> 	version="2.5">
> ......
>     <servlet>  
>         <servlet-name>CXFServlet</servlet-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>/ws/*</url-pattern>  
>     </servlet-mapping>
> .......
> </web-app>
> ============================================================================
>
> Thanks!
>   

Re: [U] RE: No Service found

Posted by FrankieHuang <hu...@hiany.com>.
Hi Willem2,
  I got the similar question, but can not resolve it accordding at the
answer above.

  I saw the info in Tomcat 6.0 console:
2007-8-31 12:10:32
org.apache.cxf.service.factory.ReflectionServiceFactoryBean
buildServiceFromClass
Info: Creating Service {http://ws.accounts.hiany.com/}HelloWorldImplService
from class com.hiany.accounts.ws.HelloWorldImpl

  But when I open browser at "http://localhost/website2/ws/?serviceList", I
got a "No service was found".

  I wrote a interface HelloWorld.java and a class HelloWorldImpl.java. And
my cxf-servlet.xml
=========================================================================
<beans xmlns="http://www.springframework.org/schema/beans"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns:jaxws="http://cxf.apache.org/jaxws"
	xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd"
>
	<!-- Web Service -->
	<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" />
    <!-- 
    <bean id="jaxWsServiceFactoryBean" 
    		class="org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean">  
        <property name="wrapped" value="true" />  
        <property name="dataBinding" ref="aegisBean" />  
    </bean>  
    <bean id="aegisBean"
class="org.apache.cxf.aegis.databinding.AegisDatabinding" />
    -->
    
    <jaxws:endpoint id="CollectiveServices" 
	    	implementor="com.hiany.accounts.ws.HelloWorldImpl" 
	    	address="/HelloWorld"
	    	>
    </jaxws:endpoint>
</beans>
===========================================================================

my web.xml:
===========================================================================
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"
	version="2.5">
......
    <servlet>  
        <servlet-name>CXFServlet</servlet-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>/ws/*</url-pattern>  
    </servlet-mapping>
.......
</web-app>
============================================================================

Thanks!
-- 
View this message in context: http://www.nabble.com/-U--No-Service-found-tf3960093.html#a12420583
Sent from the cxf-user mailing list archive at Nabble.com.


Re: [U] RE: No Service found

Posted by Willem Jiang <ni...@iona.com>.
Hi Jamie,

I think I found the case of your issue.
You can't specify the address as the whole URL when you use servlet 
transport.

Because CXF servlet can't get the war's name and host name and port name,
so it just use the relative context path to build the endpoint address info.
And this address info will be replaced according to the request url.

Please change the address in the  beans.xml from

address="http://localhost:7001/cxf-test/gfs"

  to

address="/gfs"


And you can access the service wsdl with this url

"http://localhost:7001/cxf-test/gfs?wsdl"


Cheers,

Willem.


Ridgway, Jamie Mr CONT USAAC wrote:
> UNCLASSIFIED////
>
>
> Yes, it's toward the bottom of the attached log fragment below. Looking
> through this again, I now see a message complaining about not being able
> to find a cxf.xml. Did I miss a step?
>
> Also, I couldn't find way to successfully supply the wsdlLocation
> property using /WEB-INF/wsdl/gfs.wsdl. Instead I had to drop it on a web
> server I have running and supply the URL where it could be located.
> (This is the part in the first post I mentioned that was ugly.) I have
> tried every way I can see for it to be set and it always fails to
> deploy. 
>
>
> Thanks again,
> Jamie
>
> Here's the cxf-servlet.xml (I called it beans.xml based on one of the
> examples I saw) :
>
> <?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:jaxws="http://cxf.apache.org/jaxws"
> 	xsi:schemaLocation="
> http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.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="gfs" 
> 	
> implementor="mil.army.usaac.services.genericformsservice.GenericFormsSer
> vicePortTypeImpl" 
> 	  address="http://localhost:7001/cxf-test/gfs"
> 	  wsdlLocation="http://192.168.250.247/schemas/wsdl/gfs.wsdl" />
> 	  
> </beans>
>
> ---------
>
> Here's the web.xml :
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!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>
>   <display-name>CXF Test Provider Webapp</display-name>
> 	<context-param>
> 		<param-name>contextConfigLocation</param-name>
> 		<param-value>WEB-INF/beans.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>
>
> --------
>
> Here's the relevant section of my log file:
>
>
> [#|2007-06-21T12:49:31.279-0400|INFO|sun-appserver9.1|javax.enterprise.s
> ystem.tools.deployment|_ThreadID=14;_ThreadName=Timer-4;|[AutoDeploy]
> Selecting file
> /home/ridgwayjw/devapps/glassfish/domains/domain1/autodeploy/cxf-test-ea
> r-1.0-SNAPSHOT.ear for autodeployment.|#]
>
> [#|2007-06-21T12:49:32.074-0400|INFO|sun-appserver9.1|javax.enterprise.s
> ystem.tools.deployment|_ThreadID=14;_ThreadName=Timer-4;|deployed with
> moduleid = cxf-test-ear-1.0-SNAPSHOT|#]
>
> [#|2007-06-21T12:49:32.306-0400|INFO|sun-appserver9.1|javax.enterprise.s
> ystem.container.web|_ThreadID=14;_ThreadName=Timer-4;|PWC1412:
> WebModule[/cxf-test] ServletContext.log():Initializing Spring root
> WebApplicationContext|#]
>
> [#|2007-06-21T12:49:32.307-0400|INFO|sun-appserver9.1|org.springframewor
> k.web.context.ContextLoader|_ThreadID=14;_ThreadName=Timer-4;|Root
> WebApplicationContext: initialization started|#]
>
> [#|2007-06-21T12:49:32.406-0400|INFO|sun-appserver9.1|org.springframewor
> k.web.context.support.XmlWebApplicationContext|_ThreadID=14;_ThreadName=
> Timer-4;|Refreshing
> org.springframework.web.context.support.XmlWebApplicationContext@bee95a:
> display name [Root WebApplicationContext]; startup date [Thu Jun 21
> 12:49:32 EDT 2007]; root of context hierarchy|#]
>
> [#|2007-06-21T12:49:32.627-0400|INFO|sun-appserver9.1|org.springframewor
> k.beans.factory.xml.XmlBeanDefinitionReader|_ThreadID=14;_ThreadName=Tim
> er-4;|Loading XML bean definitions from ServletContext resource
> [/WEB-INF/beans.xml]|#]
>
> [#|2007-06-21T12:49:32.749-0400|INFO|sun-appserver9.1|org.springframewor
> k.beans.factory.xml.XmlBeanDefinitionReader|_ThreadID=14;_ThreadName=Tim
> er-4;|Loading XML bean definitions from class path resource
> [META-INF/cxf/cxf.xml]|#]
>
> [#|2007-06-21T12:49:32.800-0400|INFO|sun-appserver9.1|org.springframewor
> k.beans.factory.xml.XmlBeanDefinitionReader|_ThreadID=14;_ThreadName=Tim
> er-4;|Loading XML bean definitions from class path resource
> [META-INF/cxf/cxf-extension-soap.xml]|#]
>
> [#|2007-06-21T12:49:32.821-0400|INFO|sun-appserver9.1|org.springframewor
> k.beans.factory.xml.XmlBeanDefinitionReader|_ThreadID=14;_ThreadName=Tim
> er-4;|Loading XML bean definitions from class path resource
> [META-INF/cxf/cxf-servlet.xml]|#]
>
> [#|2007-06-21T12:49:32.858-0400|INFO|sun-appserver9.1|org.springframewor
> k.web.context.support.XmlWebApplicationContext|_ThreadID=14;_ThreadName=
> Timer-4;|Bean factory for application context
> [org.springframework.web.context.support.XmlWebApplicationContext@bee95a
> ]:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@32b
> 92c|#]
>
> [#|2007-06-21T12:49:33.011-0400|INFO|sun-appserver9.1|org.springframewor
> k.web.context.support.XmlWebApplicationContext|_ThreadID=14;_ThreadName=
> Timer-4;|Bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' is not
> eligible for getting processed by all BeanPostProcessors (for example:
> not eligible for auto-proxying)|#]
>
> [#|2007-06-21T12:49:33.028-0400|INFO|sun-appserver9.1|org.springframewor
> k.web.context.support.XmlWebApplicationContext|_ThreadID=14;_ThreadName=
> Timer-4;|Bean 'cxf' is not eligible for getting processed by all
> BeanPostProcessors (for example: not eligible for auto-proxying)|#]
>
> [#|2007-06-21T12:49:33.030-0400|INFO|sun-appserver9.1|org.springframewor
> k.web.context.support.XmlWebApplicationContext|_ThreadID=14;_ThreadName=
> Timer-4;|Bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor' is
> not eligible for getting processed by all BeanPostProcessors (for
> example: not eligible for auto-proxying)|#]
>
> [#|2007-06-21T12:49:33.063-0400|INFO|sun-appserver9.1|org.springframewor
> k.beans.factory.support.DefaultListableBeanFactory|_ThreadID=14;_ThreadN
> ame=Timer-4;|Pre-instantiating singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@32b
> 92c: defining beans
> [cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bu
> s.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManag
> er,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport
> .DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorMana
> ger,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,or
> g.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusL
> ifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.en
> dpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleMan
> ager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.
> endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,o
> rg.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.binding.soap.So
> apBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.ap
> ache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.transport.se
> rvlet.ServletTransportFactory,gfs]; root of factory hierarchy|#]
>
> [#|2007-06-21T12:49:33.855-0400|INFO|sun-appserver9.1|org.apache.cxf.ser
> vice.factory.ReflectionServiceFactoryBean|_ThreadID=14;_ThreadName=Timer
> -4;|Creating Service
> {http://services.usaac.army.mil/GenericFormsService/}GenericFormsService
> from WSDL: http://192.168.250.247/schemas/wsdl/gfs.wsdl|#]
>
> [#|2007-06-21T12:49:35.159-0400|INFO|sun-appserver9.1|org.springframewor
> k.web.context.ContextLoader|_ThreadID=14;_ThreadName=Timer-4;|Root
> WebApplicationContext: initialization completed in 2852 ms|#]
>
> [#|2007-06-21T12:49:35.174-0400|INFO|sun-appserver9.1|org.apache.cxf.bus
> .spring.BusApplicationContext|_ThreadID=14;_ThreadName=Timer-4;|Refreshi
> ng org.apache.cxf.bus.spring.BusApplicationContext@600ee8: display name
> [org.apache.cxf.bus.spring.BusApplicationContext@600ee8]; startup date
> [Thu Jun 21 12:49:35 EDT 2007]; parent:
> org.springframework.web.context.support.XmlWebApplicationContext@bee95a|
> #]
>
> [#|2007-06-21T12:49:35.195-0400|INFO|sun-appserver9.1|org.apache.cxf.bus
> .spring.BusApplicationContext|_ThreadID=14;_ThreadName=Timer-4;|Could
> not find the configuration file cxf.xml on the classpath.|#]
>
> [#|2007-06-21T12:49:35.196-0400|INFO|sun-appserver9.1|org.apache.cxf.bus
> .spring.BusApplicationContext|_ThreadID=14;_ThreadName=Timer-4;|Bean
> factory for application context
> [org.apache.cxf.bus.spring.BusApplicationContext@600ee8]:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@982
> 12|#]
>
> [#|2007-06-21T12:49:35.196-0400|INFO|sun-appserver9.1|org.springframewor
> k.beans.factory.support.DefaultListableBeanFactory|_ThreadID=14;_ThreadN
> ame=Timer-4;|Pre-instantiating singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@982
> 12: defining beans []; parent:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@32b
> 92c|#]
>
> [#|2007-06-21T12:49:35.228-0400|INFO|sun-appserver9.1|javax.enterprise.s
> ystem.tools.deployment|_ThreadID=14;_ThreadName=Timer-4;|[AutoDeploy]
> Successfully autodeployed :
> /home/ridgwayjw/devapps/glassfish/domains/domain1/autodeploy/cxf-test-ea
> r-1.0-SNAPSHOT.ear.|#]
>
> [#|2007-06-21T12:51:45.394-0400|WARNING|sun-appserver9.1|org.apache.cxf.
> transport.servlet.ServletController|_ThreadID=15;_ThreadName=httpSSLWork
> erThread-8080-0;_RequestID=7b86c146-0d24-4e28-b398-022ecca2bfab;|Can't
> find the the request for http://localhost:8080/cxf-test/gfs's Observer
> |#]
>
>
> -----Original Message-----
> From: Willem Jiang [mailto:ning.jiang@iona.com]
> Sent: Thursday, June 21, 2007 11:09 PM
> To: cxf-user@incubator.apache.org
> Subject: Re: [U] No Service found
>
> Hi Jamie,
>
> Can you find the log likes this
> "INFO: Creating Service
> {http://apache.org/hello_world_soap_http}SOAPService from WSDL: 
> WEB-INF/wsdl/hello_world.wsdl" ?
>
> Can you show me the cxf_servlet.xml and web.xml configuration of your
> sevice?
>
> cxf_servlet.xml 's  <jaxws:address="/greeter"/> web.xml's
> <url-pattern>/services/*</url-pattern>
>
> They relate to your sevice's wsdl  query url.
>
> Cheers,
>
> Willem.
>
> Ridgway, Jamie Mr CONT USAAC wrote:
>   
>> UNCLASSIFIED////
>>
>>
>> I have finally convinced both Glassfish and Weblogic 9.2 to deploy my 
>> service. It was ugly how I did it but it worked.
>>
>> Now when I try to access the wsdl  using 
>> http://localhost:8080/cxf-test/gfs?wsdl  I get a page back displaying 
>> "No service found".  The log files show where the request is being 
>> processed by the ServletController but has a warning saying : Can't 
>> find the the request for http://localhost:8080/cxf-test/gfs's Observer
>>     
>
>   
>> (The message does have "the the" in it).
>>
>> Can anyone enlighten me?
>>
>> Thanks,
>> Jamie
>> UNCLASSIFIED////
>>
>>
>>   
>>     
>
> UNCLASSIFIED////
>
>
>   


[U] RE: No Service found

Posted by "Ridgway, Jamie Mr CONT USAAC" <JA...@USAAC.ARMY.MIL>.
UNCLASSIFIED////


Yes, it's toward the bottom of the attached log fragment below. Looking
through this again, I now see a message complaining about not being able
to find a cxf.xml. Did I miss a step?

Also, I couldn't find way to successfully supply the wsdlLocation
property using /WEB-INF/wsdl/gfs.wsdl. Instead I had to drop it on a web
server I have running and supply the URL where it could be located.
(This is the part in the first post I mentioned that was ugly.) I have
tried every way I can see for it to be set and it always fails to
deploy. 


Thanks again,
Jamie

Here's the cxf-servlet.xml (I called it beans.xml based on one of the
examples I saw) :

<?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:jaxws="http://cxf.apache.org/jaxws"
	xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.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="gfs" 
	
implementor="mil.army.usaac.services.genericformsservice.GenericFormsSer
vicePortTypeImpl" 
	  address="http://localhost:7001/cxf-test/gfs"
	  wsdlLocation="http://192.168.250.247/schemas/wsdl/gfs.wsdl" />
	  
</beans>

---------

Here's the web.xml :

<?xml version="1.0" encoding="UTF-8"?>
<!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>
  <display-name>CXF Test Provider Webapp</display-name>
	<context-param>
		<param-name>contextConfigLocation</param-name>
		<param-value>WEB-INF/beans.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>

--------

Here's the relevant section of my log file:


[#|2007-06-21T12:49:31.279-0400|INFO|sun-appserver9.1|javax.enterprise.s
ystem.tools.deployment|_ThreadID=14;_ThreadName=Timer-4;|[AutoDeploy]
Selecting file
/home/ridgwayjw/devapps/glassfish/domains/domain1/autodeploy/cxf-test-ea
r-1.0-SNAPSHOT.ear for autodeployment.|#]

[#|2007-06-21T12:49:32.074-0400|INFO|sun-appserver9.1|javax.enterprise.s
ystem.tools.deployment|_ThreadID=14;_ThreadName=Timer-4;|deployed with
moduleid = cxf-test-ear-1.0-SNAPSHOT|#]

[#|2007-06-21T12:49:32.306-0400|INFO|sun-appserver9.1|javax.enterprise.s
ystem.container.web|_ThreadID=14;_ThreadName=Timer-4;|PWC1412:
WebModule[/cxf-test] ServletContext.log():Initializing Spring root
WebApplicationContext|#]

[#|2007-06-21T12:49:32.307-0400|INFO|sun-appserver9.1|org.springframewor
k.web.context.ContextLoader|_ThreadID=14;_ThreadName=Timer-4;|Root
WebApplicationContext: initialization started|#]

[#|2007-06-21T12:49:32.406-0400|INFO|sun-appserver9.1|org.springframewor
k.web.context.support.XmlWebApplicationContext|_ThreadID=14;_ThreadName=
Timer-4;|Refreshing
org.springframework.web.context.support.XmlWebApplicationContext@bee95a:
display name [Root WebApplicationContext]; startup date [Thu Jun 21
12:49:32 EDT 2007]; root of context hierarchy|#]

[#|2007-06-21T12:49:32.627-0400|INFO|sun-appserver9.1|org.springframewor
k.beans.factory.xml.XmlBeanDefinitionReader|_ThreadID=14;_ThreadName=Tim
er-4;|Loading XML bean definitions from ServletContext resource
[/WEB-INF/beans.xml]|#]

[#|2007-06-21T12:49:32.749-0400|INFO|sun-appserver9.1|org.springframewor
k.beans.factory.xml.XmlBeanDefinitionReader|_ThreadID=14;_ThreadName=Tim
er-4;|Loading XML bean definitions from class path resource
[META-INF/cxf/cxf.xml]|#]

[#|2007-06-21T12:49:32.800-0400|INFO|sun-appserver9.1|org.springframewor
k.beans.factory.xml.XmlBeanDefinitionReader|_ThreadID=14;_ThreadName=Tim
er-4;|Loading XML bean definitions from class path resource
[META-INF/cxf/cxf-extension-soap.xml]|#]

[#|2007-06-21T12:49:32.821-0400|INFO|sun-appserver9.1|org.springframewor
k.beans.factory.xml.XmlBeanDefinitionReader|_ThreadID=14;_ThreadName=Tim
er-4;|Loading XML bean definitions from class path resource
[META-INF/cxf/cxf-servlet.xml]|#]

[#|2007-06-21T12:49:32.858-0400|INFO|sun-appserver9.1|org.springframewor
k.web.context.support.XmlWebApplicationContext|_ThreadID=14;_ThreadName=
Timer-4;|Bean factory for application context
[org.springframework.web.context.support.XmlWebApplicationContext@bee95a
]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@32b
92c|#]

[#|2007-06-21T12:49:33.011-0400|INFO|sun-appserver9.1|org.springframewor
k.web.context.support.XmlWebApplicationContext|_ThreadID=14;_ThreadName=
Timer-4;|Bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' is not
eligible for getting processed by all BeanPostProcessors (for example:
not eligible for auto-proxying)|#]

[#|2007-06-21T12:49:33.028-0400|INFO|sun-appserver9.1|org.springframewor
k.web.context.support.XmlWebApplicationContext|_ThreadID=14;_ThreadName=
Timer-4;|Bean 'cxf' is not eligible for getting processed by all
BeanPostProcessors (for example: not eligible for auto-proxying)|#]

[#|2007-06-21T12:49:33.030-0400|INFO|sun-appserver9.1|org.springframewor
k.web.context.support.XmlWebApplicationContext|_ThreadID=14;_ThreadName=
Timer-4;|Bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor' is
not eligible for getting processed by all BeanPostProcessors (for
example: not eligible for auto-proxying)|#]

[#|2007-06-21T12:49:33.063-0400|INFO|sun-appserver9.1|org.springframewor
k.beans.factory.support.DefaultListableBeanFactory|_ThreadID=14;_ThreadN
ame=Timer-4;|Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@32b
92c: defining beans
[cxf,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bu
s.spring.BusExtensionPostProcessor,org.apache.cxf.resource.ResourceManag
er,org.apache.cxf.binding.BindingFactoryManager,org.apache.cxf.transport
.DestinationFactoryManager,org.apache.cxf.transport.ConduitInitiatorMana
ger,org.apache.cxf.wsdl.WSDLManager,org.apache.cxf.phase.PhaseManager,or
g.apache.cxf.workqueue.WorkQueueManager,org.apache.cxf.buslifecycle.BusL
ifeCycleManager,org.apache.cxf.endpoint.ServerRegistry,org.apache.cxf.en
dpoint.ServerLifeCycleManager,org.apache.cxf.endpoint.ClientLifeCycleMan
ager,org.apache.cxf.transports.http.QueryHandlerRegistry,org.apache.cxf.
endpoint.EndpointResolverRegistry,org.apache.cxf.headers.HeaderManager,o
rg.apache.cxf.catalog.OASISCatalogManager,org.apache.cxf.binding.soap.So
apBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.ap
ache.cxf.binding.soap.customEditorConfigurer,org.apache.cxf.transport.se
rvlet.ServletTransportFactory,gfs]; root of factory hierarchy|#]

[#|2007-06-21T12:49:33.855-0400|INFO|sun-appserver9.1|org.apache.cxf.ser
vice.factory.ReflectionServiceFactoryBean|_ThreadID=14;_ThreadName=Timer
-4;|Creating Service
{http://services.usaac.army.mil/GenericFormsService/}GenericFormsService
from WSDL: http://192.168.250.247/schemas/wsdl/gfs.wsdl|#]

[#|2007-06-21T12:49:35.159-0400|INFO|sun-appserver9.1|org.springframewor
k.web.context.ContextLoader|_ThreadID=14;_ThreadName=Timer-4;|Root
WebApplicationContext: initialization completed in 2852 ms|#]

[#|2007-06-21T12:49:35.174-0400|INFO|sun-appserver9.1|org.apache.cxf.bus
.spring.BusApplicationContext|_ThreadID=14;_ThreadName=Timer-4;|Refreshi
ng org.apache.cxf.bus.spring.BusApplicationContext@600ee8: display name
[org.apache.cxf.bus.spring.BusApplicationContext@600ee8]; startup date
[Thu Jun 21 12:49:35 EDT 2007]; parent:
org.springframework.web.context.support.XmlWebApplicationContext@bee95a|
#]

[#|2007-06-21T12:49:35.195-0400|INFO|sun-appserver9.1|org.apache.cxf.bus
.spring.BusApplicationContext|_ThreadID=14;_ThreadName=Timer-4;|Could
not find the configuration file cxf.xml on the classpath.|#]

[#|2007-06-21T12:49:35.196-0400|INFO|sun-appserver9.1|org.apache.cxf.bus
.spring.BusApplicationContext|_ThreadID=14;_ThreadName=Timer-4;|Bean
factory for application context
[org.apache.cxf.bus.spring.BusApplicationContext@600ee8]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@982
12|#]

[#|2007-06-21T12:49:35.196-0400|INFO|sun-appserver9.1|org.springframewor
k.beans.factory.support.DefaultListableBeanFactory|_ThreadID=14;_ThreadN
ame=Timer-4;|Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@982
12: defining beans []; parent:
org.springframework.beans.factory.support.DefaultListableBeanFactory@32b
92c|#]

[#|2007-06-21T12:49:35.228-0400|INFO|sun-appserver9.1|javax.enterprise.s
ystem.tools.deployment|_ThreadID=14;_ThreadName=Timer-4;|[AutoDeploy]
Successfully autodeployed :
/home/ridgwayjw/devapps/glassfish/domains/domain1/autodeploy/cxf-test-ea
r-1.0-SNAPSHOT.ear.|#]

[#|2007-06-21T12:51:45.394-0400|WARNING|sun-appserver9.1|org.apache.cxf.
transport.servlet.ServletController|_ThreadID=15;_ThreadName=httpSSLWork
erThread-8080-0;_RequestID=7b86c146-0d24-4e28-b398-022ecca2bfab;|Can't
find the the request for http://localhost:8080/cxf-test/gfs's Observer
|#]


-----Original Message-----
From: Willem Jiang [mailto:ning.jiang@iona.com]
Sent: Thursday, June 21, 2007 11:09 PM
To: cxf-user@incubator.apache.org
Subject: Re: [U] No Service found

Hi Jamie,

Can you find the log likes this
"INFO: Creating Service
{http://apache.org/hello_world_soap_http}SOAPService from WSDL: 
WEB-INF/wsdl/hello_world.wsdl" ?

Can you show me the cxf_servlet.xml and web.xml configuration of your
sevice?

cxf_servlet.xml 's  <jaxws:address="/greeter"/> web.xml's
<url-pattern>/services/*</url-pattern>

They relate to your sevice's wsdl  query url.

Cheers,

Willem.

Ridgway, Jamie Mr CONT USAAC wrote:
> UNCLASSIFIED////
>
>
> I have finally convinced both Glassfish and Weblogic 9.2 to deploy my 
> service. It was ugly how I did it but it worked.
>
> Now when I try to access the wsdl  using 
> http://localhost:8080/cxf-test/gfs?wsdl  I get a page back displaying 
> "No service found".  The log files show where the request is being 
> processed by the ServletController but has a warning saying : Can't 
> find the the request for http://localhost:8080/cxf-test/gfs's Observer

> (The message does have "the the" in it).
>
> Can anyone enlighten me?
>
> Thanks,
> Jamie
> UNCLASSIFIED////
>
>
>   

UNCLASSIFIED////

Re: [U] No Service found

Posted by Willem Jiang <ni...@iona.com>.
Hi Jamie,

Can you find the log likes this
"INFO: Creating Service 
{http://apache.org/hello_world_soap_http}SOAPService from WSDL: 
WEB-INF/wsdl/hello_world.wsdl" ?

Can you show me the cxf_servlet.xml and web.xml configuration of your 
sevice?

cxf_servlet.xml 's  <jaxws:address="/greeter"/>
web.xml's  <url-pattern>/services/*</url-pattern>

They relate to your sevice's wsdl  query url.

Cheers,

Willem.

Ridgway, Jamie Mr CONT USAAC wrote:
> UNCLASSIFIED////
>
>
> I have finally convinced both Glassfish and Weblogic 9.2 to deploy my
> service. It was ugly how I did it but it worked.
>
> Now when I try to access the wsdl  using
> http://localhost:8080/cxf-test/gfs?wsdl  I get a page back displaying
> "No service found".  The log files show where the request is being
> processed by the ServletController but has a warning saying : Can't find
> the the request for http://localhost:8080/cxf-test/gfs's Observer  (The
> message does have "the the" in it).
>
> Can anyone enlighten me?
>
> Thanks,
> Jamie
> UNCLASSIFIED////
>
>
>