https://bz.apache.org/bugzilla/show_bug.cgi?id=68909

--- Comment #5 from Chris <c...@stl.gmbh> ---
You are absolutely right. Setting a SystemProperty within a web application is
not a desired approach.

The circumstances of our web application are rather homogeneous: it is always
installed as the one and only web application in Tomcat 9.0.* using Java 8 as a
requirement.

We are relying on some parsing features of woodstox and always instantiate
their factory in our own code. But we call some libraries that themselves use
"XMLInputFactory.newFactory()". We had issues in some class loader
constellations that these libraries did not find the
"/META-INF/services/javax.xml.stream.XMLInputFactory" of woodstox in the
classpath and hence loaded the java sun default Implementation.

We saw the SystemProperty as the only way to "enforce" the usage of woodstox
throughout our entire web application.

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to