How can two programs depending on different Xalan implementation coexist in the same VM / System Classloader?

This seems to be the surprising answer: For each Xalan implementation use a seperate classloader, and add a file in META-INF\services\ called javax.xml.transform. TransformerFactory Edit it and put it's only content the Xalan implementation the class loader will use, e.g. : com.sun.org.apache.xalan.internal.xsltc.trax. TransformerFactoryImpl NOTE: The nice thing here is that as opposed to the regular class loading delegation, META-INF\services is being searched in the current class loader first, where as classes are being search in the parent, then system, and only then in the child classloder.

See also: stackoverflow. Com/questions/5447633/… – Eran Medan Mar 27 at 9:06.

There is some xalan version included in the jdk. For most usages, my personal experience is that using this version is enough. Even if it could be a previous version, is there any new xalan development nowadays?

I prefer using the included, strongly tested version. I don't think having to xsl transformers in the same jdk is a good idea (even if I guess it can be done). If you really need to use some updated version of xalan, instead of the jdk one, you could referer to this faq: xml.apache.org/xalan-j/faq.html#faq-N100EF I stripped all specific xalan dependencies in big applications, using just the embedded one.

Libraries as FOP, although they previously pretended to require some specific xalan jar, ran just fine without it, and it solved a lot of class loading issues (java ee app server giving problems in some situations when xalan was packaged).

I have XSLs that work only on an old Xalan due to some deprecated API's I guess, and since they are already installed at clients I cant even fix them. But using that old Xalan, some new iText functionality doesn't work... so my solution is running it as a separate JVM process completely – Eran Medan May 6 at 4:39.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions