Glassfish error when producing JSON

前端 未结 2 646
栀梦
栀梦 2020-11-30 02:32

I developed an Android app and now I\'m starting with its external DB and its server, the communication is performed by RESTful web services.

This Android aplication

2条回答
  •  失恋的感觉
    2020-11-30 03:27

    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
    

提交回复
热议问题