Intellij tomcat local configuration - what's going on behind the scenes?

I use tomcat startup configuration without any problems - this is a great job. However, I somehow do not like the fact that it is not documented anywhere (or isn’t it?), How it really happens.

I assume that it somehow makes a link to the tomcat application created from an artifact in the target directory (if using maven). I also noticed that when using the manager-gui application, no other applications were installed, so it should not use the tomcat / webapps directory.

I am curious:

  • How to make tomcat point to an application outside tomcat's home?
  • Does my application deploy with {project_dir} / target / {appName}?
  • Where is manager-gui app?
  • Where are logs and conf files stored?
0
source share
1 answer

I am using IntelliJ IDEA 15.0.3, Tomcat 8.0.15 and JDK 1.8.0_31

This is an excerpt from C:\Program Files (x86)\JetBrains\IntelliJ IDEA 15.0.2\bin\idea.properties:

#---------------------------------------------------------------------
# Uncomment this option if you want to customize path to IDE system folder. Make sure you're using forward slashes.
#---------------------------------------------------------------------
# idea.system.path=${user.home}/.IntelliJIdea/system
idea.system.path=D:/dev/IntelliJ-Settings/system

In File→ Settings...→ Build, Execution, Deployment→ Application ServersI defined this: (look Tomcat base directory)

enter image description here

D:\catalina-base-idea Contains Tomcat's global configuration for IntelliJ.

When I deploy my webapp using the IntelliJ launch configuration, the web application will be deployed to D:\dev\IntelliJ-Settings\system\tomcat(see idea.properties).

The above question 1.

Question 2: afaik, targetused only for creation, not for deployment.

Question 3: there is no application manager in D:\dev\IntelliJ-Settings\system\tomcat\webapps

Question 4: magazines are within D:\dev\IntelliJ-Settings\system\tomcat\webapps\yourApp. The global configuration of Tomcat is located at D:\catalina-base-idea.

Tomcat IntelliJ , , 8080. , Tomcat IntelliJ Tomact.

+2

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


All Articles