Question about intelliJ Tomcat Run/Debug configura...
# random
g
Question about intelliJ Tomcat Run/Debug configuration, deployment tab: After the artifacts are built they get deployed and then tomcat is started... I can't figure out what is really happening when deployment happens... it looks to me like the artifact stays in the out folder where it was built to and there is no deployment to the webapps folder, instead Tomcat knows to look in the out folder to load the first class... how it knows to look there is what I don't understand at this point.
k
I think IJ sets CATALINA_BASE to folder in idea config folder where
{pathToconfig}/system/tomcat/{run config name}
and in that folder there is
conf/Catalina/localhost/xxx.xml
which sets app context
g
Thanks for the reply..Not sure I really understand, in run/debug configuration > startup/connection I see there is an environmental var setup for catalina base that is pointing to a tomcat distro inside our project. Here are the vars set. JAVA_OPTS=-Djdk.tls.client.protocols\=TLSv1.2 -Dsun.security.ssl.allowUnsafeRenegotiation\=false -Dhttps.protocols\=TLSv1.2 -Dmdds.no.own.git -Xms1G -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+UseTLAB -XX:NewSize\=128m -XX:MaxNewSize\=128m -XX:MaxTenuringThreshold\=0 -XX:SurvivorRatio\=1024 -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction\=60 CATALINA_BASE=C:/Users/NAME/IdeaProjects/PROJECT/tomcat/apache-tomcat-7.0.57 I think your right in that somehow intellij is telling tomcat where to look in a hidden fashion... why its hidden I don't understand.
k
if you take a look at logs there is something like this
Copy code
02-Oct-2019 09:25:18.640 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE:         /home/common/kubo/secret/.IntelliJIdea2019.2/system/tomcat/Export_(1)_backend
02-Oct-2019 09:25:18.641 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME:         /home/common/kubo/secret/Devel/tomcat/apache-tomcat-8.5.37
but yes its hidden/implicit
g
Thanks for the confirmation... it was driving me crazy, lol