weblogic cxf 异常 Cannot create a secure XMLInputFactory

Weblogic cxf exception Cannot create a secure XMLInputFactory

I have tried many solutions, there are
jaxb-api-2.2.6.jar
jaxb-impl-2.2.6.jar
that conflict with this package, and there is a lack of these two jar packages, or These two packages have conflicting
stax2-api-3.1.4.jar
woodstox-core-asl-4.4.0.jar
Some people say that weblogic.xml configuration is loaded first:
<container-descriptor> 
    <prefer-web-inf-classes >true</prefer-web-inf-classes> 
</container-descriptor> 
Some people say that renaming the jar package in the

Weblogic environment with priority loading, the final solution, reset the value of this property to 1
weblogic allowInsecureParser defaults to 0
public class CxfWeblogicListener implements ServletContextListener{
    public CxfWeblogicListener(){
        System.setProperty("org.apache.cxf.stax.allowInsecureParser","1");
    }
}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326511832&siteId=291194637