How get tomcat6 configured?
larryv at macports.org
Mon Mar 4 18:14:50 PST 2013
On Mar 4, 2013, at 5:58 PM, Murray Eisenberg <murrayeisenberg at gmail.com> wrote:
> In my ~/.profile, I've set:
> export JAVA_HOME=$(/usr/libexec/java_home)
> export CATALINA_BASE=/opt/local/share/java/tomcat6
> And re-loaded the profile into Terminal with: source ~/.profile
> But wen I run
> sudo /opt/local/share/tomcat6/bin/conf_setup.sh
> I get message: CATALINA_BASE must be set in my environment
> How do I fix that?
By default, sudo executes commands with a minimal environment, so CATALINA_BASE won't be passed along. The easiest thing to try is explicitly specifying the variable in the sudo invocation.
sudo CATALINA_BASE=$CATALINA_BASE /opt/local/share/tomcat6/bin/conf_setup.sh
More information about the macports-users