[jboss-as7-dev] Problem compiling an XSLT stylesheet file
RW Shore
rws228 at gmail.com
Fri Oct 7 15:51:08 EDT 2011
(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)?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-as7-dev/attachments/20111007/f6ce5c43/attachment.html
More information about the jboss-as7-dev
mailing list