Thread: [Openjnlp-devel] Works with http proxies through firewall?
Brought to you by:
kherr
From: Hanasaki J. <han...@ha...> - 2002-07-02 17:16:57
|
Does OpenJNLP work throgh http proxied firewalls? If so, how is it configured? I have tried the Java Env settings of: # JAVA PROXY SETTINGS export proxySet=true export proxyHost=firewall export proxyPort=8080 without success. These are the right settings for my firewall/proxy. Thank you, |
From: Kevin H. <ke...@na...> - 2002-07-02 18:44:12
|
On Tuesday, July 2, 2002, at 12:17 PM, Hanasaki JiJi wrote: > Does OpenJNLP work throgh http proxied firewalls? If so, how is it > configured? Unfortunately OpenJNLP has not had any proxy logic added to it. That being said, there might be a way to get it to work: > I have tried the Java Env settings of: > # JAVA PROXY SETTINGS > export proxySet=true > export proxyHost=firewall > export proxyPort=8080 Since OpenJNLP uses the built-in HTTP protocol handler, this should be the right approach. There could be issues with the environment variables not being picked up, so I'd recommend try setting the proxy values as java properties. You should be able to modify the openjnlp.sh script and add these properties by changing the PROPS line: PROPS="-DproxySet=true -DproxyHost=firewall -DproxyPort=8080" I have no proxy to test against, but that should actually set the Java System properties for proxying every time OpenJNLP starts up. Note: Unfortunately that won't change the behavior of the launcher, so once an app is launched by OpenJNLP I'm afraid the proxy settings will not be set for the app. |
From: Hanasaki J. <han...@ha...> - 2002-07-02 18:56:04
|
Modifying the PROPS in the startup script got the proxy config going. HOwever! The application will not run. SwingSet2, from Sun, downloads fine. When it is run, there is a msg that there are no security settings. I clicked "continue" and SwingSet2 did not run. No error was given. Help!??? Kevin Herrboldt wrote: > On Tuesday, July 2, 2002, at 12:17 PM, Hanasaki JiJi wrote: > >> Does OpenJNLP work throgh http proxied firewalls? If so, how is it >> configured? > > > Unfortunately OpenJNLP has not had any proxy logic added to it. That > being said, there might be a way to get it to work: > >> I have tried the Java Env settings of: >> # JAVA PROXY SETTINGS >> export proxySet=true >> export proxyHost=firewall >> export proxyPort=8080 > > > Since OpenJNLP uses the built-in HTTP protocol handler, this should be > the right approach. There could be issues with the environment variables > not being picked up, so I'd recommend try setting the proxy values as > java properties. > > You should be able to modify the openjnlp.sh script and add these > properties by changing the PROPS line: > > PROPS="-DproxySet=true -DproxyHost=firewall -DproxyPort=8080" > > > I have no proxy to test against, but that should actually set the Java > System properties for proxying every time OpenJNLP starts up. > > Note: Unfortunately that won't change the behavior of the launcher, so > once an app is launched by OpenJNLP I'm afraid the proxy settings will > not be set for the app. > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Openjnlp-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openjnlp-devel > |
From: Kevin H. <ke...@na...> - 2002-07-02 19:38:32
|
On Tuesday, July 2, 2002, at 01:56 PM, Hanasaki JiJi wrote: > Modifying the PROPS in the startup script got the proxy config going. > > HOwever! The application will not run. SwingSet2, from Sun, downloads > fine. When it is run, there is a msg that there are no security > settings. I clicked "continue" and SwingSet2 did not run. No error > was given. Help!??? Is that the OpenJNLP security warning dialog? That is normal. SwingSet2 should run fine. (I just tested it on my machine). Do you see any messages in the OpenJNLP console window? One possible reason it might not work is if SwingSet2 tries to retrieve network resources. The proxy settings won't be set properly for SwingSet2 because it is running in a separate JVM which is not invoked using the shell script. For testing try Cicerone at <http://www.puppethead.com/java/apps/Cicerone.jnlp>. It will show you what properties are set in the JVM of a launched app. And it's a very simple app so if it doesn't work there is something strange going on. Maybe the OpenJNLP external launcher could be changed to carry forward any proxy setting properties. Hmm... |
From: Scott K. <sko...@ap...> - 2002-07-02 19:50:35
|
Is this on Mac OS X or Windows? On Mac OS X just set your proxy information in the Network pref panel and the VM will pick them up. Scott On Tuesday, July 2, 2002, at 03:38 PM, Kevin Herrboldt wrote: > On Tuesday, July 2, 2002, at 01:56 PM, Hanasaki JiJi wrote: > >> Modifying the PROPS in the startup script got the proxy config going. >> >> HOwever! The application will not run. SwingSet2, from Sun, >> downloads fine. When it is run, there is a msg that there are no >> security settings. I clicked "continue" and SwingSet2 did not run. >> No error was given. Help!??? > > Is that the OpenJNLP security warning dialog? That is normal. > SwingSet2 should run fine. (I just tested it on my machine). Do you > see any messages in the OpenJNLP console window? > > One possible reason it might not work is if SwingSet2 tries to > retrieve network resources. The proxy settings won't be set properly > for SwingSet2 because it is running in a separate JVM which is not > invoked using the shell script. > > For testing try Cicerone at > <http://www.puppethead.com/java/apps/Cicerone.jnlp>. It will show you > what properties are set in the JVM of a launched app. And it's a very > simple app so if it doesn't work there is something strange going on. > > Maybe the OpenJNLP external launcher could be changed to carry forward > any proxy setting properties. Hmm... > ------------------ Scott Kovatch Apple Computer Java Runtime Classes Cleveland Hts, OH sko...@ap... |
From: Hanasaki J. <han...@ha...> - 2002-07-02 20:05:02
|
Its Linux. Scott Kovatch wrote: > Is this on Mac OS X or Windows? On Mac OS X just set your proxy > information in the Network pref panel and the VM will pick them up. > > Scott > > On Tuesday, July 2, 2002, at 03:38 PM, Kevin Herrboldt wrote: > >> On Tuesday, July 2, 2002, at 01:56 PM, Hanasaki JiJi wrote: >> >>> Modifying the PROPS in the startup script got the proxy config going. >>> >>> HOwever! The application will not run. SwingSet2, from Sun, >>> downloads fine. When it is run, there is a msg that there are no >>> security settings. I clicked "continue" and SwingSet2 did not run. >>> No error was given. Help!??? >> >> >> Is that the OpenJNLP security warning dialog? That is normal. >> SwingSet2 should run fine. (I just tested it on my machine). Do you >> see any messages in the OpenJNLP console window? >> >> One possible reason it might not work is if SwingSet2 tries to >> retrieve network resources. The proxy settings won't be set properly >> for SwingSet2 because it is running in a separate JVM which is not >> invoked using the shell script. >> >> For testing try Cicerone at >> <http://www.puppethead.com/java/apps/Cicerone.jnlp>. It will show you >> what properties are set in the JVM of a launched app. And it's a very >> simple app so if it doesn't work there is something strange going on. >> >> Maybe the OpenJNLP external launcher could be changed to carry forward >> any proxy setting properties. Hmm... >> > > ------------------ > Scott Kovatch > Apple Computer > Java Runtime Classes > Cleveland Hts, OH > sko...@ap... > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Openjnlp-devel mailing list > Ope...@li... > https://lists.sourceforge.net/lists/listinfo/openjnlp-devel > |