(slightly more detail at http://community.jboss.org/thread/173303?tstart=0 )

Environment: JBoss 7.0.2, Java 1.7.0-b147, OS Ubuntu

I have a JMX MBean which throws the following when trying to compile an XSLT stylesheet using a transformer gotten from the factory built via TransformerFactory.getInstance():

Caused by: javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet

      at org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:832)

      at __redirected.__TransformerFactory.newTemplates(__TransformerFactory.java:137)

      at com.cst.chetx.core.bean.transform.TransformDataSupport.loadFromUrl(TransformDataSupport.java:215)

      at com.cst.chetx.core.bean.transform.TransformDataSupport.loadTemplateSequence(TransformDataSupport.java:269)

... 14 more

This stylesheet compiles file in a non-JBoss environment, using factory com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl. I suspect an undocumented limitation of some sort in the JBoss-supplied transformer environment.

1. Is there any way for my ear file to use the default TransformerFactory rather than the JBoss supplied one? Note that the getInstance(className, null) builder throws a NoClassDefFound exception if I try to name the above factory.

2. Any other suggestion for getting my stylesheet to compile (and ultimately run)?