I apologize: the problem with the setenv CATALINA_BASE command was a typo: I
put it into a file named /etc/luanchd.conf instead of /etc/launchd.conf.
I fixed that. And now CATALINA_BASE is seen in the system environment.
But still, running
sudo /opt/local/share/java/tomcat6/bin/startup.sh
I've figured out, I think, how to get tomcat6 configured so that it actually
starts (under OS X 10.8.2). The trick was to copy the folder
/opt/local/share/java/tomcat6/conf to
/opt/local/share/java/tomcat6/webapps/conf.
Now if I run
sudo /opt/local/share/java/tomcat6/bin/tomcatctl start
I've installed the port of tomcat6 but cannot figure out how to get it
configured so that it will start under Mountain Lion.
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
On Mar 4, 2013, at 5:58 PM, Murray Eisenberg murrayeisenb...@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
I tried your solution with the correct path (which was my error in posting the
query). . .
sudo CATALINA_BASE=$CATALINA_BASE
/opt/local/share/java/tomcat6/bin/conf_setup.sh
and now that script seems to run.
[But I don't understand why that form is required: My understanding is that
with