DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21366>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21366

A JSP-Servlet translation bug





------- Additional Comments From [EMAIL PROTECTED]  2003-08-10 09:09 -------
Thanks to that info, I was able to track this down (for Tomcat 5, at least; I 
haven't investigated this on Tomcat 4 at all).

The fix is to copy xercesImpl.jar and xml-apis.jar from your Ant installation 
to Tomcat's common/lib directory.  When you precompile, the class loader is 
created by Jspc.java's initClassLoader() method, and includes the Ant jars in 
its URL list.  When you don't precompile, the class loader is created in 
JspRuntimeContext.java, and doesn't include the Ant jars.

I haven't traced exactly why the missing jars cause the problem, but one 
difference between jars/no jars is in XMLEncodingDetector.java's getEncoding() 
method.  Class.forName("org.apache.xerces.util.SymbolTable") works fine if the 
class loader can see the jars in question, and throws an exception otherwise.

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

Reply via email to