users@glassfish.java.net

Jersey _at_ Glassfish - POJOMappingFeature

From: Witold Szczerba <pljosh.mail_at_gmail.com>
Date: Mon, 17 Jan 2011 23:18:11 +0100

Hi there,
I am having trouble configuring Jersey in Java EE 6 application on
Glassfish 3.0.1.
Chapter 5.1 of Jersey User Guide
http://jersey.java.net/nonav/documentation/latest/json.html#d0e1960
says that in order to enable POJOMappingFeature one has to turn
JSONConfiguration.FEATURE_POJO_MAPPING on using servlet init
parameter. The problem is there is no servlet definition, the only
thing to enable JAX-WS is to create a class like this:

@javax.ws.rs.ApplicationPath("resources")
public class EnableJAXRS extends javax.ws.rs.core.Application{

}

Can you help me?

Thanks,
Witold Szczerba