Nicolas S.Xu
Nicolas S.Xu

Reputation: 14544

How to set Debug/Run config for Tomcat in intelliJ

Tomcat is installed and working on my Mac OS. This is the folder where I installed the tomcat:

/usr/local/apache-tomcat-8.0.36

I know it working alright because typing

http://localhost:8080/

in browser will open the default tomcat page. But I couldn't set it correctly in IntelliJ running configuration environment.

I chose the correct path for tomcat folder. What is Tomcat Home?

enter image description here

enter image description here

Here is the error message: enter image description here

I believe I set everything alright, but it just won't work. Please let me know how I can solve this problem.

Here is the official document from IntelliJ on how to set the Run/Debug Config, but it is not helpful.

Upvotes: 1

Views: 409

Answers (2)

Will Humphreys
Will Humphreys

Reputation: 2791

I am using Fedora but I the set Tomcat Home setting in IntelliJ to point to the directory where I unpacked Tomcat. In my case Tomcat Home is /opt/apache-tomcat-8.0.36

Tomcat Server dialog

Application Servers in IntelliJ

Upvotes: 3

dmg_
dmg_

Reputation: 121

Seems you should download Tomcat, unpack it in a folder, and then put the folder you unpacked in the "Tomcat Home" and "Tomcat base directory". See if that works out for you.

Found what I'm saying on this site.

Upvotes: 1

Related Questions