-
Bug
-
Resolution: Done
-
Major
-
3.0.14.Final
-
None
-
None
Description of problem:
RESTEasy-Spring is unable to set mediaTypeMappings in ResteasyDeployment by bean settings.
Reproducer is attached. Reproducer is based on TypeMappingTest from upstream TS.
Spring replacement of ResteasyDeployment:
<!-- Import basic SpringMVC Resteasy integration --> <import resource="classpath:springmvc-resteasy.xml" /> <!-- override the bean definition for deployment --> <bean id="resteasy.deployment" class="org.jboss.resteasy.spi.ResteasyDeployment" init-method="start" destroy-method="stop"> <property name="mediaTypeMappings"> <map> <entry key="json" value="application/json" /> <entry key="xml" value="application/xml" /> </map> </property> </bean>
How reproducible:
Always
Steps to Reproduce: (use attached reproducer)
- mvn test -Djboss.home=${EAP_HOME}
Actual results:
RESTEASY002010: Failed to execute: javax.ws.rs.NotFoundException: RESTEASY003210: Could not find resource for full path: http://localhost:8080/TypeMappingTest/test/noproduces.xml
- causes
-
RESTEASY-1502 SpringBeanProcessorServletAware loads wrong attributes
- Resolved
-
RESTEASY-1522 Guice integration broken in 3.1
- Resolved
-
RESTEASY-1580 Broken spring MVC Integration
- Resolved
-
RESTEASY-1593 ResteasyBootstrap no longer registers the deployment dispatcher in the servlet context attributes
- Closed
- clones
-
JBEAP-2963 RESTEasy-Spring is unable to set mediaTypeMappings in ResteasyDeployment by bean settings
- Verified