saxon dependency in tomcat bonitasoft

Hi,

I use SAXON (i explicity call net.sf.saxon.TransformerFactoryImpl) in a jar to generate a PDF (showing process variables) via XSLT 2, this jar will be a dependency of my process.
In the same process, i have another jar depending implementing web service clients using the default xml/xsl sun jre implementation.
I indeed need the two dependencies (saxon does not support “namespaces” feature, and default xml/xsl sun jre implementation does not support XLST 2 fully…).
I cant get having them working together in the process for class loading problems. I tried including saxon both in the process dependency (then the web services fail because of using SAXON) and in the tomcat shared lib (then the entire bonitasoft server doesn t load) without success.

Any idea?

Hi,

this is typical integration issue of javax.xml.

You can try to split the process and add the dependencies for one library in a process and the other in another one. I think that you will need to set some system properties forcing the use of a Factory from one library or another before having a call to one of these classes.

Regards,