Created
September 3, 2012 17:09
-
-
Save kunny/3610918 to your computer and use it in GitHub Desktop.
Jersey setting for using Jackson instead JAXB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<servlet> | |
<servlet-name>Remoteroid REST</servlet-name> | |
<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> | |
<!-- Add 'org.codehaus.jackson.jaxrs' attribute to use Jackson instead of JAXB : JAXB has some problem on processing JSONArray --> | |
<init-param> | |
<param-name>com.sun.jersey.config.property.packages</param-name> | |
<param-value>org.secmem.remoteroid.server;org.codehaus.jackson.jaxrs</param-value> | |
</init-param> | |
<load-on-startup>1</load-on-startup> | |
</servlet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<servlet> | |
<servlet-name>Remoteroid REST</servlet-name> | |
<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class> | |
<!-- Add 'org.codehaus.jackson.jaxrs' attribute to use Jackson instead of JAXB : JAXB has some problem on processing JSONArray --> | |
<init-param> | |
<param-name>com.sun.jersey.config.property.packages</param-name> | |
<param-value>com.test.server;org.codehaus.jackson.jaxrs</param-value> | |
</init-param> | |
<load-on-startup>1</load-on-startup> | |
</servlet> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment