(slightly more detail at <a href="http://community.jboss.org/thread/173303?tstart=0">http://community.jboss.org/thread/173303?tstart=0</a> )<br><br>Environment: JBoss 7.0.2, Java 1.7.0-b147, OS Ubuntu<br><br>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():<br>
<br><p>Caused by: javax.xml.transform.TransformerConfigurationException: Could not compile stylesheet</p><p> at org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:832)</p><p> at __redirected.__TransformerFactory.newTemplates(__TransformerFactory.java:137)</p>
<p> at com.cst.chetx.core.bean.transform.TransformDataSupport.loadFromUrl(TransformDataSupport.java:215)</p><p> at com.cst.chetx.core.bean.transform.TransformDataSupport.loadTemplateSequence(TransformDataSupport.java:269)</p>
<p> ... 14 more</p>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.<br>
<br>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.<br>
<br>2. Any other suggestion for getting my stylesheet to compile (and ultimately run)?<br>