cxf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brad O'Hearne <>
Subject [Fwd: Re: Exception loading CXF service in Spring with HTTP Binding]
Date Sat, 14 Jul 2007 00:37:29 GMT

I don't want to cross the line on asking questions to the dev list, but 
I'm in a bit of a bind here, and I need to get this worked out, and I 
think that posting this to the dev list may be appropriate for the 
following reasons:

1) It is in the realm where the documentation says the functionality 
exists, but doesn't say how to configure (i.e. a hole in the documentation).
2) The stack trace / error I am receiving I am guessing only a developer 
is going to likely understand -- it makes absolutely no sense at a user 
3) The only reference I found to this error on Google was from last 
month on the developer list.

The forwarded email explains my problem and stack trace, but in a 
nutshell, I just need to configure annotation based, SOAP-Free, Restful 
Http/xml services in Spring. Nothing tricky -- simple, standard, 
boilerplate need. I am having no luck, as my service loading fails. The 
stack trace is attached. Here is my web.xml file:

<!DOCTYPE web-app
   PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"




       <display-name>CXF Servlet</display-name>



Here is my beans.xml file:

<beans xmlns=""

   <import resource="classpath:META-INF/cxf/cxf.xml" />
   <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
resource="classpath:META-INF/cxf/cxf-extension-http-binding.xml" />
   <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />

   <bean id="JaxWsServiceFactoryBean"
       <property name="wrapped" value="false" />

   <jaxws:endpoint id="userService"
           <ref bean="JaxWsServiceFactoryBean" />


Here is my UserService interface:

package com.brad.user;

import javax.jws.WebService;

import org.codehaus.jra.Get;
import org.codehaus.jra.HttpResource;

import com.brad.service.ServiceRequest;
import com.brad.service.ServiceResponse;

public interface IUserService {

   @HttpResource(location = "/users")
   ServiceResponse getUsers(ServiceRequest request);

Thanks in advance for the help. I'm to the end of my rope, with regards 
to my timeline, and I need to get this working, and qualify CXF as a 
service stack that can be used for this project, or else I'm going to 
have to punt this weekend and incur a ton of work basically duplicating 
what CXF already purports to do.



View raw message