I found the solution. This is a class loader issue. A few thing cause this issue. When application libraries are at the glassfish server (adding libraries outside WARs/EARs) , Classes load different class loader even you have just one WAR. So that you have two different classes which have same name.
Best Regards Musa YUVACI -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/jaxb-class-which-is-the-same-class-cast-exception-tp6421599p6422400.html Sent from the Restlet Discuss mailing list archive at Nabble.com. ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2754380

