How to configure apache tomcat in intellij idea. dll in Intellij Idea? Why do you want to? It's a transparent performance improvement, and tomcat works fine without it, and you're just debugging. 2022-05-10. tomcat. You have to set the write flag with +w or like this: chmod -R 644 /opt/tomcat/conf/ as root or with sudo. Jan 30, 2013 · Intellij is giving you an option to run that particular instance of tomcat on some other port number so that it won't affect other tomcat instances. Nov 4, 2014 · Configuring IntelliJ IDEA. It's the accepted solution from: Tomcat and JDBC connection pooling. source}) and import the Tomcat project located there. First, we need to download Tomcat. 1 Clicks on the “Deployment” tab, + icon to select an artifact to deploy. ides folder used by intellij, then intellij autodetects the Apr 29, 2013 · 1 Answer. Using the checkbox on the component page sets Jan 15, 2024 · No, what I actually don't find is the actual Intellij option that allows me to import a tomcat config file. xml file. Press Ctrl Alt 0S to open the IDE settings and then select Build, Execution, Deployment | Application Servers. Setting the permission wasn't enough for me. without zipping it into a war file. Click the "+" icon and select "TomEE Server" and "Local". Click , then in the Add Server dialog, type your server name MyRemoteServer and select its type (in our Sep 4, 2016 · I just had the same problem with Idea 2023. Apr 15, 2021 · apache tomcat / Intellij idea. In the dialog that opens, specify the location of the installation directory and click OK. 0-SNAPSHOT (older versions also may work, but the functionality Click the + symbol under Tomcat Server to add one (Local) Type in something in the Name: field to distinguish it ("dev") Uncheck "After launch:" (optional) Click Deployment and click + Choose Artifact. IntelliJIdea13\system\tomcat\My_Web_App_My_Project\logs\catalina. Using Apache Tomcat with IntelliJ on Windows. In the dialog that opens, select Maven from the Oct 15, 2021 · Local Apache Tomcat cannot access Internet due to company proxy. 4. For break point debugging, always choose the exploded war version. 8 or later. I have also encountered the same problem when I try to configure tomcat in IDEA. Here is the page that describes the difference between the editions. specify the IP ( here) using different ports. Once the action is found, click it to open the Add Framework Support dialog. Ask Question Asked 2 years, configure Tomcat 6 with IntelliJ. xml in the tomcat conf directory. Mar 17, 2015 · For example, for my Tomcat Run\Debug configuration named "My Web App" in "My Project", to view the catalina. It provides all the basic features for JVM and Android development. Choose Run and "Run dev" You should see your Tomcat log populating in the panel at the bottom of the window. My problem is: The Tomcat cannot access any web resources. security. Working with Apache Tomcat in IntelliJ IDEA. When server start everything is ok. Oct 16, 2013 · 1. Idea should be Ultimate version, not Community edition. Setup you runner "Run/Debug Configurations Dec 20, 2013 · Once your tomcat is started in debug mode, go to the debug view click on the blue arrow (see picture below), then you have the choice to. The term Web application is usually applied to a hierarchical set of folders with HTML, JSP, JavaScript, and so on. We can run our application with ^R (macOS), or Shift+F10 (Windows/Linux) and this starts our Tomcat server. . In my IntelliJ web app, I have set the application context to myapp as shown below. Instead of the above solutions, simply type mvn clean and then mvn install in the terminal window. 00:00 - Introduction00:10 - Setting up Tomcat (New Project)04:21 - Set #IntelijIDEA #tomcat #java #javaEEHow to configure tomcat in intellij IDEA community edition. As you can see there, there are two possible reasons: (1) you are not authenticated. @Alexandr, I guess you mean tomcat7:run-war. correctly and the run configuration files are places in the . mvn package tomcat7:deploy. Actually my situation is reverse of your comment but thanks in anyway cause Aug 23, 2016 · I am trying to use JSTL for my index. RewriteValve" /> to the context. Let us go through all the detailed steps to configure the tomcat server in an IntelliJ platform. The minimum recommended Camel version is 3. IntelliJ IDEA adds the dependency to your pom. index_jsp Apr 17, 2018 · 私ごとですが、現在の業務では、Windows + Eclipse + Tomcatといった環境で作業しているため、Mavenプラグインの設定部分やIntelliJの設定部分で結構はまってしまいましたが、一応調べきり、動作するところまで確認できたので、よかったと思っています。 Jan 9, 2024 · Download and Prepare. IntelliJ IDEA needs a run configuration to build the artifacts and deploy them to your application server. Set up the run/debug configuration parameters. Select the browser from the list. In the Project tool window Alt 01, select the module or the project directory to which you want to add Maven. 0:deploy. A servlet is “a Java class used to extend the capabilities of servers. log file, I would set the path to C:\Users\Mark\. 0\conf 11) Finally set the application context path (they should explain what this is and how its set). I already tried with mvnDebug tomcat7:run command but intelliJ doesn't resolve mvnDebug phrase in maven's built-in command line. Install. idea files, and then just open the pom. Step 1: Download the latest version (10. Click Modify options, then select Add VM options. If you want the deployment descriptor web. How to start a new project that uses Apache Tomcat and work with existing projects. If you’re not creating a new project from scratch and instead have an existing project that runs on Tomcat, you can configure IntelliJ IDEA Ultimate to connect to your existing Tomcat installation. Let’s download the server as a zip file for Windows: Next, we’ll simply uncompress Tomcat into its directory. the base path of Ant 1. IntelliJ IDEA Ultimate is commercial, distributed with a 30-day trial period. In Eclipse, I add a Tomcat Server. Sep 1, 2018 · IntelliJ IDEAとは - Weblio辞書; 1から始めるIntelliJ; Tomcat のインストール. util. Share Feb 4, 2016 · TomCat server configuration not appearing in Intelliji. I named mine, Tomcat. Hot Network Questions Feb 10, 2023 · I forked this Java Project and set up Tomcat 9 as usual. Tried configure remote-debug with intelli also but get confused. 0. 0 with the intellij idea 2020 ultimate version Mar 11, 2024 · From there choose the root directory of the Tomcat source tree (${tomcat. In my case, this problem was due to a JAVA_OPTS variable defined in catalina. At the Deployment tab I have: Nov 20, 2013 · The question is how to specify custom JRE path for Apache tomcat in Intellij IDEA (when starting an application from IDEA)?. xml file to be created, select the Create web. May 10, 2017 · one is: ANT_HOME. 9. Your WAR file is now located in. 39. Let's work with this application from GitHub: May 10, 2022 · You can open the Services window with ⌘8 (macOS), Alt+8 (Windows/Linux) to see the Tomcat server we just configured along with our web application. I have explained the complete process step by st Jan 23, 2016 · Select Spring Project (If you don't want to use Spring Boot) Give name to your project. 1/ When you set this up the setting for the conf files should automatically configure itself to: C:\Program Files\Apache Tomcat 4. 1. You can add a new tool with whatever name you want. Hi you should do these steps: Add you tomcat server "Setting" -> "Application Servers" -> "Add" -> "Tomcat Server" Then you setup your tomcat installation path. 0 On my mac box it is set to /usr/tomcat4. Select the Web application template. HTTP Status 500 - java. I've always used Eclipse as IDE, and after adding external server Tomcat, it used to create me an instance of the server, where I edited the context. auth. I'v add in Edit configurations new instance of tomcat and set up path to tomcat home, but when I confirm /opt/tomcat. The server must be of the same version as the remote server. java file next to the class declaration or the main() method declaration. C:\Program Files\Apache Software Foundation\Tomcat xx. Its interface and functionality is similar to other wizard based installers, with only a few items of interest. In the list of results select the one you need and click Add. 1 Run –>> Edit Configurations. See the description of remote tomect configuration in the given link. Apr 7, 2018 · Change root context for a servlet in an IntelliJ IDEA project. I only commented the first line of catalina. Create a run configuration. Java location: The installer will provide a 6 days ago · Press Alt Insert to open the Generate context menu. Select Tomcat Server -> Local from Menu. Share. restart the server. In the application. Select a recent JDK for the project (OpenJDK 17 is a good choice) Click Next to continue. 4. IntelliJ IDEA generates a default project with a Java web application Jul 14, 2020 · Learn how to use Apache Tomcat server in IntelliJ IDEA for deploying, running and debugging Java web applications right inside the IDE. Whether In this tutorial video, we'll show you how to create a Java web application project using Maven. ( org. xml did the job. (The Application Servers dialog will open. Click it and fill up the right panel data such as name and output directory. you should have installed ant plugin. xml then IntelliJ will set everything up for you. Jan 3, 2003 · C:\Program Files\Apache Tomcat 4. lang. Now I want to achieve the same in IntelliJ Idea. and another one is: TOMCAT_BUILD_LIBS. After that you have to restart tomcat. With the remote JVM running the Tomcat started with the required start up arguments, the next thing to do is to configure the debugger in IntelliJ IDEA. The debugger is currently available on Maven-based Camel projects and routes defined in the XML DSL. I downloaded the smart Tomcat plugin for Intellij and I configured it (at least I tried) but when I tried to run the server it returns the 6 days ago · This functionality is available only in IntelliJ IDEA Ultimate. config. The * wild characters the date stamp in the log name and IDEA will always open the latest/newest one. jsp. Installing Apache Feb 15, 2019 · IntelliJ IDEA doesn't copy the webapp files into TOMCAT\webapps. intellij-idea. This project has properties files (configuration files) that are shared by many WAR servlets. sh). ” 1. From. If you specify the correct location, IntelliJ IDEA should detect the For Run Java or any server install Tomcat On Intellij Idea Server 2016. Point to Tomcat Directory and add artifact to deploy. config in the WEB-INF directory. apache. config in place. update classes and resources. If the run configuration is selected, press Shift+F10. In the Application servers popup, you have a list of libraries click on the + button to add the Jar of your choice. maven command to deploy war on tomcat:clean install war:war org. In order to solve your problem I would first package the webapp and then invoke the deploy goal of the tomcat7-maven-plugin. 2) Go to Run-Edit configutaion and set up Tomcat location folder, so Idea will know about your tomcat server 3) Go to Deployment tab and select Artifact. Oct 1, 2019 · Using the checkbox on the component page sets the service as "auto" startup, so that Tomcat is automatically started when Windows starts. login. step 3. Let’s open the Windows terminal and from the Tomcat installation bin directory: Nov 4, 2013 · 3 Answers. xml file as a "new project" in intellij. if you changed a class without changing method signature, update Oct 1, 2018 · That way when you start the configuration, Intellij will connect via Socket to the Tomcat server that emits via port 8000. 6 days ago · In the left-hand pane that lists all the existing server configurations, click Add and select Local or mounted folder in the popup menu. config=C:\Users\myUser\. The mvn command above means: invoke the default build lifecycle until phase package. Open "Edit Configurations". catalina. bat (or catalina. After that, open File -> Settings and expand Tools and select External Tools. xml file to set my app's context to myapp. File -> Open -> navigate to pom. logging. It is unfortunately not enough, that only root has the write permissions, except that IntelliJ would be also started with root permission, but that 6 days ago · IntelliJ IDEA creates a Spring Boot run configuration that you can use to run your new Spring application. Aug 23, 2023 · In this comprehensive tutorial, we'll walk you through the process of setting up and running a JSP project using the Tomcat server in IntelliJ IDEA. Click and select the application server. in case 1 you should define a seperated deployment-user with the manager script. 6 days ago · IntelliJ IDEA is available in the following editions: Community Edition is free and open-source, licensed under Apache 2. This video will show how to setup apache tomcat 9. If you see a warning message like "No artifacts marked Feb 6, 2024 · The Tomcat plugin for Intellij IDEA. A web application project typically consists of multiple mod Jun 21, 2013 · Tomcat integration is available only in IntelliJ IDEA Ultimate Edition, while you are running the Community Edition. path setting in build. Make sure tomcat is running in port 8080 and not somthing else, look at the tomcat cofig file (s) to find out where it should be running. Problems setting up tomcat in intellij idea. I had the same issue and adding context lookup to my java code to use the resource defined in context. properties -Djava. Which part of my Tomcat / IntelliJ IDEA, do I have to update? I'm using IntelliJ Ultimate with Tomcat 9 and 10 (both installed, but using 9) on macOS - MacBook Air (M1, 2020). bat file, usually located in the bin folder of Jan 16, 2017 · Run/Debug Configuration. Is there a way to pass CATALINA_BASE in intellij idea tomcat server vm options? tomcat. net. Jun 25, 2020 · There are different ways to do things. It seems, that just configuring its path (path to jvm. If you have your setting (datasources, ssl connector) in differend tomcat base you can set it there too. Edit Configurations to add Tomcat Server. Right-click on the project and select 'Open Module Setting'. 6 days ago · Enter a name for your project: DockerJavaWebApp. Can't use cmd command line neither because i can't find 'home' path since maven is built-in intelliJ. x To. Press Ctrl+Shift+A, find and run the Edit Configurations action. library. For the detailed description of the template, see List of run/debug configurations. You can do that by going to your Run/Debug configuration, go to one of your tomcat configured web appication, next to the application server combobox click on configure. *. 4 6 days ago · Press Ctrl Shift 0A and type Add Framework Support. 6 days ago · Specify the location of your Maven project. However, if you are creating a run configuration from the Maven tool window, IntelliJ IDEA will display the name of your project automatically. Apache Tomcat. I have created two servlets that run when I use their url-pattern that is defined in my web. (2) path segment of the tomcat manager url makes trouble. 6 days ago · Create a run configuration. I click on Open launch configuration, and in the Edit Configuration dialog, tab Classpath I can add an Eclipse project to the "User Entries" classpath. Bootstrap) You should be able to see it with jconsole and similar tools. Aug 6, 2014 · 3. When I set the Application context, it doesn't seem to have any effect. Add a line to your c:\Program Files\Apache Software Foundation\Tomcat 5. Maven Projects tab -> Plugins -> tomcat7 -> tomcat7:run -> Debug. – axiopisty. For tool settings, select the catalina. In the Run/Debug Configurations dialog, click and select JAR Application. First some background on how Tomee works: Getting started with tomee. Sorted by: 15. I have a spring MVC app that come from Eclipse (No spring boot app) and I am trying to configure it to run inside an embedded Tomcat container from Intellij IDE. Using the checkbox on the component page sets Dec 11, 2012 · IntelliJ web application context path. IntelliJ IDEA creates a permanent run/debug configuration of the corresponding type and opens a dialog in which you can set configuration parameters. These are files and resources that represent the user interface and Java classes that implement the application functionality. Make sure your firewall is not blocking it although if its port 8080 it shouldn't . Right-click anywhere in the body of the Alphabet class. I tried the previous answer method, but failed. I am a Java developer for Magnolia CMS. For optimal security, the service should be run as a separate user, with reduced permissions (see the Windows Services administration tool and its documentation). 2 Clicks on “Server” tab, select a Tomcat server Specify the path to the GlassFish Tomcat server install location. In artifacts tab, you will see a small + button on top right corner. Jun 19, 2017 · If I want to deploy my web app I have to build it by Maven and copy WARs to specify Tomcat deploy directory. properties file, Add server. Jul 18, 2018 · How to run Spring project with Tomcat on Jetbrains IntelliJ IDEA? Jul 11, 2015 · Look here: maven-tomcat deploying. On Windows, a quick additional installation is necessary. xml checkbox. 6 days ago · Configuring a deployment server. file=logging. rewrite. You can change the port for Tomcat, to something else, in the Tomcat Intellij Idea - Configurando Tomcat Feb 12, 2019 · In remote Tomcat Run/Debug Configuration you need to add Tomcat server - this is the local server you have installed on your local machine. Unable to start Tomcat server in IntelliJ IDEA. I found the issue, the problem was that I did not have the project imported ok. x\ Start Eclipse and create a new Workspace. Dec 30, 2022 · Tomcat 9 in IntelliJ Idea. I don't know what to do Dec 17, 2014 · Apache Tomcat. Still works with Tomcat 9. These folders are arranged according to Nov 2, 2021 · specify the same port for both JMX and RMI conversation ( here and here) configure the Tomcat server again ( here) make the the path to the Tomcat files is correct ( here) made sure no Firewall/antivirus is blocking the network connection. 3 any Side. Apply Mar 23, 2022 · In this video, we’ll look at how to work with Apache Tomcat in IntelliJ IDEA Ultimate. You can also use the icon in the gutter of the SpringBootTutorialApplication. uninstall and install again both IntelliJ and Tomcat. 0 includes the first tech preview of the Camel Route Debugger. But, when I start the server running, I get HTTP Status 404. xml. if you just changed jsp file, update resources should be enough. ANT_HOME. Execute the run configuration. mvn package org. At this point your project will be automatically identified: source code, resource files, etc. On the toolbar, select the configuration you want to run and click to the right of the Mar 23, 2016 · IntelliJ has different process to build war: Goto -> Files -> Project Structure -> Artifacts. . If you need, you can specify a path to the build script Jul 22, 2014 · The only solution that works is to use an absolute path to intellij idea tomcat server directory: -Djava. From the context menu, select Dependency. Choose the exploded war. Open the Edit Configuration settings and select the Remote option: The Remote settings dialog box appears where you can specify the required configuration; remote Dec 6, 2014 · I'm new to IntelliJ IDEA and I'm trying to set up JNDI resource in Tomcat but I'm using intelliJ IDEA. If the project is imported. update resources. tutorial. properties, where the binary dependencies have been downloaded. ipr, . It has nothing to do with tomcat users, only with OS users. Click Shift Enter to configure your web browsers. port property is a predefined spring property. Feb 9, 2014 · Here is step-by-step instruction for Tomcat configuration in IntellijIdea: 1) Create IntellijIdea project via WebApplication template. If your server is still not configured, click the "Configure" button and point it to your local TomEE installation. or simply. 6 days ago · Here is how a properly configured application server run configuration might look: To run the configuration, press Alt Shift F10 and select the created application server configuration. If you delete your intellij project (not your source code) by deleting *. in this step. In this tutorial session, we will learn to integrate 'Apache Tomcat' in the IntelliJ IDEA community edition. xml file so that you have a user who has admin role. Here's my way. On the next step of the wizard, select Jakarta EE 9 the Web Profile specification. Oct 7, 2022 · Step by Step Implementation. IntelliJ IDEA detects and sets the name and version appropriately. 3 new configuration. 33. In the main menu, go to Run | Edit Configurations. 1. Use these to start and stop Tomcat from Eclipse. will be properly marked by the IDE. In the Maven Artifact Search tool window, in the search field, start typing the name of your dependency. I have done this with Eclipse many times, but as you know there is a separate folder Servers in the project structure that allows you to open the server. I deploy Magnolia jar via Maven. I tried the above solutions but the WAR file didn't work when I deployed it to the tomcat server. Give a minute while Intellij imports the dependencies. On my company's Windows PC I am running IntelliJ Ultimate 2020 and Tomcat 9. 2 Clicks + icon, select Tomcat Server –>> Local. There are also two choices, one is put the rewrite. redeploy. Mar 1, 2020 · Docker installation. I was expecting the app to be deployed to myapp, or at least the generated context. setup a "Remote" run configuration and specify the port you need to connect (here 8000) As an alternative options, there is a way to debug Maven plugin goals from IDEA itself. Select this checkbox to start a web browser after starting the server and deploying the artifacts. 5\conf\tomcat-users. preferIPv4Stack=true". Keep default location for Manifest file. use idea to open the tomcat root directory. Apache Tomcat is a popular, open source implementation of the Java Servlet API. Click Ok. However, there are quite a few situations where the CMS (and not Mar 31, 2016 · So the other answer was correct. ) After launch. 15. startup. Apache Tomcat® is a web server and servlet container for Java web applications. port=8085 (or any custom port of your choice). Installation as a service: Tomcat will be installed as a Windows service no matter what setting is selected. It's time to run the application. In the Create new server dialog that opens, type the name of the server to create and click OK. Tomcatは特に開発には必要ありませんが、サーバーとして機能させるならインストールしておいて損はないでしょう。 なお、解説は以下のサイトにお任せします。 Tomcatとは - IT用語辞典 6 days ago · From the menu that opens, select Modify Run Configuration. Jul 29, 2015 · Then from "Build" menu manually build the created "exploded war" file. server. I simply added a "\" at the end. You can either enter it manually or click and point to the desired location in the dialog that opens. How to add Apache Tomcat to your application. My app have multiple WARs. Preference > Buil, Execution, Deployment > Application Server > Click + Icon > Select Tomcat EE Server > Give location’s path that you’ve downloaded tomcat binary in previous step. I opened Docker tab in InteliJ: I don't know how to inform InteliJ that in Docker Container called recursing_haibt is a tomcat server which will handle simple HelloWorld app and open it in browser. 0. 6 days ago · Define an application server. Mar 8, 2019 · Look at the Project->Artifacts tab and see what is being added to the WAR. Sep 28, 2017 · So to my question, there are two things to do: Add <Valve className="org. war and running with Tomcat it gives me following errors: HTTP Status 500 - /index. Here is the line : set "JAVA_OPTS=-Xmx1024M -XX:MaxPermSize=512m -Djava. On the right-hand side of the split-pane click "+" and add Oct 1, 2018 · Make sure you install Tomcat in a place that doesn't require admin access, for example next to your project. 3. Installing Tomcat on Windows can be done easily using the Windows installer. start-tomcat and stop-tomcat launch configurations are provided in res/ide-support/eclipse and will be available in the Run->Run Configurations dialog. For me by default Eclipse does not embed Tomcat, but runs it as a proper java process. Aug 26, 2017 · The port 1099 also seems to be in use, when I stopped Tomcat 9 after the first run - How do I configure intellij to perform a clean shutdown of all processes, like Eclipse does? This behavior also happens on my Windows pc. The same location as the base. Aug 14, 2015 · The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java. Tomcat Configuration. maven:tomcat7-maven-plugin:2. jsp page, but for some reason each time after packaging project to . config in the conf directory too, the other is put the rewrite. In the dialog that opens, select Web Application and select a version of the Servlet specification. 2022-05-12. Helen Scott. IntelliJ has really good maven support. Dec 29, 2021 · The recent release of the Apache Camel plugin for IntelliJ version v0. Here are some relevant screenshots from my project: Mar 23, 2012 · 9. Click on the main toolbar or press Ctrl Alt 0S to open the Settings dialog, and choose the Deployment page (you can access the same page by choosing Tools | Deployment | Configuration from the main menu). It provides additional tools and features for web and enterprise development. It runs your web application expanded, i. log. Thanks! Feb 2, 2016 · Ofc Maven is provided by default with IntelliJ. It modifies Tomcat configuration in CATALINA_BASE and deploys the artifact directly from its output directory to avoid copying the files which can take a lot of extra time, especially for the large projects. In the VM options field, paste the options that you copied from the debug configuration. 26) of Apache Tomcat Server from this link according to your OS. 6 days ago · Open an existing project, for example, a Java project. jsp (line: 12, column: 0) Unterminated <c:if tag or. valves. Apr 26, 2020 · 3. path: how to add tcnative-1. For example, to run the first one I type the following in my browser: I want to find a way to run these servlets from a different root context, for example: description The Mar 11, 2024 · Installing Tomcat on Windows can be done easily using the Windows installer. bat and everything started working. IntelliJIdea13\system\tomcat\tomcat_ (1)_myProject\conf\jaas. iws, *. ClassNotFoundException: org. Put the rewrite. Now I try to connect my web app to IntelliJ IDEA Ultimate 2017. Open the Preferences dialog and then select Java->Build Path->Classpath Variables to add two new Classpath Variables : TOMCAT_LIBS_BASE. when my tomcat really is, I got this error: I want check this folder in file explorer, but system alert me that I not have permission to view content of folders in /opt/tomcat Nov 25, 2019 · This is an overlay, so \server\webapps is just pointing you to the \server\webapps, and the admin directory with its contents will be the only thing you see added there. Feb 6, 2018 · Простой способ разработки и деплоя учебных web приложений на локальный сервер Tomcat Oct 23, 2017 · Now I need configure that tomcat into Intellij Idea. Alternatively, if you have your run configuration selected in the main toolbar at the top, you can click or press Shift F10 to run it. Make sure to create the Manifest file. dll) in Apache Tomcat monitor doesn't help. What you will learn in 6 days ago · Click Configure to create a new server configuration or edit an existing one. xml by adding the resource for my application, then the data to access the database, how can I do that same for IntelliJ? At the moment I was forced to add the resource 6 days ago · In this tutorial, we are going to use a run/debug configuration that will do most of the work for us. Here is example of configuration. Name the new configuration. e. xml and set up the JNDI resource. Select More Run/Debug, then Modify Run Configuration. Mar 9, 2020 · Setup Spring MVC app with Intellij + tomcat. Click Create. The Create new server dialog closes and you return to the Connection tab of the Deployment node. Press Ctrl Shift 0A and type Add Framework Support. 3. At Run/Debug Configuration I add new Tomcat Server. 8. 2. I gave up apt-get solution and I installed tomcat in docker with command: sudo docker run tomcat:9. iml, *. The message "The selected directory is not a valid Tomcat home" Because IDEA can not access the files in the folder,one solution is using the "chmod" command change all of subdirectories' permissions. The SmartTomcat will auto load the Webapp classes and libs from project and module, You needn't copy the classes and libs to the WEB-INF/classes and WEB-INF/lib. uy ch vk aw wa tj tz nn bg jc