Results 1 to 2 of 2
- 05-23-2012, 12:12 PM #1Member
- Join Date
- May 2012
- Rep Power
Webstart application through proxy not working
I have built a small webstart application which uses RMI.
ServerGetTime timer = new ServerGetTime();
Registry registry = LocateRegistry.createRegistry(1099);
Registry registry = LocateRegistry.getRegistry("<server-ip>", 1099);
server = (ServerGetTimeInt) registry.lookup("TimeServer");
The client application uses webstart to run and connect to the RMI server. jar files are signed. If the client connects directly to the internet everything works fine.
If the client is located behind a http proxy (with login required), it cannot find its way to the server and returns following error message:
java.rmi.ConnectException: Connection refused to host: <server-ip>
java.net.ConnectException: Connection timed out
even after proxy and user parameters have been entered correctly into the java program.
Behind the http proxy, if I start the client as a local application using:
java -classpath . -Djava.security.policy=./allaccess.policy -jar client.jar
it also works fine :)
I wonder what I am doing wrong or what I am forgetting. Could please anybody help?
With a direct internet connection the webstart application runs fine. When the client is behind a proxy server, it only works as local application but not as a webstart application.
This is the jnlp file: (webstart is called from a https site)
<?xml version="1.0" encoding="utf-8"?>
<!-- JNLP File -->
<jnlp spec="1.0+" codebase="https://<server-ip>/myAppl" href="myAppl.jnlp">
<icon kind="splash" href="pict/test.jpg"/>
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" java-vm-args="-Djava.security.policy=H:\\allaccess.policy"/>
- 05-23-2012, 04:53 PM #2
- By choag in forum New To JavaReplies: 0Last Post: 08-26-2011, 03:42 PM
- By Deenadayalan in forum New To JavaReplies: 0Last Post: 07-07-2011, 05:52 AM
- By ragnonerodocet in forum Java ServletReplies: 2Last Post: 04-18-2011, 10:15 AM
- By SegFault in forum Advanced JavaReplies: 0Last Post: 09-22-2010, 05:32 PM
- By Psyclone in forum AWT / SwingReplies: 1Last Post: 03-26-2010, 11:41 PM