Where is java_home detected from by the installer?
Dave.Perry at hull-college.ac.uk
Mon Jul 17 08:55:33 EDT 2017
We ditched Tomcat as your team said Jetty was better supported by you!
I didn't put Jetty 9.4 as part of the upgrade as it's not mentioned as Supported on the wiki.
I did run those commands you suggested manually (vs editing /etc/profile.local again), and it's let me run the installer and passes version/status checks.
Adding that java.sh as suggested to the folder you specified is also working post-reboot.
So thanks for your help.
I notice that on reboot the first load of the IdP is unsuccessful (restarting jetty does the trick), but I don't know if that's a jetty or java thing (I'll have to investigate at some point).
eLearning Technologist, Hull College Group (Monday – Thursday)
Room L34 - Queens Gardens Library
Wilberforce Drive, Queen's Gardens, Hull, HU1 3DG
Extension 2230 / Direct Dial 01482 381930
* Need a fast reply? Try elearning at hull-college.ac.uk *
From: Jon Agland [mailto:Jon.Agland at jisc.ac.uk]
Sent: 17 July 2017 12:53
To: users at shibboleth.net; Dave Perry
Subject: Re: Where is java_home detected from by the installer?
My experience is that it will detect the location from the OS
environment [after all you have to setup JAVA_HOME 'System Variable' on
Just looking at two *nix systems that I have access to [Ubuntu and
In both cases putting an executable script like 'java.sh' (remember to
chmod +x) into /etc/profile.d would seem to work.
You could test this by executing the above command line before
installing, but it will likely be lost after reboot/new shell session
Also worth noting that Tomcat appears to be able to have JAVA_HOME
defined in the startup configuration [it was in /etc/default/tomcat8 on
Ubuntu and /etc/sysconfig/tomcat on RHEL]
If you set it in Tomcat (or Jetty), then I suspect you could have
issues using the command line tools in /bin such as aacli.sh and
status.sh, so I'd check if setting via profile.d is possible first...
Principal UK federation technical support specialist
Lumen House, Library Avenue, Harwell Oxford, Didcot, OX11 0SG
Jisc is a registered charity (number 1149740) and a company limited by
guarantee which is registered in England under Company No. 5747339, VAT
No. GB 197 0632 86. Jisc’s registered office is: One Castlepark, Tower
Hill, Bristol, BS2 0JA. T 0203 697 5800.
Jisc Services Limited is a wholly owned Jisc subsidiary and a company
limited by guarantee which is registered in England under company
number 2881024, VAT number GB 197 0632 86. The registered office is:
One Castle Park, Tower Hill, Bristol BS2 0JA. T 0203 697 5800.
On Mon, 2017-07-17 at 11:31 +0000, Dave Perry wrote:
> Where does JAVA_HOME get detected from by the installer?
> I updated java (removed old version, installed new one) on SLES 11,
> went fine, then ran the Shibboleth upgrade script and it complained
> that the path for java_home didn’t work. It still has the old version
> I’ve edited /etc/profile.local to have the correct path (someone
> advised putting /usr/java/latest, which links to it automatically)
> but it still is asking for the old version specifically.
> I can’t see from the code where it’s being a detected. A reboot
> doesn’t seem to have fixed it either.
> Dave Perry
> eLearning Technologist, Hull College Group (Monday – Thursday)
> Room L34 - Queens Gardens Library
> Wilberforce Drive, Queen's Gardens, Hull, HU1 3DG
> Extension 2230 / Direct Dial 01482 381930
> * Need a fast reply? Try elearning at hull-college.ac.uk *
> Click here to view the College's range of publications celebrating
> staff and student successes
> This message is sent in confidence for the addressee only. It may
> contain confidential or sensitive information. The contents are not
> to be disclosed to anyone other than the addressee. Unauthorised
> recipients are requested to preserve this confidentiality and to
> advise us of any errors in transmission. Any views expressed in
> this message are solely the views of the individual and do not
> represent the views of the College. Nothing in this message should
> be construed as creating a contract.
> Hull College Group owns the email infrastructure, including the
> Hull College Group is committed to sustainability, please reflect
> before printing this email.
> To unsubscribe from this list send an email to users-unsubscribe at shib
More information about the users