Could you post your struts.xml and the action which you're trying to serialize? I'm pretty sure that your action class contains a reference to a connection object and the json plugin is trying to serialize it. If I'm right you could simply change your root parameter via action configuration inside the struts.xml file.
Maurizio Cucchiara Il giorno 14/feb/2011 07.19, "CRANFORD, CHRIS" <chris.cranf...@setech.com> ha scritto: I am trying to return a list of hibernate entities to my AJAX call; however, I get the following error message when JSONWriter tries to serialize the objects. Can anyone explain why I am getting this error and if there is something I can do to avoid it so I can pass my objects back via a JSON call? java.lang.IllegalAccessException: Class org.apache.struts2.json.JSONWriter can not access a member of class org.apache.tomcat.dbcp.dbcp.PoolingDataSource$PoolGuardConnectionWrapper with modifiers "public" Chris --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org