aspose file tools*
The moose likes JNLP and Web Start and the fly likes Failure launching application... access denied Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "Failure launching application... access denied" Watch "Failure launching application... access denied" New topic
Author

Failure launching application... access denied

Jennifer Sohl
Ranch Hand

Joined: Feb 28, 2001
Posts: 455
I am trying to connect to an iSeries via Java Web Start. I have created my .jnlp file which includes the jar file with the main application, and another jar file which contains the classes required to connect to the iSeries via JDBC (jt400.jar). Whenever I try to launch this app through Java Web Start, I keep getting an error message stating that it failed to launch. It is giving me the following error message:



I did a bit of research on this... unfortunately, I did not find out what I am doing wrong. Do I need to do something special with security in the .jnlp file? I thought maybe I needed to sign the jar file, but then I read somewhere that it wasn't required?? Can anyone steer me in the right direction?

Thanks!
Jennifer Sohl
Ranch Hand

Joined: Feb 28, 2001
Posts: 455
Did some more research on this, and ended up figuring out that I needed to add SocketPermission for my iSeries in the java.policy file that is located in the lib/security folder of my java runtime installation. And guess what??? It worked! I was able to launch the .jnlp file right off the web server. However, when I executed the jnlp file through a browser on the client... same error message (access denied). Do I have to go to every client workstation and change their java.policy file to make the app run? Is there a different way to do this so I don't have to mess with all the workstations?
Thanks!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Failure launching application... access denied