cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From semecxf <diata.ke...@gmail.com>
Subject Custom Provider not being invoked
Date Mon, 04 Jun 2012 15:13:06 GMT
I am trying to send javax.security.auth.Subject as json, but I am getting
JAXRSOutInterceptor            WARN  No message body writer has been found
for response class Subject.
I added a provider so that I could create my json but my provider is not
being called?

I follow sample code in this doc
(http://cxf.apache.org/docs/jax-rs-basics.html) to implement my provider.
Any idea?

Here is my spring xml sample

 <bean id="isProvider" class="com.SubjectProvider"/>
    <bean id="jsonProvider"
class="org.apache.cxf.jaxrs.provider.JSONProvider"> 
        <property name="ignoreNamespaces" value="true" /> 
    </bean> 
    
     <jaxrs:server address="/subjectResource">
		<jaxrs:serviceBeans>
			<ref bean="subject" />
		</jaxrs:serviceBeans>
		<jaxrs:providers>
     	 <ref bean="isProvider" />
     	  <ref bean="jsonProvider" /> 
    </jaxrs:providers>
    
	</jaxrs:server>

--
View this message in context: http://cxf.547215.n5.nabble.com/Custom-Provider-not-being-invoked-tp5709058.html
Sent from the cxf-user mailing list archive at Nabble.com.

Mime
View raw message