Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tomcat server setting with Intellij

I searched about how to set Tomcat as my project's server but still haven't figured out so let me ask you why.

I have Tomcat but get error message which say "the selected directory is not a valid Tomcat home".

Question

Can you suggest reasons why I might get this message?

like image 902
anonyrabbit Avatar asked Sep 04 '16 05:09

anonyrabbit


People also ask

Where are Tomcat server logs IntelliJ?

For Tomcat the actual logs are placed under CATALINA_BASE/logs directory. The value of the CATALINA_BASE set by IntelliJ IDEA will be printed in the console of the Run or Debug tool window. You can also find the log files under idea. system.

How do I start Tomcat in debug mode IntelliJ?

Setup IntelliJ to Debug Tomcat Now switch to the “Startup/Connection” tab and select “Debug” and set the debugging port. Note: 8000 is the default debugging port for Tomcat when using the jpda command. Now click “Apply” and “OK“.


2 Answers

You need to select a subdirectory of your current directory, which contains tomcat executables.

In my case it was /usr/local/Cellar/tomcat/8.0.32/libexec

enter image description here

like image 121
Vojtech Ruzicka Avatar answered Sep 17 '22 19:09

Vojtech Ruzicka


It's most likely because your user account associated with IntelliJ doesn't have permission to read the folder.

Once you grant access, you'll be good to go.

like image 38
Chris Dare Avatar answered Sep 16 '22 19:09

Chris Dare