| Summary: | jetty.sh claims java installation is invalid | ||
|---|---|---|---|
| Product: | [RT] Jetty | Reporter: | Barry Pearce <netsupport> |
| Component: | other | Assignee: | Joakim Erdfelt <joakim.erdfelt> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | P3 | CC: | gregw, joakim.erdfelt, mgorovoy |
| Version: | 7.1.4 | ||
| Target Milestone: | 7.1.x | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Barry Pearce
JAVA_HOME is required, as Jetty requires a Java JDK (not JRE). Additional update. Jetty-hightide 7.1.3 had a broken jetty.sh on many non-ubuntu systems (mainly due to a build bug on the hightide side not keeping its jetty.sh up to date with the one from jetty-distribution). The correct (and most up to date) jetty.sh from jetty-distribution is now being used with jetty-hightide-7.1.4 onwards. When investigating this JAVA_HOME requirement, it appears tied to the JSP pieces of Jetty. Hi, I dont use JSP. Whilst I understand perfectly the jdk vs jre comment the jetty.sh has 'auto-locating' code in it. In 7.1.3 this works. In 7.1.4 it fails. The code has been altered between releases. I have reverted to using the 7.1.3 script on a 7.1.4 install and everything works fine. I have a JDK installed - it is the ubuntu package. There is little point in having autolocating code if the requirement is you must specify JAVA_HOME in /etc/default/jetty. So the fix should be either: 1. Fix the auto-locating code to work on Ubuntu systems. or 2. Remove the auto-locating code altogether and force specification of JAVA_HOME by everyone thus eliminating potential problems of the auto-locating code. I vote for 1. Fixed in trunk r2017 New jetty.sh does not check for JAVA_HOME. It will use optional JAVA variable (if provided) If JAVA is not set, then a $(which java) will be used to find java in the search PATH. Marking closed. |