Hi,

We are using JAX-RS for CXF RESTful webservices. Our service has just one
method that handles a GET request.

And below is how we have mapped our service in beans.xml.

<jaxrs:server id="contentProcessService" address="/">
    <jaxrs:serviceBeans>
      <ref bean="contentProcessBean" />
    </jaxrs:serviceBeans> 
          <jaxrs:providers> 
                 <bean 
class="org.apache.cxf.jaxrs.provider.XMLBeansElementProvider"
/> 
      </jaxrs:providers> 
  </jaxrs:server>

  <bean id="contentProcessBean"
class="com.endpoint.impl.ContentProcessImpl">
      <property name="contentQueryService" ref="contentQueryService" />
      <property name="cacheService" ref="cache" />
  </bean> 

We are getting the below exception when we deploy the war in Tomcat.

org.springframework.beans.factory.BeanCreationException: Error creating bean
wit
h name 'contentProcessService': Invocation of init method failed; nested
excepti
on is org.apache.cxf.service.factory.ServiceConstructionException
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBean
Factory.initializeBean(AbstractAutowireCapableBeanFactory.java:1337)

Any pointers in resolving this issue would be of great help.

Thanks & Regards,
Yong-Loh
-- 
View this message in context: 
http://old.nabble.com/CXF-with-JAX-RS-%3A-ServiceException-during-deployment-tp27335640p27335640.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to