Two Laptop Bag*
The moose likes JNLP and Web Start and the fly likes Exception Errors on Web Start 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 "Exception Errors on Web Start" Watch "Exception Errors on Web Start" New topic
Author

Exception Errors on Web Start

Dan Hoddinott
Greenhorn

Joined: Jun 11, 2004
Posts: 5
Hi JavaRanchers,

I am trying to deploy a simple chat application using Java Web Start, the application being a JAR file invoked by a .jnlp link on an HTML page. The chain of events work flawlessly locally, but once installed on the Web server it gags and the Java Web Start manager coughs up the following:



java.security.AccessControlException: access denied (java.io.FilePermission images/DC.jpg 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.checkRead(Unknown Source)

at sun.awt.SunToolkit.getImageFromHash(Unknown Source)

at sun.awt.SunToolkit.getImage(Unknown Source)

at com.domain.danzchat.ClientGUI.<init>(ClientGUI.java:43)

at com.domain.danzchat.sockets.client.DanzChatter.main(DanzChatter.java:35)

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)


I�m admittedly quite green, but can anybody tell me why this is happening and what steps I need to take to correct it? Any advice will be greatly appreciated.

Regards,
Dan
Sudhanshu Techie
Greenhorn

Joined: Aug 12, 2004
Posts: 4
Visit the following Link:-

http://www.vamphq.com/tutorial.html
This will solve ur problem.

Put the following tag in ur jnlp file :-
<security>
<all-permissions/>
</security>

then sign your jar file using jarsigner.

i think this will solve ur problem.


cheers.........
Sudhanshu
Dan Hoddinott
Greenhorn

Joined: Jun 11, 2004
Posts: 5
Thanks a million, Sudhanshu. Adding that <security> code to the .jnlp file and then signing the JAR made it work.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception Errors on Web Start
 
Similar Threads
JAWS behind authenticated proxies?
Need help with java.lang.reflect.InvocationTargetException
jar in Jdk 1.7
Error in starting the server from my RAD 6
Help: java.lang.ClassFormatError encountered