Hi,

If it isn't fixed by using the override, it may be a permissions
problem. Not sure for an applet what you do, but for Tomcat 
with the security manager on, we open up the permissions in the security.policy 
file 
as follows

Permissions required by applications using JAXP:

     permission java.io.FilePermission 
"/${catalina.home}/common/endorsed/xercesImpl.jar", "read";
     permission java.io.FilePermission 
"/${catalina.home}/common/endorsed/xalan.jar", "read";
     permission java.util.PropertyPermission 
"javax.xml.parser.SAXParserFactory", "read, write";
     permission java.util.PropertyPermission 
"javax.xml.transform.TransformerFactory", "read, write";
     permission java.util.PropertyPermission "user.dir", "read";
     permission java.util.PropertyPermission "file.separator", "read";
     permission java.util.PropertyPermission "line.separator", "read";
     permission java.util.PropertyPermission "JavaClass.debug", "read";
     permission java.lang.RuntimePermission "createClassLoader";
     permission java.lang.RuntimePermission "accessDeclaredMembers";

Tom

Gary L Peskin wrote:
> 
> Scott --
> 
> You're probably using the version of XalanJ that comes with JDK 1.4.x
> which might not have this bug fixed.  Try using the endorsed standards
> override mechanism to point to your XalanJ 2.4 version.
> 
> http://xml.apache.org/xalan-j/faq.html#faq-N100C3
> 
> Gary
> > -----Original Message-----
> > From: Scott Moore [mailto:[EMAIL PROTECTED]
> > Sent: Friday, November 22, 2002 8:07 AM
> > To: Xalan User List
> > Subject: Error using Xalan 2.4 in applet
> >
> >
> > I get the following error with Xalan 2.4 in an applet using
> > JRE 1.4.1_01. However, the applet works fine with JRE 1.3.1.
> > Is there an easy solution?
> >
> >
> > java.security.AccessControlException: access denied
> > (java.util.PropertyPermission user.dir read)
> >         at java.security.AccessControlContext.checkPermission(Unknown
> > Source)
> >         at
> > java.security.AccessController.checkPermission(Unknown Source)
> >         at java.lang.SecurityManager.checkPermission(Unknown Source)
> >         at
> > java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
> >         at java.lang.System.getProperty(Unknown Source)
> >         at org.apache.xml.utils.TreeWalker.<init>(Unknown Source)
> >         at
> > org.apache.xml.dtm.ref.dom2dtm.DOM2DTM.<init>(Unknown Source)
> >         at
> > org.apache.xml.dtm.ref.DTMManagerDefault.getDTM(Unknown Source)
> >         at
> > org.apache.xml.dtm.ref.DTMManagerDefault.getDTMHandleFromNode(Unknown
> > Source)
> >         at org.apache.xpath.XPathContext.getDTMHandleFromNode(Unknown
> > Source)
> >         at
> > org.apache.xpath.CachedXPathAPI.eval(CachedXPathAPI.java:326)
> >         at
> > org.apache.xpath.CachedXPathAPI.selectNodeIterator(CachedXPath
> > API.java:216)
> >         at
> > org.apache.xpath.CachedXPathAPI.selectSingleNode(CachedXPathAP
> > I.java:177)
> >         at
> > org.apache.xpath.CachedXPathAPI.selectSingleNode(CachedXPathAP
> > I.java:157)
> >
> >
> > Thanks for any help,
> > Scott
> >

-- 
 Tom Amiro -- SQE Engineer
 WTS - Interoperability and Quality
 voice: 781-442-0589 Fax: 781-442-1437
 eMail: [EMAIL PROTECTED]

Reply via email to