| Summary: | Jetty.sh fails to start jetty due to incorrect quoting of start-stop-daemon arguments | ||
|---|---|---|---|
| Product: | [RT] Jetty | Reporter: | Barry Pearce <netsupport> |
| Component: | other | Assignee: | Joakim Erdfelt <joakim.erdfelt> |
| Status: | RESOLVED 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
Unable to reproduce with Ubuntu Lucid 10.04 LTS. Works as expected. [joakim@lapetus jetty]$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 10.04 LTS Release: 10.04 Codename: lucid [joakim@lapetus jetty]$ java -version java version "1.6.0_14" Java(TM) SE Runtime Environment (build 1.6.0_14-b08) Java HotSpot(TM) Server VM (build 14.0-b16, mixed mode) Slightly related... I see that you have jetty again in /usr/local/jetty Would you like to participate in the testing of the new jetty-distribution debian distribution testing? # lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 9.10
Release: 9.10
Codename: karmic
# java -version
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)
> Slightly related...
> I see that you have jetty again in /usr/local/jetty
> Would you like to participate in the testing of the new jetty-distribution
> debian distribution testing?
Hmm. Why do you say 'again'? We took the hightide tar-gzip distribution from download and install it ourselves to that location. I know Ubuntu's releases are based on the jetty stable - but jetty 6 is too backwards for us to develop against.
What's involved?
In /etc/default/jetty JETTY_ARGS="OPTIONS=Server,resources etc/jetty.xml etc/jetty-ssl.xml" JETTY_LOGS=/var/log/jetty JAVA_OPTIONS="-Xmx512m -Djava.library.path=lib/ext" TMP=/var/cache/jetty TMPDIR=$TMP Actually to avoid polluting this bug report...can we take the chat of distribution testing offline to email? Cheers. Able to reproduce with the following technique ... Test 1: Create a $HOME/.jettyrc file with the following line: --(snip)-- JAVA_OPTIONS="-Xmx512m -Djava.library.path=lib/ext" --(snip)-- Then start with "bin/jetty.sh start" any distribution. Curiously, this file is just sourced early in the script. Test 2: You cannot replicate the problem with declaring an environment variable before startup of jetty. With no /etc/default/jetty or $HOME/.jettyrc create the following environment variable: $ export JAVA_OPTIONS="-Xmx512m -Djava.library.path=lib/ext" Then attempt to start Jetty. It works. The quotes you seeing are coming from the quotes in the /etc/default/jetty file. Trying to remove them with a few bash hacks results in regressions on entries that require quoting (/me shakes fist at cygwin!) Any suggestions? I've committed (r2021) a potential fix that removes the quoting of JETTY_OPTIONS. It is working for my limited testing, but Joakim will test in more environments tomorrow. Unable to replicate the existing bug through various testing. Considering this fixed. |