javax.xml.bind.PropertyException: name: com.sun.xml.bind.xmlDeclaration value: false
at javax.xml.bind.helpers.AbstractMarshallerImpl.setProperty(AbstractMarshallerImpl.java:349)
at com.sun.xml.internal.bind.v2.runtime.MarshallerImpl.setProperty(MarshallerImpl.java:544)
at com.cat.rr.tdmscdl.inf.ErrorMessageService.getErrorMsgXML(ErrorMessageService.java:65)
at com.cat.rr.tdmscdl.inf.ErrorMessageService.sendGrieftoTVS(ErrorMessageService.java:27)
at com.cat.rr.tdmscdl.inf.ErrorMessageService.main(ErrorMessageService.java:53)
The above error will be appears when we are using Java 1.6 and JAXB.
jm.setProperty("com.sun.xml.bind.xmlDeclaration", Boolean.FALSE);
Please include following Jars in libs
jaxb-core.jar
jaxb-api.jar
jaxb-impl.jar
at javax.xml.bind.helpers.AbstractMarshallerImpl.setProperty(AbstractMarshallerImpl.java:349)
at com.sun.xml.internal.bind.v2.runtime.MarshallerImpl.setProperty(MarshallerImpl.java:544)
at com.cat.rr.tdmscdl.inf.ErrorMessageService.getErrorMsgXML(ErrorMessageService.java:65)
at com.cat.rr.tdmscdl.inf.ErrorMessageService.sendGrieftoTVS(ErrorMessageService.java:27)
at com.cat.rr.tdmscdl.inf.ErrorMessageService.main(ErrorMessageService.java:53)
The above error will be appears when we are using Java 1.6 and JAXB.
jm.setProperty("com.sun.xml.bind.xmlDeclaration", Boolean.FALSE);
Please include following Jars in libs
jaxb-core.jar
jaxb-api.jar
jaxb-impl.jar
1 comment:
Estou usando um projeto que não é Maven, quais versões é aconselhado eu usar? Vi que existem dependências, é preciso adicionar todos os jars das dependências também?
Post a Comment