File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Distributed Java and the fly likes ConnectException in Webstart clients  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "ConnectException in Webstart clients  " Watch "ConnectException in Webstart clients  " New topic

ConnectException in Webstart clients

Nick De Graeve

Joined: Aug 31, 2006
Posts: 4
We have a client-server application with JBoss as AS and the clients are Swing downloaded via Webstart. Communication between C & S is RMI and JMS.

On some locations the clients can't connect to the server: a java.rmi.Connectexception is thrown because of a connection timeout.

What could be wrong? We have no idea why it only works on some locations.

JBoss is behind a router and following ports are forwarded: 1098, 1099, 4444, 8080 and 8093. It is started with following switches: and -Djava.rmi.server.useLocalHostname=false

The client is started with <property name="java.naming.provider.url" value="jnp://"/>,
<property name="java.naming.factory.initial" value="org.jnp.interfaces.NamingContextFactory"/> and
<property name="java.naming.factory.url.pkgs" value="org.jboss.naming rg.jnp.interfaces"/>
The stacktrace is:

[ August 31, 2006: Message edited by: Nick De Graeve ]
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

Is "" a public server? When I try to ping it I get connection refused, and if I try to open it in a web browser I get redirected to "".

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
wood burning stoves
subject: ConnectException in Webstart clients