41

I am deploying an application from IntelliJ IDEA to the local Tomcat server. I thought the apps you deploy are placed in the webapps folder, however it does not turn up there.

Is this correct? Where is it?

informatik01
  • 16,038
  • 10
  • 74
  • 104
LuckyLuke
  • 47,771
  • 85
  • 270
  • 434
  • Check your tomcat configuration inside the intellij - I think you can configure it there – aviad May 05 '12 at 12:11
  • 2
    possible duplicate of [How is Tomcat handled by IntelliJ IDEA 10.5](http://stackoverflow.com/questions/7699354/how-is-tomcat-handled-by-intellij-idea-10-5) – CrazyCoder May 05 '12 at 12:20

7 Answers7

31

Just for reference, the corresponding folder on a mac (for IntelliJ 13) is:

/Users/<username>/Library/Caches/IntelliJIdea13/tomcat/
dewtea
  • 476
  • 4
  • 5
29

Yes, If you are using IntelliJ IDEA the application does not turn up on Tomcat webapps directory. Your artifacts are in directory, for example:

${dir.to.idea.project}\YourWebApp\out\artifacts

This is default directory created by IntelliJ.

Tomcat configuration is in the different folder. I am using windows 7. So it is:

C:\Users\User\.IntelliJIdea10\system\tomcat\YourApplicationName
radoh
  • 4,554
  • 5
  • 30
  • 45
Paulius Matulionis
  • 23,085
  • 22
  • 103
  • 143
19

If you are using Intellij IDEA your artifacts are deployed directly from output directory: ${project.dir}\${web.module}\out\artifacts or ${project.dir}\${web.module}\target if you're using Maven and follow Standard Directory Layout.

Tomcat configuration is in different folder:

Mac:     /Users/${user}/Library/Caches/IntelliJIdea${version}/tomcat/  
Linux:   /home/${user}/.IntelliJIdea${version}/system/tomcat/
Windows: C:\Users\${user}\AppData\Local\JetBrains\IntelliJIdea${version}\tomcat
Erica Kane
  • 3,137
  • 26
  • 36
naXa stands with Ukraine
  • 35,493
  • 19
  • 190
  • 259
15

From IntelliJ 2020 onwards the Tomcat configuration and work directories have moved to:

C:\Users\${user}\AppData\Local\JetBrains\IntelliJIdea${version}\tomcat
Erica Kane
  • 3,137
  • 26
  • 36
Pool
  • 11,999
  • 14
  • 68
  • 78
  • 1
    Can you specify further, please? Inside the directory I only see a folder with a UUID-like name; inside it there's a conf, logs, sessions and work sub-directory structure, but neither of them contains the deployed app. – Pere Jan 11 '23 at 14:01
5

If you're following the standard maven approach, which is highly recommended, then your output goes to the target directory, not out. With the maven approach you'll probably have multiple modules under your project root, and the target directory will be found under each module. The web application is then built into an exploded directory named after the module, but with .war as an extension. So, you have:

project/module/target/webapp.war
Software Engineer
  • 15,457
  • 7
  • 74
  • 102
3

The server log output the env variable "CATALINA_BASE" which contains the exploaded location

mike
  • 111
  • 1
  • 3
1

I am new to IntelliJ IDEA. In my config. I add a local tomcat server. My tomcat container is run the project's target folder.

${your project's path}\target\ ${your project's name}

In this path ,you will find the file that IDEA has build. And tomcat server would run this folder.

alan9uo
  • 1,011
  • 1
  • 11
  • 17