Harald Pehl [
https://community.jboss.org/people/harald.pehl] created the discussion
"Re: Resteasy jboss7 jackson configuration"
To view the discussion, visit:
https://community.jboss.org/message/728341#728341
--------------------------------------------------------------
I found a way to use both CDI and a custom jackson configuration. The trick is to exclude
the configuration from weld in beans.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
xmlns:weld="
http://jboss.org/schema/weld/beans
http://jboss.org/schema/weld/beans"
xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee http://docs.jboss.org/cdi/beans_1_0.xsd
http://docs.jboss.org/cdi/beans_1_0.xsd
http://jboss.org/schema/weld/beans http://jboss.org/schema/weld/beans
http://jboss.org/schema/weld/beans_1_1.xsd
http://jboss.org/schema/weld/beans_1_1.xsd">
<weld:scan>
*<weld:exclude name="your.custom.JacksonConfigurator" />*
</weld:scan>
</beans>
In case your jackson configuration is not recognized, add the following context parameter
to your web.xml
<context-param>
<param-name>resteasy.providers</param-name>
<param-value>your.custom.JacksonConfigurator</param-value>
</context-param>
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/728341#728341]
Start a new discussion in JBoss AS 7 Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]