Bug 1057706

Summary: Jnlp program stopped working after an upgrade.
Product: [Fedora] Fedora Reporter: Aniruddha <mailingdotlist>
Component: icedtea-webAssignee: jiri vanek <jvanek>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: david, dbhole, jvanek, omajid
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-12 07:48:57 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Aniruddha 2014-01-24 16:09:20 UTC
Description of problem:
jnlp program stopped working after an upgrade.

How reproducible:
Start the jnlp file from the commandline

Actual results:
/usr/bin/javaws: line 89: /usr/lib/jvm/jre-openjdk/bin/java: No such file or directory

Expected results:
Programs starts

Additional info:
# alternatives --config java

There is 1 program that provides 'java'.

  Selection    Command
-----------------------------------------------
*+ 1           /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.4.0.fc20.x86_64/jre/bin/java

Comment 1 jiri vanek 2014-01-27 13:50:34 UTC
Hi!

Ugh, may you veryfi manually thatthis directory donot exists? 

[jvanek@jvanek ~]$ ll /usr/lib/jvm/jre-openjdk/bin/java 
-rwxr-xr-x. 1 root root 331 Jan 17 15:04 /usr/lib/jvm/jre-openjdk/bin/java


or simialr? This is standart jpackage provided direcotry and its absence will be critical.

Can you try to reinstall openjdk or update to recently release 2.4.4.1?

Comment 2 Aniruddha 2014-01-27 19:01:57 UTC
This directory doesn't exists. I already tried the following to no avail:

mkdir /usr/lib/jvm/jre-openjdk/bin
ln -s /usr/bin/java java

yum reinstall icedtea-web
yum install java-1.8.0-openjdk
yum remove java-1.7.0-openjdk
yum install java-1.7.0-openjdk

And editing the path in/usr/bin/javaws.
 
ls /usr/lib/jvm/jre-openjdk/bin/java 
ls: cannot access /usr/lib/jvm/jre-openjdk/bin/java: No such file or directory

Comment 3 jiri vanek 2014-01-28 12:47:43 UTC
I'm wondering about:
yum install java-1.8.0-openjdk

How is this workflow behave if you miss it? I have made many somehow corrupted installations and was not able to reproduce your issue.

Comment 4 Aniruddha 2014-01-28 17:38:48 UTC
I tried the commands below without result. I got the selinux error during the previous upgrade. Maybe these are related?

yum remove  java-1.7.0-openjdk icedtea-web   java-1.8.0-openjdk
yum install  java-1.7.0-openjdk icedtea-web

Comment 5 jiri vanek 2014-01-28 17:55:50 UTC
Then it may be related to 
https://bugzilla.redhat.com/show_bug.cgi?id=1056187

Comment 6 Aniruddha 2014-01-28 19:10:24 UTC
Thanks! The following commands did the trick:

> yum reinstall java-1.7.0-openjdk-headless follow by 
> alternatives --config java (and choosing the new one as default)
> alternatives --remove java
> /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.60-2.4.4.0.fc20.x86_64/jre/bin/java
> is solving the issue

Comment 7 jiri vanek 2014-02-12 07:48:57 UTC

*** This bug has been marked as a duplicate of bug 1056187 ***