13

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
  • 225,392
  • 41
  • 383
  • 426

2 Answers2

34

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
  • 225,392
  • 41
  • 383
  • 426
  • 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
12

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
  • 10,431
  • 3
  • 36
  • 57
hashique
  • 327
  • 4
  • 11