tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: apache-tomcat-7.0.27 start up errors on Mac OX "Lion"
Date Wed, 20 Jun 2012 22:14:47 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Samuel,

On 6/19/12 10:20 PM, Samuel V Green III wrote:
> I was trying to follow the instructions here:
> http://wolfpaulus.com/journal/mac/tomcat7 where it mentions "Change
> ownership of the /Libaray/Tomcat folder hierarchy:
> 
> sudo chown -R <your_username> /Library/Tomcat"

That might not do anything, since /Library/Tomcat is a symlink.

$ sudo chown -R your_username /Library/Tomcat/

...might work better (note the trailing / which causes the symlink to
be followed, rather than just changing the permissions on the link
itself).

Do you really even need that symlink?

> So I'm wondering if I need to change chown the
> /usr/local/tomcatversion directory to match my user id instead of
> "root" ?

Here's my setup:

$ echo $CATALINA_HOME
/usr/local/apache-tomcat-7.0.27

$ ls -l $CATALINA_HOME
total 168
- -rw-r--r--   1 root  wheel  56797 Mar 31 10:45 LICENSE
- -rw-r--r--   1 root  wheel   1192 Mar 31 10:45 NOTICE
- -rw-r--r--   1 root  wheel   8826 Mar 31 10:45 RELEASE-NOTES
- -rw-r--r--   1 root  wheel  10597 Mar 31 10:45 RUNNING.txt
drwxr-xr-x  26 root  wheel    884 Apr  2 17:46 bin
drwxr-xr-x   9 root  wheel    306 Mar 31 10:45 conf
drwxr-xr-x  22 root  wheel    748 Apr  3 10:05 lib
drwxr-xr-x   2 root  wheel     68 Mar 31 10:44 logs
drwxr-xr-x   3 root  wheel    102 Mar 31 10:44 temp
drwxr-xr-x   7 root  wheel    238 Mar 31 10:44 webapps
drwxr-xr-x   2 root  wheel     68 Mar 31 10:44 work

$ echo $CATALINA_BASE
/home/chris/.webapps/mywebapp

$ ls -l $CATALINA_BASE
total 0
drwxr-xr-x   5 chris  staff  170 May 11 15:21 conf
drwxr-xr-x  16 chris  staff  544 Jun 19 12:20 logs
drwxr-xr-x   2 chris  staff   68 May 11 15:21 temp
drwxr-xr-x   4 chris  staff  136 May 11 15:21 webapps
drwxr-xr-x   3 chris  staff  102 May 11 15:21 work

conf/ contains server.xml and web.xml. webapps/ contains (surprise) my
webapps. work/, logs/, and temp/ are empty before initial launch.

With both CATALINA_HOME and CATALINA_BASE set, I can run
$CATALINA_HOME/bin/startup.sh and everything runs without any issues.

No sudo. No root. All is well.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/iS1YACgkQ9CaO5/Lv0PB1pACfdmp5qyeUxPHC9JDJQZMJx9LF
w8EAn3at7WGtdI/ZEWmQWGoO/Ditse9w
=N9/r
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message