My Oracle Support Banner

Failed to Remove XML Header After Enabling JDK JAXB Provider on WebLogic 12.2.1.3 (Doc ID 2698377.1)

Last updated on SEPTEMBER 12, 2023

Applies to:

Oracle WebLogic Server - Version 12.2.1.3.0 and later
Information in this document applies to any platform.

Symptoms

 Application use below method to remove default XML header on WebLogic 11g with JDK JAXB provider.  But same code  can't work after migrating to WebLogic 12.2.1.3 with JDK JAXB provider.


Marshaller.setProperty("com.sun.xml.bind.xmlDeclaration", Boolean.FALSE);

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.