No puedo aplicar XSL a XML desde JSP

Alberto
24 de Marzo del 2004
Código JSP:

<%@ page import="javax.xml.transform.*,javax.xml.transform.stream.*,java.io.*" %>

<%TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer( new StreamSource("book.xsl"));
transformer.transform( new StreamSource("book.xml"), new StreamResult(out));%>

Resultado:

excepcion

javax.servlet.ServletException
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:867)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:800)
org.apache.jsp.book_jsp._jspService(book_jsp.java:55)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


causa raiz :

java.lang.NoClassDefFoundError
org.apache.xml.serializer.ToStream.<init>(ToStream.java:112)
org.apache.xml.serializer.ToXMLStream.<init>(ToXMLStream.java:57)
org.apache.xml.serializer.ToUnknownStream.<init>(ToUnknownStream.java:136)
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
java.lang.reflect.Constructor.newInstance(Unknown Source)
java.lang.Class.newInstance0(Unknown Source)
java.lang.Class.newInstance(Unknown Source)
org.apache.xml.serializer.SerializerFactory.getSerializer(SerializerFactory.java:91)
org.apache.xalan.transformer.TransformerImpl.createSerializationHandler(TransformerImpl.java:1097)
org.apache.xalan.transformer.TransformerImpl.createSerializationHandler(TransformerImpl.java:981)
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1187)
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1170)
org.apache.jsp.book_jsp._jspService(book_jsp.java:49)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248)
javax.servlet.http.HttpServlet.service(HttpServlet.java:856)


¿Qué ocurre? me lleva de cabeza, si alguien puede ayudarme le estaré muy agradecido.

Gracias