Greetings, I've having trouble debugging a peculiar issue.
I'm developing a Java Web Start application that makes extensive use of
XSLT. My XSL templates are packaged in a Jar file with the application.
I'm testing with Java 1.5.0_04, though the app should work in Java 1.4
and higher. All the Jars distributed with the application are signed,
and the JNLP specifies to give the application all permissions.
So far, so good. However, when performing a particular XSL transform
(which happens to be particularly large), I get a security exception.
The exception is:
com.sun.org.apache.xalan.internal.xsltc.TransletException:
java.security.AccessControlException: access denied
(java.io.FilePermission C:\Documents and Settings\guym\Application
Data\Sun\Java\Deployment\cache\javaws\http\Dgrs.lpl.arizona.edu\P80\DMgrs2001\DMsw\DMpds\RMarchiver.jar
read)
All my transforms are done like this:
URL xsl = getClass().getResource(template);
InputStream is = xsl.openStream();
Source source = new StreamSource(is, xsl.toExternalForm());
TransformerFactory factory =
TransformerFactory.newInstance();
Transformer trans = factory.newTransformer(source);
trans.transform(new DOMSource(xml), new StreamResult(output));
I'm working on getting a stack trace (apparently not so simple w/ Web
Start), but until then, does anyone know what might be causing this? All
other transforms up to this point in the application work fine, and this
error is exactly repeatable.
--
Guy
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]