-
Type:
Bug
-
Status: Verified (View Workflow)
-
Priority:
Major
-
Resolution: Done
-
Affects Version/s: 7.0.0.ER4
-
Fix Version/s: 7.1.0.DR8
-
Component/s: REST
-
Labels:None
-
Target Release:
-
Affects:Release Notes
-
Release Notes Docs Status:Documented as Known Issue
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
- cloned to
-
RESTEASY-1287 RESTEasy-Spring is unable to set mediaTypeMappings in ResteasyDeployment by bean settings
-
- Resolved
-