I installed Tomcat with home brew brew install tomcat
. On Selecting Tomcat server to add a server to the application server I get this
Warnin
In Windows I just executed Intellij as administrator and it solved my problem.
If you are using IDEA on Linux platform, use the command:
chmod 755 -R apache-tomcat-<<Your-tomcat-version>>
Then try to restart your service again.
Step 1.
Download the tomcat
with the tar.gz extension.
NB. The tar.gz
extention
Step 2.
Unzip the file and make sure the folder name remain tomcat
, save it to your library.
Step 3.
Access the preference settings on your intellijIDEA
+
and select Tomcat Server
from the drop down....
elipse to select the folder you have unziped earlier into your library. tomcat
folder and boom.You are good to go, ready for use.
Problem:
This happens because intellijIDEA doesn't have enough permission to read and write on the tomcat home folder, this hapeens on linux machines.
Solution
let your tomcat root folder = "/opt/tomcat" then this command which will set the right privilege level for intellijIDEA.
$ sudo chmod 755 -R /opt/tomcat
This recently came up for me on Ubuntu 17.04
What worked for me
cd /var/lib/tomcat8
rmdir lib/
ln -s /usr/share/tomcat8/lib/ .
ln -s /usr/share/tomcat8/bin/ .
I'm not sure this is the best fix but it worked for me. For some reason the default install left the tomcat8/lib directory empty while the real libraries are under the share directory.
There may be a situation where the folder will be inaccessible to the user due to lack of rights. Try to open the root folder of Tomcat and click OK to get rights to it. This worked for me.