Gary L Peskin wrote:
The classes that are in the stack trace don't explicitly invoke the
SecurityManager. They just seem to do ordinary stuff. I have a few
questions:
1. Does your JNLP file specify an application-desc element? If possible,
can you send your JNLP file?
Yes, I'll include it below.
2. Does your security element specify <all-permissions/>?
Definitely, and it (and all jars) are signed.
3. Does your Xalan application run okay from the command line (ie not in
the Web Start environment)?
Yes.
4. If you add the following to one of your initial classes:
System.err.println("SecurityManager = " +
System.getSecurityManager());
what does it show?
I'll get back to you on that one.
What I've found out is that using document() in a template causes Xalan
to cache the document.
That's where this is bombing. Everything else, other templates, file
writes, etc, is working fine.
Apparently the processing instruction xalan-doc-cache-off can disable
this caching, but only
in an xsl:for-each. I tried that, but the issue remained. I'm re-writing
the template to not use document().
Basically, the XSL had a lookup table in it, that I refered to with
document(''), and I'm re-writing that part to instead be a massive
xsl:choose.
Here is the JNLP.
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File for GRS DataViewer -->
<jnlp spec="1.0+"
codebase="http://grs.lpl.arizona.edu/grs2001/sw/pds/"
href="archiver.jnlp">
<information>
<vendor>GRS Software</vendor>
<title>GRS Archiver</title>
<shortcut online="false">
<desktop/>
<menu submenu="GRS Applications"/>
</shortcut>
<description>
The GRS Archiver creates delivery-ready archives of GRS
data products.
</description>
<description kind="short">
PDS Archiver application.
</description>
<icon href="gammas_64x64.jpg"/>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.4+"/>
<jar href="archiver.jar"/>
<jar href="classes12_g.jar"/>
<property name="user.timezone" value="UTC"/>
</resources>
<resources os="SunOS" arch="sparc">
<nativelib href="solaris_sparc.jar"/>
</resources>
<resources os="Linux" arch="x86">
<nativelib href="linux_x86.jar"/>
</resources>
<resources os="Windows" arch="x86">
<nativelib href="windows_x86.jar"/>
</resources>
<application-desc main-class="grs.apps.pdsdriver.PdsArchiverApp">
</application-desc>
</jnlp>