web.xml had the location, so it should have been OK, but I moved it to the more 
standard location.
As I should have expected with the class not found error, it was a classpath 
problem.  I went back, got it cleaned up and was able to get past this error.
After that, all the problems were solvable with some searching, so now the app 
is up and running.
Thanks for the help.  It's nice to know that this package is well supported.
       Alain.

--- On Wed, 7/21/10, Sergey Beryozkin <[email protected]> wrote:

From: Sergey Beryozkin <[email protected]>
Subject: Re: NoClassDefFoundError: javax/ws/rs/core/Response
To: [email protected]
Date: Wednesday, July 21, 2010, 2:05 PM

> class path resource [com/example/cxf.xml]

this looks suspicious to me...If it is a war then it should probably be
WEB-INF/beans.xml ?
Not really sure what is happening
Sergey


On Wed, Jul 21, 2010 at 2:18 AM, Alan Collins <[email protected]>wrote:

> 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/example/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 conflict).
> Here's the xml:
> <beans xmlns="http://www.springframework.org/schema/beans"  xmlns:xsi="
> http://www.w3.org/2001/XMLSchema-instance"  xmlns:util="
> http://www.springframework.org/schema/util"  xmlns:jaxrs="
> http://cxf.apache.org/jaxrs"  xmlns:cxf="http://cxf.apache.org/core
> "  xsi:schemaLocation="
> http://www.springframework.org/schema/beanshttp://www.springframework.org/schema/beans/spring-beans.xsdhttp://www.springframework.org/schema/utilhttp://www.springframework.org/schema/util/spring-util-2.0.xsdhttp://cxf.apache.org/jaxrshttp://cxf.apache.org/schemas/jaxrs.xsdhttp://cxf.apache.org/corehttp://cxf.apache.org/schemas/core.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="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.
>
>
>
>



      

Reply via email to