16

I ran brew install tomcat to install tomcat 8.

Now I need to put my .war file in CATALINA_BASE/webapps

I cannot find that directory anywhere on my computer. How can I locate this folder so I can put my .war in there?

jmj
  • 237,923
  • 42
  • 401
  • 438

2 Answers2

40

use following command

$catalina -h

it will show the directories you need, alternatively you can upload war file using tomcat manager's web interface

jmj
  • 237,923
  • 42
  • 401
  • 438
  • that shows catalina_base = /usr/local/Cellar/tomcat/8.0.9/libexec But how can I navigate to there in finder? –  Jul 08 '14 at 04:34
  • 1
    You can use terminal to `cd` or open finder and press shift + command + g – jmj Jul 08 '14 at 04:35
  • the shift+command+g is a cool trick! it worked. Will accept after the obligatory 5 minutes has passed. Thanks! –  Jul 08 '14 at 04:39
  • You can also use `open ` from Terminal, or command-click the path from iTerm – mpowered May 23 '18 at 18:53
15

It should be installed here:

/usr/local/Cellar/tomcat/8.0.30/libexec/webapps

Replace 8.0.30 with your actual version. Hope this works!!

DanMan
  • 11,323
  • 4
  • 40
  • 61
hashique
  • 357
  • 4
  • 11