CXF web service client: “Cannot create a secure XMLInputFactory”
Had this problem when upgrading from CXF 2.3.x to 2.7.x Added stax2-api and woodstox-core-asl jars from the 2.7.x CXF distribution and the webservice works again.
Had this problem when upgrading from CXF 2.3.x to 2.7.x Added stax2-api and woodstox-core-asl jars from the 2.7.x CXF distribution and the webservice works again.
There is com.sun.xml.txw2.output.IndentingXMLStreamWriter XMLOutputFactory xmlof = XMLOutputFactory.newInstance(); XMLStreamWriter writer = new IndentingXMLStreamWriter(xmlof.createXMLStreamWriter(out));