javaws CLI with Icedtea-web

Chris Lee chris.lee at cern.ch
Mon Jun 30 14:39:09 UTC 2014


Hi Jiri

Thanks so much

To explain as well, what I am trying to do is use a specific proxy server and port for a specific website.
I had thought that a link to the CLI might be the quickest if I can get it working, If there is an easier way to configure, then I am open to suggestions. 

> 1.4.1 is outdated. If you need for some reason to stay with 1.4, please update to 1.4.2, however - please swap to 1.5. It was released few month ago, is stable, and a a lot of fixes was fixed here.

This installation is for the ATLAS experiment at CERN. For security reason, we are usually compelled to use what is available in the SLC repos, which unfortunately for me right now is 1.4.1
Below are the details:

[chlee at pc-atlas-cr-35 ~]$ rpm -qi icedtea-webName        : icedtea-web                  Relocations: (not relocatable)
Version     : 1.4.1                             Vendor: Scientific Linux CERN, http://cern.ch/linux
Release     : 0.el6                         Build Date: Fri 22 Nov 2013 02:38:34 PM CET
Install Date: Tue 08 Apr 2014 03:35:08 PM CEST      Build Host: lxdist02
Group       : Applications/Internet         Source RPM: icedtea-web-1.4.1-0.el6.src.rpm
Size        : 1146953                          License: LGPLv2+ and GPLv2 with exceptions
Signature   : DSA/SHA1, Fri 22 Nov 2013 02:50:08 PM CET, Key ID 5e03fde51d1e034b
Packager    : CERN Linux Support <linux.support at cern.ch>
URL         : http://icedtea.classpath.org/wiki/IcedTea-Web
Summary     : Additional Java components for OpenJDK - Java browser plug-in and Web Start implementation
Description :
The IcedTea-Web project provides a Java web browser plugin, an implementation
of Java Web Start (originally based on the Netx project) and a settings tool to
manage deployment settings for the aforementioned plugin and Web Start
implementations.

> It is long time since somebody was playing with -property switch, TBH it was forgotten to be tested, but it should be supported.
> 
> In meantime  (before I look into it more deeply) maybe you can elaborate with -DpropertyName=value instead of -property propertyName=value and/or -Xnofork - each of those 4 (3new) combinations may lead to different results.

Essentially like this then?  javaws -verbose -Ddeployment.proxy.type=1 -Ddeployment.proxy.http.host=atlasgw-exp.cern.ch -Dproxy.http.port=3128 http://dipbrowser.web.cern.ch/dipbrowser/launch.jnlp
I seem to get the same output as with -property as can be seen below, which lead me to believe i might be using the wrong syntax or..

> In verbose mode,  the arguments should be reprinted. May you post the logs?
> 
> In 1.5 you have developer console. It is providing better logs then 1.4 stdouts/errs.
> 

^C[chlee at pc-atlas-cr-35 .icedtea]$ javaws -verbose -Dproxy.http.port=3128 http://dipbrowser.web.cern.ch/dipbrowser/launch.jnlp
java.io.FileNotFoundException: /atlas-home/1/chlee/.icedtea/deployment.properties (No such file or directory)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:146)
	at java.io.FileReader.<init>(FileReader.java:72)
	at net.sourceforge.jnlp.config.DeploymentConfiguration.parsePropertiesFile(DeploymentConfiguration.java:609)
	at net.sourceforge.jnlp.config.DeploymentConfiguration.findSystemConfigFile(DeploymentConfiguration.java:424)
	at net.sourceforge.jnlp.config.DeploymentConfiguration.load(DeploymentConfiguration.java:236)
	at net.sourceforge.jnlp.config.DeploymentConfiguration.load(DeploymentConfiguration.java:205)
	at net.sourceforge.jnlp.runtime.JNLPRuntime.initialize(JNLPRuntime.java:194)
	at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:186)
	at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:53)
	at java.security.AccessController.doPrivileged(Native Method)
	at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:177)
No User level deployment.properties found.
Starting security dialog thread
Using firefox's profiles file: /atlas-home/1/chlee/.mozilla/firefox/profiles.ini
Found preferences file: /atlas-home/1/chlee/.mozilla/firefox/4mi0hwbe.default/prefs.js
Read 77 entries from Firefox's preferences
JNLP file location: http://dipbrowser.web.cern.ch/dipbrowser/launch.jnlp
call privileged method: getCodeBase
        result: null
Status: CONNECT STARTED +(CONNECT STARTED) @ /dipbrowser/launch.jnlp
Status: CONNECT DOWNLOAD STARTED +(DOWNLOAD) @ /dipbrowser/launch.jnlp
Status: CONNECTING DOWNLOAD STARTED +(CONNECTING) -(CONNECT) @ /dipbrowser/launch.jnlp
All possible urls for location=http://dipbrowser.web.cern.ch/dipbrowser/launch.jnlp state=CONNECTING DOWNLOAD STARTED : [http://dipbrowser.web.cern.ch/dipbrowser/launch.jnlp, http://dipbrowser.web.cern.ch/dipbrowser/launch.jnlp]
Selecting proxy for: http://dipbrowser.web.cern.ch/dipbrowser/launch.jnlp
Browser proxy option "4" (Automatic) not supported yet.
Browser selected proxies: [DIRECT]
Selected proxies: [DIRECT]
Selecting proxy for: socket://dipbrowser.web.cern.ch:80
Browser proxy option "4" (Automatic) not supported yet.
Browser selected proxies: [DIRECT]
Selected proxies: [DIRECT]


[chlee at pc-atlas-cr-35 ~]javaws -verbose -property deployment.proxy.type=1 -property deployment.proxy.http.host=atlasgw-exp.cern.ch -property deployment.proxy.http.port=3128 http://dipbrowser.web.cern.ch/dipbrowser/launch.jnlp
java.io.FileNotFoundException: /atlas-home/1/chlee/.icedtea/deployment.properties (No such file or directory)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:146)
	at java.io.FileReader.<init>(FileReader.java:72)
	at net.sourceforge.jnlp.config.DeploymentConfiguration.parsePropertiesFile(DeploymentConfiguration.java:609)
	at net.sourceforge.jnlp.config.DeploymentConfiguration.findSystemConfigFile(DeploymentConfiguration.java:424)
	at net.sourceforge.jnlp.config.DeploymentConfiguration.load(DeploymentConfiguration.java:236)
	at net.sourceforge.jnlp.config.DeploymentConfiguration.load(DeploymentConfiguration.java:205)
	at net.sourceforge.jnlp.runtime.JNLPRuntime.initialize(JNLPRuntime.java:194)
	at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:186)
	at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:53)
	at java.security.AccessController.doPrivileged(Native Method)
	at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:177)
No User level deployment.properties found.
Starting security dialog thread
Using firefox's profiles file: /atlas-home/1/chlee/.mozilla/firefox/profiles.ini
Found preferences file: /atlas-home/1/chlee/.mozilla/firefox/4mi0hwbe.default/prefs.js
Read 77 entries from Firefox's preferences
JNLP file location: http://dipbrowser.web.cern.ch/dipbrowser/launch.jnlp
call privileged method: getCodeBase
        result: null
Status: CONNECT STARTED +(CONNECT STARTED) @ /dipbrowser/launch.jnlp
Status: CONNECT DOWNLOAD STARTED +(DOWNLOAD) @ /dipbrowser/launch.jnlp
Status: CONNECTING DOWNLOAD STARTED +(CONNECTING) -(CONNECT) @ /dipbrowser/launch.jnlp
All possible urls for location=http://dipbrowser.web.cern.ch/dipbrowser/launch.jnlp state=CONNECTING DOWNLOAD STARTED : [http://dipbrowser.web.cern.ch/dipbrowser/launch.jnlp, http://dipbrowser.web.cern.ch/dipbrowser/launch.jnlp]
Selecting proxy for: http://dipbrowser.web.cern.ch/dipbrowser/launch.jnlp
Browser proxy option "4" (Automatic) not supported yet.
Browser selected proxies: [DIRECT]
Selected proxies: [DIRECT]
Selecting proxy for: socket://dipbrowser.web.cern.ch:80
Browser proxy option "4" (Automatic) not supported yet.
Browser selected proxies: [DIRECT]
Selected proxies: [DIRECT]

> 
cat .icedtea/deployment.properties 
deployment.proxy.type=1
deployment.proxy.http.host=atlasgw-exp.cern.ch
deployment.proxy.http.port=3128[chlee at pc-atlas-cr-35 ~]$ 
[chlee at pc-atlas-cr-35 ~]$ javaws -verbose http://dipbrowser.web.cern.ch/dipbrowser/launch.jnlp
Loading User level properties from: /atlas-home/1/chlee/.icedtea/deployment.properties
Starting security dialog thread
Using firefox's profiles file: /atlas-home/1/chlee/.mozilla/firefox/profiles.ini
Found preferences file: /atlas-home/1/chlee/.mozilla/firefox/4mi0hwbe.default/prefs.js
Read 77 entries from Firefox's preferences
JNLP file location: http://dipbrowser.web.cern.ch/dipbrowser/launch.jnlp
call privileged method: getCodeBase
        result: null
Status: CONNECT STARTED +(CONNECT STARTED) @ /dipbrowser/launch.jnlp
Status: CONNECT DOWNLOAD STARTED +(DOWNLOAD) @ /dipbrowser/launch.jnlp
Status: CONNECTING DOWNLOAD STARTED +(CONNECTING) -(CONNECT) @ /dipbrowser/launch.jnlp
All possible urls for location=http://dipbrowser.web.cern.ch/dipbrowser/launch.jnlp state=CONNECTING DOWNLOAD STARTED : [http://dipbrowser.web.cern.ch/dipbrowser/launch.jnlp, http://dipbrowser.web.cern.ch/dipbrowser/launch.jnlp]
Selecting proxy for: http://dipbrowser.web.cern.ch/dipbrowser/launch.jnlp
Selected proxies: [HTTP @ atlasgw-exp.cern.ch/10.156.32.31:3128]
best url for location=http://dipbrowser.web.cern.ch/dipbrowser/launch.jnlp state=CONNECTING DOWNLOAD STARTED is http://dipbrowser.web.cern.ch/dipbrowser/launch.jnlp by HEAD
Selecting proxy for: http://dipbrowser.web.cern.ch/dipbrowser/launch.jnlp
Selected proxies: [HTTP @ atlasgw-exp.cern.ch/10.156.32.31:3128]
isCurrent: http://dipbrowser.web.cern.ch/dipbrowser/launch.jnlp = true
Status: CONNECTED DOWNLOAD STARTED +(CONNECTED) -(CONNECTING) @ /dipbrowser/launch.jnlp
Status: CONNECTED DOWNLOADED STARTED +(DOWNLOADED) -(DOWNLOAD) @ /dipbrowser/launch.jnlp

Thanks in Advance
Chris



More information about the distro-pkg-dev mailing list