We are making ear component that shall run in JBOSS. In this component we are reading messages from the Sonic queue and writing them to the database. In between there is an XSLT transformation.
We are using XSLT 2.0 style sheet in combination with Saxon 8.7B.
It was failing immediately, because it was trying to use XERCES transformer by default.
1. First of all we have thoughts that it failing because it’s using xerces parser installed on the apache at the initial stage. So we have placed saxon8..jar files to the CLASSPATH (they are obviously deployed locally in the ear package). It didn’t help.
2. Then, we have added the saxon namespace in front of all parsers and transformer classes. It did help, but now it failing with the ‘Circular variable definition …’ exception.
It’s obviously working as stand alone application with java 1.5. It’s also working on the test JBOSS server with no XERCES installed. Also there is no problem with the XSLT.
It probably a class loading problem, but we could not figure out, what is the problem, because the Saxons are the first one to be loaded.
So we might assume, that even we are really calling saxon transformer (and we can see, that it’s loaded with the saxon loader) it still somehow internally using the xerces that is only 1.0 comparable.
Can somebody advice, what shall we do to force saxon transformer and parser use only 2.0 own implementation.
Much appreciated for any help.