Warning the selected directory is not a valid tomcat home

前端 未结 9 2061
礼貌的吻别
礼貌的吻别 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 23:07

    Authorise permissions on Tomcat folder:

    • Open tomcat location e.g. C:\Program Files\Apache Software Foundation\Tomcat 9.0

    • Double click this folder.

    • Authorise permissions.

    Now try creating the server...

    0 讨论(0)
  • 2021-02-12 23:08

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

    0 讨论(0)
  • 2021-02-12 23:15

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

    Step 3: Create a new Tomcat Runtime Configuration

    • Select the Runtime Configurations box (top right hand corner of the screen), and select Edit Configurations.
    • Select the green + sign at the top left corner of the box.
    • Select Tomcat (you may have to expand the box to see it)
    • Give your new configuration a name
    • In the Server tab, in the Application Server box, select the tomcat folder you created in steps 1 and 2.
    • In the Deployment tab, select the build artifact you want to deploy. (Note: if you don't have a build artifact configured for your project, you'll have to configure one first).
    • Save the new configuration.

    Now, deploying to tomcat is as easy as selecting the runtime configuration you just created and hitting the Debug or Run arrows.

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