Hi,

I'm trying to use xalan 2.5.1 in an application, but I'm running into
NoClassDefFound error's.

This is the code to create the Transformer (snip 2) and the 
code that tries to translate (snip 1):

====== code snip 1 =========
import javax.xml.transform.Transformer;

// get XSLT Transformer
Transformer transformer = ProxyHelper.getTransformer( styleFile );
Document document = ProxyHelper.getInputSource( sourceURL );

// Transform and stream
DOMSource source = new DOMSource(document);
OutputStream out = response.getOutputStream();
StreamResult result = new StreamResult(out);
transformer.transform(source, result);
// the above line is line 61 in the stack trace

==========================


====== code snip 2 =========

     public static  Transformer getTransformer(File stylesheetFile)
             throws TransformerConfigurationException {

         TransformerFactory tFactory = new
org.apache.xalan.xsltc.trax.TransformerFactoryImpl();
         StreamSource stylesource   = new StreamSource(stylesheetFile);
         Transformer transformer    = tFactory.newTransformer(stylesource);

         return transformer;
     }
==========================


====== stack trace =======
java.lang.NoClassDefFoundError:
org/apache/xml/dtm/ref/sax2dtm/SAX2DTM2$AncestorIterator
org.apache.xalan.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:228)
org.apache.xalan.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:174)
org.apache.xalan.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:483)
org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:655)
org.apache.xalan.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:298)
nl.fundament.amcorp.site.content.action.InTheMediaProxy.execute(InTheMediaProxy.java:61)
==========================


If I analize the stack trace, I assume that the transformer is found, 
But it fails to locate the iner classes provided by xalan-2.5.1.jar

this are the xalan implemetnations I found in my jboss:
$ find . | grep xalan
./server/all/lib/xalan.jar
./server/default/lib/xalan.jar
./server/default/tmp/deploy/tmp4465am-site.war/WEB-INF/lib/xalan-2.5.1.jar


What am I overlooking here?

I Use:
jboss-3.2.5 on OS-X 10.3

Regards,
Gert-Jan Braas

--------------------------------------------------------
Wyldebeast & Wunderliebe
Herenbinnensingel 2, Groningen
0031 651521379

Working with Unix is like wrestling a worthy opponent.
Working with windows is like attacking a small whining child
who is carrying a .38.



-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to