problem with servlet and multiple XML parser

S

Stefan Wessely

Hi!

My servlet needs to use a xml parser that is different from the one
installed in (for example) Tomcat. But I'm not allowed to replace
Tomcat's XML parser nor change classpath.

I'm using
System.setProperty("javax.xml.parsers.DocumentBuilderFactory",
"oracle.xml.jaxp.JXDocumentBuilderFactory");
to force my servlet to use the oracle parser.

But here comes the problem:
System.setProperty does not only have an effect to my servlet but to all
servlets runnin' on that server!

What can I do to limit it to my servlet only?


Thanx,
Stefan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top