Skip to content

Instantly share code, notes, and snippets.

@kunny kunny/web.xml
Created Sep 3, 2012

Embed
What would you like to do?
Jersey setting for using Jackson instead JAXB
<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>
<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
You can’t perform that action at this time.