https://bz.apache.org/bugzilla/show_bug.cgi?id=63815
Bug ID: 63815
Summary: Expansion of JAVA_OPTS in catalina.sh containing '*'
stops startup on linux
Product: Tomcat 8
Version: 8.5.x-trunk
Hardware: Other
OS: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ----
On Linux, the catalina.sh does not correctly quote use of $JAVA_OPTS so if you
specify an option containing a bash shell special character, in particular '*'
then tomcat fails to start.
For example set
JAVA_OPTS="-Dfoo.cronExpression=\"0 0 0/12 * * ?\""
And then try to start tomcat, it will fail with a non zero exit code.
Part of the fix is to stop the expansion by simply put the use of JAVA_OPTS in
double quotes. i.e. "$JAVA_OPTS"
An additional complication is that the unquoted expression strips newline
characters so for backwards compatibility its also necessary to strip newline
characters.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]