Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application server libraries not found in IntelliJ

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

like image 769
roxhens Avatar asked Feb 27 '20 18:02

roxhens


People also ask

How do I find my application server in IntelliJ?

To run the configuration, press Alt+Shift+F10 and select the created application server configuration. or press Shift+F10 to run it. You can also use the Services tool window to list and manage all available application server running configurations.

Can we add application server in IntelliJ Community Edition?

IntelliJ IDEA provides integration with various application servers, enabling you to start and stop local servers, connect to running remote servers, and deploy your artifacts on those servers. You can also debug your application right from the IDE.

How do I add WildFly server to IntelliJ?

Go to Run > Edit Configurations. Select + > JBoss Server > Local. Name the configuration (for example "WF15") Press Configure and browse to the installation path of WildFly.


Video Answer


2 Answers

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

Use the supported Tomcat version (9).

like image 138
CrazyCoder Avatar answered Oct 10 '22 15:10

CrazyCoder


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.

like image 3
Robert Koronczi Avatar answered Oct 10 '22 13:10

Robert Koronczi