dleslie 01/08/13 07:56:32
Modified: java/xdocs/sources/xalan faq.xml
Log:
Added faq from Gunnaluger Thor Briem on loading extension element/function
classes in a servlet.
Revision Changes Path
1.10 +13 -1 xml-xalan/java/xdocs/sources/xalan/faq.xml
Index: faq.xml
===================================================================
RCS file: /home/cvs/xml-xalan/java/xdocs/sources/xalan/faq.xml,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- faq.xml 2001/07/17 14:40:29 1.9
+++ faq.xml 2001/08/13 14:56:31 1.10
@@ -178,5 +178,17 @@
(java.io.OutputStreamWriter). Once the Writer exists, you cannot change
its encoding.</p>
</a>
</faq>
-
+ <faq title="Servlet unable to find classes for extension
functions/elements">
+ <q>My servlet cannot find classes that implement extension functions or
elements. What can I do?</q>
+ <a>
+ <p>If you install xalan.jar in the servlet engine's lib directory (e.g.,
tomcat/lib), as opposed to the servlet's
+ lib directory, then the Xalan classes are loaded by a classloader that
does not see the classes in the servlet's
+ classloader (i.e., the extension classes, if you placed them there). The
Xalan classes try to load the extension
+ classes using their own classloader, and that attempt fails.</p>
+ <p>Workaround: place xalan.jar in the servlet's lib directory and NOT in
the servlet engine's lib directory.
+ Another workaround is to place the extension classes also in the servlet
engine's lib directory, but you
+ generally want to avoid cluttering that directory.</p>
+ <p>Thanks to Gunnlauger Thor Briem ([EMAIL PROTECTED]) for providing
this information. </p>
+ </a>
+ </faq>
</faqs>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]