Skip to main content

j2ee client and java web start

1 reply [Last post]
Joined: 2006-05-05


I'am developing a client side component for our J2EE application. We want to download and launch this client from the app server (jboss) using Java Web Start. We have defined the jnlp file like this:

<?xml version="1.0" encoding="utf-8"?>

Keld Electronics.


And we have signed the jar file. When we try to launch the client we get the following exception in the java console: access denied ( connect,resolve)
at Source)
at Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkConnect(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.checkConnectPermission(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(
at org.jnp.interfaces.NamingContext.lookup(
at javax.naming.InitialContext.lookup(Unknown Source)
at klwebspy.locator.ServiceLocator.getHome(
at klwebspy.applets.KLWebSpy.jbInit(
at klwebspy.applets.KLWebSpy.init(
at klwebspy.applets.KLWebSpy.main(
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 Source)
at Source)

This exception is thrown when the client tries to connect to the ejb components, this components are in the same server that the client jar file. We don't know why this exception is thrown because we have signed the jar and we have provide all permissions in the jnlp file. �Can you help?

Thanks in advance


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Basically this exception is thrown when your Web Start application tries to connect to a remote host other as the one where it came from. Web Start application are in a similar sandbox as Applets are.

I had the same problem. Reasons:
(1) I used an additional 3rd party JAR file wich was not signed
(2) My JNLP file invoked a secondary jnlp that did NOT have all-permissions granted

Hope that helps,