Results 1 to 2 of 2
  1. #1
    gonzjav is offline Member
    Join Date
    May 2012
    Rep Power

    Default Webstart application through proxy not working

    I have built a small webstart application which uses RMI.

    ServerGetTime timer = new ServerGetTime();
    UnicastRemoteObject.exportObject(timer, 0);
    Registry registry = LocateRegistry.createRegistry(1099);
    registry.rebind("TimeServer", timer);

    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> 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 . -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">

    <homepage href="https://<server-ip>/myAppl"/>
    <description kind="short">Test</description>
    <shortcut online="true">
    <menu submenu="Test"/>
    <icon href="pict/test.gif"/>
    <icon kind="splash" href="pict/test.jpg"/>


    <j2se version="1.6+" href="" java-vm-args="\\allaccess.policy"/>
    <jar href="client.jar"/>


    <application-desc main-class="test.client.MyAppl"/>


    Please help!
    Cheers, Frank

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Forum Police
    Join Date
    Sep 2008
    Madgaon, Goa, India
    Rep Power

    Default Re: Webstart application through proxy not working

    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

Similar Threads

  1. Proxy.pac file not working in IE9
    By choag in forum New To Java
    Replies: 0
    Last Post: 08-26-2011, 04:42 PM
  2. How do I know java webstart is working fine?
    By Deenadayalan in forum New To Java
    Replies: 0
    Last Post: 07-07-2011, 06:52 AM
  3. How to test my proxy application on localhost?
    By ragnonerodocet in forum Java Servlet
    Replies: 2
    Last Post: 04-18-2011, 11:15 AM
  4. Almost got my proxy server working
    By SegFault in forum Advanced Java
    Replies: 0
    Last Post: 09-22-2010, 06:32 PM
  5. Replies: 1
    Last Post: 03-26-2010, 11:41 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts