Glassfish error when producing JSON

It’s a bug in Glassfish 4.1.1 https://java.net/jira/browse/JERSEY-2888

I was able to fix it in a dirty way:

In glassfish/modules/org.eclipse.persistence.moxy.jar fix META-INF/MANIFEST.MF
Just append the following to Import-Package:

,org.xml.sax.helpers,javax.xml.parsers;resolution:=optional,javax.naming;resolution:=optional

so it looks like after:

enter image description here

and restart GF

btw: you can easy edit jars in terminal with

emacs org.eclipse.persistence.moxy.jar

Leave a Comment