java - Trouble with Jersey MIME Type "text/xml;charset=UTF-8 was not found" -
why following exception when running program within jar bundle, not getting exception when executing within netbeans?
com.sun.jersey.api.client.clienthandlerexception: message body reader java class javax.xml.bind.jaxbelement, , java type javax.xml.bind.jaxbelement, , mime media type text/xml;charset=utf-8 not found
i building program maven , assembly plugin.
mvn assembly:assembly
what netbeans different when running "run file"?
i've asked same question on jersey mailing (http://java.net/projects/jersey/lists) list , recieved working answer, leaves me answering on question here. have admit dont understand solution , reason problem. please fell free leave comments or new answer.
the problem seems be, assembly plugin not correctly merging meta-inf files. undertand there needs renaming of descriptions or so!?
instead of using assembly plugin maven use shade plugin!
read problem , solution here: http://jersey.576304.n2.nabble.com/issue-with-post-when-packaging-into-jar-td5460103.html
and see shade plugin maven here: http://maven.apache.org/plugins/maven-shade-plugin/
Comments
Post a Comment