Application server libraries not found in IntelliJ
Asked Answered
T

4

11

I am learning Spring MVC and trying to connect IntelliJ IDEA to Tomcat Server. So far I have downloaded the Tomcat 10 tar.gz package from the Tomcat website, extracted and put it at the following location: /Users/roxhens/Tomcat10.

Then, I create a new Spring MVC project and go to:

Add Configuration... > Click + > Tomcat Server > Local and then click Configure and provide the path above.

When I click OK, the following error in the picture shows up: Cannot Save Settings. Where can I find these Application server libraries?

Screenshot from IntelliJ Settings

Thatch answered 27/2, 2020 at 18:36 Comment(0)
F
18

IntelliJ IDEA 2019.3.x doesn't support Tomcat 10 yet.

Use the supported Tomcat version (9).

Fluctuant answered 27/2, 2020 at 19:43 Comment(1)
Hi, I have a similar issue I guess.. does anyone knows if IntelliJ 2017.2 supports tomcat(9) or not?Gluttonize
G
5

If you are on Windows and you installed Tomcat on the primary hard drive of your System, you need to run IntelliJ IDEA as Administrator to be able to add the Tomcat server.

Glomerulus answered 22/11, 2021 at 16:55 Comment(0)
S
1

I had this with Apache Tomcat/9.0.76, IntelliJ IDEA 2023.1.2. I'd first seen "Selected directory is not a valid Tomcat home" and had done:

cd /opt/tomcat # or wherever it's installed
sudo find . -type d -exec chmod o+rx {} + # Tomcat dirs available to all users.

to make the Tomcat directories usable by all users. I then got "server libraries not found" and fixed it with:

sudo find . -type f -exec chmod o+r {} + # Tomcat files readable by all

You can keep users from seeing the logs with:

sudo chmod -R o-rx logs/
Sumac answered 20/6, 2023 at 7:30 Comment(0)
R
-1

you have to point it to $Path/tomcat@9/9.0.45/libexec

Rabelaisian answered 15/4, 2021 at 14:10 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.