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

http://issues.apache.org/bugzilla/show_bug.cgi?id=27529

xalan throws an exception when using transform in an applet





------- Additional Comments From [EMAIL PROTECTED]  2004-03-18 16:44 -------
These two threads discuss this problem.

http://forum.java.sun.com/thread.jsp?forum=34&thread=258404
http://forum.java.sun.com/thread.jsp?forum=34&thread=444852

I am not sure about the Xalan version, but I know that it is the version which 
is shipped with Sun jre 1.4.2.

The solution I adapted was to bundle the two .res files ( XMLEntities.res & 
HTMLEntities.res ) with my applet jar file and set the path as follows. It 
seems like xalan tries to load these two files using default class loader 
causing a security exception in applets.

org.apache.xalan.serialize.CharInfo.XML_ENTITIES_RESOURCE = 
getClass().getResource("XalanFiles/XMLEntities.res").toString();
                
org.apache.xalan.serialize.CharInfo.HTML_ENTITIES_RESOURCE = 
getClass().getResource("XalanFiles/HTMLEntities.res").toString();

Reply via email to