Hi Elliotte,
Prior to release 2.7, xalan.jar file included the code for serializer.  In
release 2.7, the serializer code is bundled in serializer.jar file.  So,
when you used older versions, you included xalan.jar file in the classpath.
Xalan code make use of serializer code to output the result tree.  I hope
this answer your question.
Thanks!

Yash Talwar
XSLT Development / Xalan
IBM Toronto Lab
EMail: [EMAIL PROTECTED]
Phone #:  905-413-5920


                                                                       
             Elliotte Harold                                           
             <[EMAIL PROTECTED]                                         
             nc.edu>                                                    To
                                       [email protected]        
             08/18/2005 09:30                                           cc
             AM                                                        
                                                                   Subject
                                       Re: Dependence on Serailizer    
             Please respond to                                         
                 xalan-dev                                             
                                                                       
                                                                       
                                                                       
                                                                       




For what it's worth here's the relevant part of the stack trace:

java.lang.NoClassDefFoundError: org/apache/xml/serializer/SerializerTrace
             at java.lang.ClassLoader.defineClass1(Native Method)
             at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
             at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
             at
java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
             at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
             at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
             at java.security.AccessController.doPrivileged(Native Method)
             at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
             at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
             at
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
             at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
             at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
             at
org.apache.xalan.processor.ProcessorStylesheetElement.getStylesheetRoot(ProcessorStylesheetElement.java:121)

             at
org.apache.xalan.processor.ProcessorStylesheetElement.startElement(ProcessorStylesheetElement.java:72)

             at
org.apache.xalan.processor.StylesheetHandler.startElement(StylesheetHandler.java:623)

             at
nu.xom.converters.SAXConverter.convertElement(SAXConverter.java:320)
             ...
I think the class that's trying to load
org.apache.xml.serializer.SerializerTrace is
org.apache.xalan.trace.PrintTraceListener. This refers to a number of
constants defined in SerializerTrace. There are a few other places where
SerializerTrace is imported but I think this is the one that's bothering
me right now. Is there any chance of removing this dependence?

-- Elliotte Rusty Harold  [EMAIL PROTECTED]
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to