Warning the selected directory is not a valid tomcat home

前端 未结 9 2060
礼貌的吻别
礼貌的吻别 2021-02-12 22:35

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

相关标签:
9条回答
  • 2021-02-12 22:49

    In Windows I just executed Intellij as administrator and it solved my problem.

    0 讨论(0)
  • 2021-02-12 22:50

    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.

    0 讨论(0)
  • 2021-02-12 22:52

    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

    • Under Build, Execution and Deployment, select application server.
    • Attempt to add a new server, click + and select Tomcat Server from the drop down.
    • Click on the ... elipse to select the folder you have unziped earlier into your library.
    • select the tomcat folder and boom.

    You are good to go, ready for use.

    0 讨论(0)
  • 2021-02-12 22:52

    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

    0 讨论(0)
  • 2021-02-12 22:56

    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.

    0 讨论(0)
  • 2021-02-12 22:58

    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.

    0 讨论(0)
提交回复
热议问题