[OpenMap Users] Java Web Starting problems

From: Joe Rubel <joe.rubel_at_noaa.gov>
Date: Tue, 11 Jul 2006 14:26:13 -0800

I am having difficulty with deployment of my OpenMap application and was
wondering if others are Web Starting their OpenMap
base applications?

I have the compiled the OpenMap Java Jramework using under Fedora2 using
ant and it created the openmap.jar in the "lib" directory that I am now
trying to Java Web Start by appropriate packaging using a jnlp file and
loading both onto the server. (The jar executes just fine on the local
machine using java -jar ... so I know it is good). I have attached
the jnlp file for analysis in case I am doing something wrong there as
well. After pointing to this jnlp file on the server via the browser,
the openmap.jar downloads to my machine just fine then the console
window from the JVM complains as the OpenMap tries to start:

#### Java Web Start Error:
#### access denied (java.util.PropertyPermission user.dir read)

So, I then proceeded to "sign" the jar and allow all permissions tag in
the jnlp file. This technique has always worked in the past to
alleviate any permission problems--- but not this time. I get the same
results. I am not sure what is happening now.

Has anyone been successful with their Java Web Starting of their OpenMap
applications? Seems like it is possible since the BBN Demo itself is
JavaWebStarted -- but their jnlp show "applet-desc" tags not
application. Any ideas on JWS and OpenMap would be greatly
appreciated. Thanks. --joe

...details of the stack dump below...

.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 java.io.Win32FileSystem.getUserPath(Unknown Source)
    at java.io.Win32FileSystem.resolve(Unknown Source)
    at java.io.File.getAbsolutePath(Unknown Source)
    at sun.awt.shell.Win32ShellFolder2.<init>(Unknown Source)
    at sun.awt.shell.Win32ShellFolder2.listFiles(Unknown Source)
    at sun.awt.shell.ShellFolder.listFiles(Unknown Source)
    at sun.awt.shell.Win32ShellFolderManager2.get(Unknown Source)
    at sun.awt.shell.ShellFolder.get(Unknown Source)
javax.swing.plaf.metal.MetalFileChooserUI.installComponents(Unknown Source)
    at javax.swing.plaf.basic.BasicFileChooserUI.installUI(Unknown Source)
    at javax.swing.plaf.metal.MetalFileChooserUI.installUI(Unknown Source)
    at javax.swing.JComponent.setUI(Unknown Source)
    at javax.swing.JFileChooser.updateUI(Unknown Source)
    at javax.swing.JFileChooser.setup(Unknown Source)
    at javax.swing.JFileChooser.<init>(Unknown Source)
    at javax.swing.JFileChooser.<init>(Unknown Source)
    at com.bbn.openmap.PropertyHandler.<init>(PropertyHandler.java:223)
    at com.bbn.openmap.PropertyHandler.<init>(PropertyHandler.java:207)
    at com.bbn.openmap.gui.BasicMapPanel.create(BasicMapPanel.java:129)
    at com.bbn.openmap.gui.BasicMapPanel.<init>(BasicMapPanel.java:117)
    at com.bbn.openmap.gui.BasicMapPanel.<init>(BasicMapPanel.java:102)
    at com.bbn.openmap.app.OpenMap.<init>(OpenMap.java:72)
    at com.bbn.openmap.app.OpenMap.create(OpenMap.java:162)
    at com.bbn.openmap.app.OpenMap.main(OpenMap.java:183)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at com.sun.javaws.Launcher.executeApplication(Unknown Source)
    at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
    at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
    at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
    at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
    at com.sun.javaws.Launcher.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)


[To unsubscribe to this list send an email to "majdart_at_bbn.com"
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Jul 11 2006 - 18:27:01 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:07 EDT