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=19790>.
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=19790

TransformerFactoryImpl.newTemplates() throws exception in Applet





------- Additional Comments From [EMAIL PROTECTED]  2003-06-11 13:45 -------
>output_xml.properties is a file and an applet can't read files
Not really, if a file is in an archive which is specified in an applet's 
archive attribute, the applet can read the file. 

>could not load output_xml.properties (check CLASSPATH)
It is a problem related to JRE 1.4.*. Please read http://xml.apache.org/xalan-
j/faq.html#faq-N1032B . In your case, I don't understand why it works after 
you "create an archive containing the files of xalan". If you are using JRE 1.3 
plugin, it is not an issue. If you are using JRE 1.4.* plugin, it should be the 
same as using xalan.jar in the archive. 

I am quite confused by your next step experiment. You are right applets can not 
access user.dir property by default security setting. In the method transform
(Source, Result), it catches the SecurityException withoud doing anything and 
fallbacks to the following code, where the base variable gets the right value. 
    if(null == base)
      {
        String currentDir = "";
        try {
          currentDir = System.getProperty("user.dir");
        }
        catch (SecurityException se) {}// user.dir not accessible from applet
              
        if (currentDir.startsWith(java.io.File.separator))
          base = "file://" + currentDir;
        else
          base = "file:///" + currentDir;
        
        base = base + java.io.File.separatorChar
               + source.getClass().getName();
      }

Reply via email to