cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Collins <>
Subject NoClassDefFoundError: javax/ws/rs/core/Response
Date Wed, 21 Jul 2010 01:18:13 GMT
Everything works on eclipse, but I'm still hitting walls trying to get my code running on my
unix server.
I have: tomcat6, spring 2.5.6, cxf 2.2.7.
The error message that I get is:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userBean'
defined in class path resource [com/webpfm/cxf.xml]: Initialization of bean failed; nested
exception is java.lang.NoClassDefFoundError: javax/ws/rs/core/Response
I'm pretty sure that this class is in jsr311-api-1.0.jar, which I see is in WEB-INF/lib.
I don't have any other copies of the jar around (which I read in some other posting could
Here's the xml:
<beans xmlns=""  xmlns:xsi=""  xmlns:util=""  xmlns:jaxrs=""  xmlns:cxf=""  xsi:schemaLocation="">
  <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="user" address="/user">    <jaxrs:serviceBeans>    
 <ref bean="userBean" />    </jaxrs:serviceBeans>  </jaxrs:server>
  <bean id="userBean" class="com.webpfm.UserManager" /></beans>

Any ideas would be greatly appreciated.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message