Warning that the selected directory is not a valid home for the home

I installed Tomcat with the home brew brew install tomcat . When I select a Tomcat server to add a server to the application server, I get this

Warning that the selected directory is not a valid tomcat home.

However, starting catalina start starts the tomcat server on my terminal.

+11
source share
6 answers

Step 1.

Download tomcat with the tar.gz extension. NB. tar.gz extension

Step 2

Unzip the file and make sure that the folder name remains tomcat , save it in your library.

Step 3

Access preference settings in your intellijIDEA

  • Under Build, Run, and Deploy, select the application server.
  • Try adding a new server, click + and select Tomcat Server from the drop-down list.
  • Click the ... elipse button to select the folder that you unzipped earlier in your library.
  • select tomcat folder and arrow.

You are ready to go, ready to use.

+6
source

If you are using IDEA on Linux, use the ls -l apache-tomcat-8.5.16 (if the tomcat folder is "apache-tomcat-8.5.16"). if it is drwxr-xr-x, change the file mode using the chmod 755 -R apache-tomcat-8.5.16 . Then try restarting the service again. (Update as of September 9, 2009. Thanks @ElectRocnic)

+11
source

Try selecting the libexec subdirectory in IntelliJ - libexec /usr/local/Cellar/tomcat/8.5.9/libexec

+10
source

I did what CallmeSurge suggested, but I had to change the following:

Step 3. Create a new Tomcat time configuration

  • Select the "Run Settings" window (upper right corner of the screen) and select "Change Configurations".
  • Select the green + sign in the upper left corner of the window.
  • Select Tomcat (you may need to open a window to see it)
  • Give your new configuration a name
  • On the Server tab in the Application Server window, select the tomcat folder created in steps 1 and 2.
  • On the Deployment tab, select the assembly artifact that you want to deploy. (Note: if you do not have an assembly artifact configured for your project, you will need to configure it first).
  • Save the new configuration.

Deploying to tomcat is now as easy as selecting the run-time configuration you just created and clicking on the Debug or Run arrows.

+1
source

It recently appeared 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 if this is the best solution, but it worked for me. For some reason, the default installation left the tomcat8 / lib directory empty, while the real libraries are in the shared folder.

+1
source

Authorize permissions for the Tomcat folder :

  • The open location of the cat, for example C: \ Program Files \ Apache Software Foundation \ Tomcat 9.0

  • Double click this folder.

  • Authorize permissions.

Now try to create a server ...

0
source

Source: https://habr.com/ru/post/1233420/


All Articles