[
https://issues.apache.org/jira/browse/CXF-7770?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16527500#comment-16527500
]
Dhananjay commented on CXF-7770:
--------------------------------
This is all working fine in old 3.0.16 but not in 3.2.4
<jaxrs:server id="myRest" address="/rs" bus="myRestBus">
<jaxrs:serviceBeans>
<ref bean="myRestService"/>
</jaxrs:serviceBeans>
<jaxrs:providers>
<ref bean="jsonProviderMine" />
</jaxrs:providers>
<jaxrs:extensionMappings>
<entry key="json" value="application/json"/>
</jaxrs:extensionMappings>
</jaxrs:server>
<bean id="jsonProviderMine"
class="org.apache.cxf.jaxrs.provider.json.JSONProvider">
<property name="serializeAsArray" value="true" />
<property name="dropRootElement" value="true" />
<property name="collectionWrapperName" value="alarm" />
<property name="dropCollectionWrapperElement" value="true" />
<property name="supportUnwrapped" value="true"/>
<property name="writeXsiType" value="false" />
</bean>
> While upgrading to 3.2.4 from 3.0.16, Getting issue while creating service
> bean
> -------------------------------------------------------------------------------
>
> Key: CXF-7770
> URL: https://issues.apache.org/jira/browse/CXF-7770
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 3.2.4
> Reporter: Dhananjay
> Priority: Major
>
> While upgrading to 3.2.4 from 3.0.16, Getting issue while creating service
> bean. Please help on it.
>
> Caused by: org.springframework.beans.PropertyBatchUpdateException; nested
> PropertyAccessExceptions (1) are:
> PropertyAccessException 1:
> org.springframework.beans.MethodInvocationException: Property 'serviceBeans'
> threw exception; nested exception is java.lang.IllegalArgumentException:
> Invalid media type string: /application/json
> at
> org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:121)
> at
> org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:75)
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)