> class path resource [com/webpfm/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/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 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. > > > >
