No access to Filesystem in spite of all-permissions
Hi,
I've written an application and want to start it via JWS. This is my JNLP-File:
<?xml version="1.0" encoding="UTF-8" ?>
<jnlp spec="1.0" codebase="http://foo/" href="bar.jnlp">
<information>
<title>foo</title>
<vendor>me</vendor>
<homepage href="http://foo/" />
<description>foobar</description>
<offline-allowed />
</information>
<security>
<all-permissions />
</security>
<resources>
<j2se version="1.5+" href="http://java.sun.com/products/autodl/j2se" />
<jar href="foo.jar" main="true"/>
<jar href="comm.jar"/>
<jar href="ojdbc14_10.1.0.4.jar"/>
</resources>
<application-desc />
</jnlp>
As you can see, I've set the all-permissions-element.
The application needs to access the COM-port and an Oracle-DB, so two jars are needed. I have signed these two jars and my own with "jarsigner foo.jar myalias" and they seem to by signed correctly. Here's the output of "jarsigner -verify":
V:\htdocs\jnlp>jarsigner -verify foo.jar
jar verified.
V:\htdocs\jnlp>jarsigner -verify ojdbc14_10.1.0.4.jar
jar verified.
V:\htdocs\jnlp>jarsigner -verify comm.jar
jar verified.
But when i start my app via JSW, i get the following error:
java.io.FilePermission.init(Unknown Source)
java.io.FilePermission.<init>(Unknown Source)
java.lang.SecurityManager.checkDelete(Unknown Source)
javax.comm.CommPortIdentifier.getPortIdentifierts(CommPortIdentifiert.java:70)
...
Thanks a lot for your help in advance!
Regards,
Markus

