You should see something like:

09-Jun-2011 22:14:37 org.apache.cxf.endpoint.ServerImpl initDestination
INFO: Setting the server's publish address to be /

Try also check the services list from the browser:
http://localhost:8080/jaxws/services

Cheers, Sergey

On Thu, Jun 9, 2011 at 7:01 PM, odyssey045 <[email protected]> wrote:
> The /jaxws happens to be the context root of the application.
>
> Not sure if this helps, but my simple java code goes something like this..
>
> @Path("/categoryservice")
> @Produces("application/xml")
> public class CategoryService {
>
>    CategoryDao categoryDAO = null;
>    public CategoryDao getCategoryDAO() {
>        return categoryDAO;
>    }
>    //injected with spring
>    public void setCategoryDAO(CategoryDao categoryDAO) {
>        this.categoryDAO = categoryDAO;
>    }
>
>
>    @GET
>    @Path("/category/{id}")
>    @Consumes("application/xml")
>    public Category getCategory(@PathParam("id") String id) {
>        System.out.println("The id to fetch is "+id);
>        Category cat = (Category)getCategoryDAO().getCategory(id);
>        return cat;
>    }
> ....
> ....
> /*<rest of the code continues> */
>
> And from my tomcat logs, when the app is started
>
> ..........
> ..........
> ...........
> INFO: Deploying web application archive jaxws.war
> Jun 9, 2011 10:37:58 PM org.springframework.web.context.ContextLoader
> initWebApplicationContext
> INFO: Root WebApplicationContext: initialization started
> Jun 9, 2011 10:37:58 PM
> org.springframework.context.support.AbstractApplicationContext
> prepareRefresh
> INFO: Refreshing Root WebApplicationContext: startup date [Thu Jun 09
> 22:37:58 IST 2011]; root of context hierarchy
> Jun 9, 2011 10:37:58 PM
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader
> loadBeanDefinitions
> INFO: Loading XML bean definitions from ServletContext resource
> [/WEB-INF/beans.xml]
> Jun 9, 2011 10:37:58 PM
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader
> loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource
> [META-INF/cxf/cxf.xml]
> Jun 9, 2011 10:37:58 PM
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader
> loadBeanDefinitions
> INFO: Loading XML bean definitions from class path resource
> [META-INF/cxf/cxf-servlet.xml]
> Jun 9, 2011 10:37:58 PM
> org.springframework.beans.factory.xml.XmlBeanDefinitionReader
> loadBeanDefinitions
> INFO: Loading XML bean definitions from ServletContext resource
> [/WEB-INF/jaxrs.xml]
> Jun 9, 2011 10:37:58 PM
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> registerBeanDefinition
> INFO: Overriding bean definition for bean 'categoryService': replacing
> [Generic bean: class
> [org.apache.cxf.jaxrs.spring.JAXRSServerFactoryBeanDefinitionParser$SpringJAXRSServerFactoryBean];
> scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0;
> autowireCandidate=true; primary=false; factoryBeanName=null;
> factoryMethodName=null; initMethodName=create; destroyMethodName=null] with
> [Generic bean: class [com.cisco.cxf.server.CategoryService]; scope=;
> abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0;
> autowireCandidate=true; primary=false; factoryBeanName=null;
> factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined
> in ServletContext resource [/WEB-INF/jaxrs.xml]]
> Jun 9, 2011 10:37:58 PM
> org.springframework.beans.factory.support.DefaultListableBeanFactory
> preInstantiateSingletons
> INFO: Pre-instantiating singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@691dee:
> defining beans
> [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,categoryService,categoryServiceBean,categoryDAO];
> root of factory hierarchy
> Jun 9, 2011 10:37:58 PM org.springframework.web.context.ContextLoader
> initWebApplicationContext
> INFO: Root WebApplicationContext: initialization completed in 750 ms
> ........
> ........
>
>
> And when i try to access a resource, this is all i get in my tomcat logs..
>
>
> Jun 9, 2011 10:38:28 PM org.apache.cxf.transport.servlet.ServletController
> invoke
> WARNING: Can't find the the request for
> http://localhost:8080/jaxws/categoryservice/category/001's Observer
> Jun 9, 2011 10:58:50 PM org.apache.cxf.transport.servlet.ServletController
> invoke
> WARNING: Can't find the the request for
> http://localhost:8080/jaxws/categoryservice/category/001's Observer
> Jun 9, 2011 10:59:08 PM org.apache.cxf.transport.servlet.ServletController
> invoke
> WARNING: Can't find the the request for
> http://localhost:8080/jaxws/categoryservice/category/001/books's Observer
>
>
> Sorry if my question seems dumb, but is there a way by which i can ensure
> the service endpoint is created?
>
> --
> View this message in context: 
> http://cxf.547215.n5.nabble.com/REST-app-with-CXF-2-4-gives-Can-t-find-request-for-observer-error-tp4473536p4473635.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>

Reply via email to