On 1/30/2013 2:01 PM, Edson Richter wrote:
I'm trying to put the following in catalina.sh:

JAVA_OPTS=-Djava.awt.headless=true
-Djava.util.logging.SimpleFormatter.format=[%1$tY-%1$tm-%1$td
%1$tH:%1$tM:%1$tS.%1$tL] %4$s: %5$s %6$s %n

also tried:

JAVA_OPTS="-Djava.awt.headless=true
-Djava.util.logging.SimpleFormatter.format=[%1$tY-%1$tm-%1$td
%1$tH:%1$tM:%1$tS.%1$tL] %4$s: %5$s %6$s %n"


Both causes errors (linux platform) like

"/etc/init.d/catalina: line 64:
-Djava.util.logging.SimpleFormatter.format=[%1-%1-%1: command not
found"

or

"Error: Could not find or load main class %1:%1:%1.%1]"


I'll appreciate your help.

Edson Richter

What version of Tomcat? Please give the full version (x.y.z).

What are you trying to accomplish?

Did you put a copy of catalina.sh as catalina in /etc/init.d or is this a third party distribution? I've not seen one that places catalina.sh as catalina in /etc/init.d, but I've not worked a lot with repackaged Tomcats.

Probably the best way to handle this is find out where your distribution thinks $CATALINA_HOME is, and then edit a setenv.sh file in $CATALINA_HOME/bin to include environment variables.

This file is not included by default - you'll have to create your own.

Also, when you enter multiple values for an environment variable, you'll have to surround the entire thing with quotes. For example:

JAVA_OPTS="-Dfoo=something -Dbar=else"

This all assumes that your distribution (if you're using one) hasn't mangled catalina.sh and removed references to setenv.sh.

. . . . more guesses with more information
/mde/

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to