 <p>I was having the same problem when upgrading my server from glassfish v3.0.1 to glassfish v3.1.1. Seems like there is a bug in the jaxb-osgi.jar in v3.1.1. <a href="http://java.net/jira/browse/JAXB-860" rel="nofollow">http://java.net/jira/browse/JAXB-860</a> shows that the fix will be included in glassfish v3.1.2. But at the meantime, I replaced the jaxb-osgi.jar in glassfish v3.1.1 with the jar from glassfifh v3.0.1 and the problem is solved. You should be able to get a newer version of jaxb-osgi.jar that has the fix in as well.</p>