Seite 1 von 1

[solved] Unable to load resource... configed.jar

Verfasst: 23 Nov 2016, 15:09
von mariaczi
Hi.
Firstly, thanks for authors for their good and hard work with OPSI.

My issue: I installed the latest new version of OPSI on Ubuntu server 16.04 using this install guide.
Now, when I try to open url https://192.168.17.37:4447/ and try to start "opsi configuration editor (java web start)" i get this error:

Code: Alles auswählen

[b]Error:[/b] Unable to load resource: https://192.168.17.37:4447/configed/configed.jar
On "Lunch File" tab I have:

Code: Alles auswählen

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="https://192.168.17.37:4447" href="configed.jnlp">
	<information>
		<title>opsi-configed</title>
		<vendor>uib GmbH</vendor>
		<homepage href="http://www.opsi.org/"/>
		<description>Management console application for the opsi client management system</description>
		<description kind="short">opsi management interface (opsi-configed)</description>
		<icon href="configed.gif"/>
		<offline-allowed/>
	</information>
	<security>
		<all-permissions/>
	</security>
	<resources>
		<j2se version="1.7+" max-heap-size="1024M"/>
		<property name="loglevel" value="4" />
		<jar href="configed/configed.jar" main="true"/>
		<jar href="configed/swingx.jar"/>
		<jar href="configed/commons-io.jar"/>
	</resources>
	<application-desc main-class="de.uib.configed.configed">
	<argument>--args</argument><argument>-h;;192.168.17.37:4447</argument>
	</application-desc>
</jnlp>
On "Exception" tab:

Code: Alles auswählen

com.sun.deploy.net.FailedDownloadException: Unable to load resource: https://192.168.17.37:4447/configed/configed.jar
	at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
	at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
	at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
	at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
	at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
On "Wrapped Exception" tab:

Code: Alles auswählen

java.io.FileNotFoundException: https://192.168.17.37:4447/configed/configed.jar
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection.access$200(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
	at sun.net.www.protocol.http.HttpURLConnection$9.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessController.doPrivilegedWithCombiner(Unknreown Source)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
	at com.sun.deploy.net.HttpUtils.followRedirects(Unknown Source)
	at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
	at com.sun.deploy.net.BasicHttpRequest.doGetRequestEX(Unknown Source)
	at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
	at com.sun.deploy.net.DownloadEngine.downloadResource(Unknown Source)
	at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
	at com.sun.deploy.cache.ResourceProviderImpl.getResource(Unknown Source)
	at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
I have oracle java installed:

Code: Alles auswählen

java version "1.8.0_111"
Java(TM) SE Runtime Environment (build 1.8.0_111-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.111-b14, mixed mode)
I try to find this "configed.jar" file on server, but I can't.
How can I resolve this problem / create this jar file?

Re: Unable to load resource... configed.jar

Verfasst: 23 Nov 2016, 17:15
von r.roeder
Hi,

after a lot of searching we saw that there seems to be a communication issue between the Java 1.8 SSL libraries and some python SSL libraries

We think that this the reason why already the download of the configed.jar breaks.

There are several options to work around the problem:

- You can use a local copy from the configed.jar instead of working with the jnlp mechanism and provide an environment parameter to switch back to the SSL Version TLSv1, the call has to be

java.exe -Dhttps.protocols="TLSv1" -jar configed.jar ..

The configed.jar can be found in /usr/lib/configed on the opsi server.

- If you are able to install somewhere an opsi package you can use

http://download.uib.de/opsi4.0/products ... 3.5-1.opsi

and set the fallback property.

- you can install a Java 1.7_079 or older version or an Java 1.9x version.

I hope you will succeed

Regards
Rupert

Re: [solved] Unable to load resource... configed.jar

Verfasst: 24 Nov 2016, 09:52
von mariaczi
Rupert, thank you very much for your explanation.

I check once again if I have configed.jar file in my system and I can't find it as I wrote in my first post.
I haven't installed opsi-configed package on opsi server - don't know why. I solve this via aptitude (sudo aptitude install opsi-configed).

Next, on the workstation when I want open opsi-configed and have installed oracle-java I downloaded Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy and replace policy files on jre/lib/security (as is described in README.txt file from this archive). To have all OK I installed too ca-certificates for java (sudo aptitude install ca-certificates-java).

Now I can run/open "opsi configuration editor (java web start)".

Once again, thank you very much for your help.
Regards
'mariaczi'