After I change the way to starting up the bus to org.springframework.web.context.ContextLoaderListener in web.xml, it works normally now. I originally used CXFServlet's init parameter to start up the bus.
After checking the code, I find that the problem is caused by the code at org.apache.cxf.endpoint.ServerImpl line 87 where a new ServeletTransportFactory is created without any destination. Rice, Rice On Wed, Jul 28, 2010 at 4:30 PM, Rice Yeh <[email protected]> wrote: > Hi, > I run my JAX-RS only on jetty and get the error message can't find the > request for ... observer. The following is my beans.xml. As you can see, I > have define a endpoint "/rs". But the desitnation in ServletTransportFactory > is empty. Any clue? > > Regards, > Rice > > > <beans xmlns="http://www.springframework.org/schema/beans" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws=" > http://cxf.apache.org/jaxws" > xmlns:jaxrs="http://cxf.apache.org/jaxrs" > xsi:schemaLocation=" > http://www.springframework.org/schema/beans > http://www.springframework.org/schema/beans/spring-beans-2.0.xsd > http://cxf.apache.org/jaxrs > http://cxf.apache.org/schemas/jaxrs.xsd"> > > <import resource="classpath:META-INF/cxf/cxf.xml" /> > <import > resource="classpath:META-INF/cxf/cxf-extension-jaxrs-binding.xml" /> > <import resource="classpath:META-INF/cxf/cxf-servlet.xml" /> > > <jaxrs:server id="personnel" address="/rs"> > <jaxrs:serviceBeans> > <bean class="xs.personnel.rs.PassThroughResource"/> > <bean class="xs.personnel.rs.html.bureaucracy"/> > <bean class="xs.personnel.rs.html.organization"/> > <bean class="xs.personnel.rs.html.explorer"/> > <bean class="xs.personnel.rs.html.test"/> > <bean class="xs.personnel.rs.job"/> > <bean class="xs.personnel.rs.organizationType"/> > <bean class="xs.personnel.rs.position"/> > <bean class="xs.personnel.rs.realm"/> > <bean class="xs.personnel.rs.staff"/> > </jaxrs:serviceBeans> > </jaxrs:server> > > </beans> >
