File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JNLP and Web Start and the fly likes JAWS behind authenticated proxies? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JNLP and Web Start
Bookmark "JAWS behind authenticated proxies?" Watch "JAWS behind authenticated proxies?" New topic
Author

JAWS behind authenticated proxies?

Sudharsan Govindarajan
Ranch Hand

Joined: Jul 03, 2002
Posts: 319
Hi!
Will JAWS face problem accessing the deployed applications from behind a proxy and firewall? My proxy requires authentication but there is no way to confgure the username and password in the JAWS application.
-sudharsan
Chantal Ackermann
Ranch Hand

Joined: Sep 28, 2000
Posts: 508
We have an JWS app using ssl and https. JWS, or/and the browser will pop up an authentication dialog. You don't have to implement that yourself.
chantal
Sudharsan Govindarajan
Ranch Hand

Joined: Jul 03, 2002
Posts: 319
chantal,
When i try to access the Poseidon for UML through Java Web Start, i get the following Error

And the Exception is

This is the wrapped Exception

What could be the reason for this Exception?
thanks
Sudharsan
Chantal Ackermann
Ranch Hand

Joined: Sep 28, 2000
Posts: 508
hi,
I can't say what the reason is. Hm, obviously there is a problem with the location of the jnlp-file. But I suppose this problem is caused through the download. so I would suggest to things:
- delete the JavaWebStart cache. This directory is in your home under ".javaws" (in my case (linux) its:
"~/.javaws/cache"
deleting this directory will remove all files that have been downloaded by jws, including the jnlp files. (using the javaws admin gui is not that efficient, I suspect.)
If you don't want to remove all the cache, remove only the Poseidon directory: something like cache/http/wwwgentlewarecom/...
- if you have downloaded any jnlp files (Poseidon) yourself and saved them at another location, remove them as well.
- try again.
If it does not work this time, and you didn't try it, yet, then download the jnlp file directly using "save link target as" in your browser.
start javaws from the commandline giving this jnlp file as argumen "$ javaws Poseidon....jnlp"
hope this will help
Chantal
Sudharsan Govindarajan
Ranch Hand

Joined: Jul 03, 2002
Posts: 319
hmmm.
Nothing works out. I've cleared the cache..
tried running javaws command line with the downloaded JNLP file...
The Java WS readMe says

Java Web Start will also prompt you for a user name and password required to access an authenticating proxy server.

But i'm not getting the passowrd entry dialog. Can that be a reason?

Sudharsan
Chantal Ackermann
Ranch Hand

Joined: Sep 28, 2000
Posts: 508
I have a last option. I didn't think of it, the last time, sorry.
Start the javaws admin gui. go to Preferences (or Options? I have a localized version here, so I don't know what's there in English). A dialog opens where you can chose between:
Proxies:
- without
- use Browser
- manually
In my case, "use Browser" is selected. Sometimes it is disabled, I don't know if you can change the settings in the configuration file directly, in that case.
I would try to switch between theses options and see whether it changes something. It should do it!
Chantal
Sudharsan Govindarajan
Ranch Hand

Joined: Jul 03, 2002
Posts: 319
I tried those options too. But it did'nt work out. Anyway thanks chantal!
-sudharsan
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JAWS behind authenticated proxies?