Hotswap embedded tomcat application not working
Hello,
I have a project that I'm trying to get to work with Intellij. The startup is basically a launcher class that then starts an embedded tomcat and I've set up the run configuration as an Application but I can't seem to get hotswapping to work. For my other project that is configured with a tomcat run configuration it has the option to select update/fram deactivation options and it works without problem, so I must be missing something.
What are the requirements to get hotswapping to work for a normal Application run configuration?
IntelliJ IDEA 2018.2 EAP (Ultimate Edition)
Build #IU-182.3208.16, built on June 14, 2018
IntelliJ IDEA EAP User
Expiration date: July 14, 2018
JRE: 1.8.0_152-release-1136-b39 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.13.0-43-generic
Please sign in to leave a comment.
What application type are you debugging? See Reload modified classes about how to hotswap classes for the Application run/debug configuration. Try also DCEVM integration.
Ok, I see now that there was a "reload changed classes" in the Run menu, that helped a bit as that functionality was what I was looking for. So now my question is, why doesn't this happen automatically?
For my Tomcat run configuration I have these option to choose my update options:
but I dont get anything like that for my normal Application:
Tomcat Run/Debug Configuration deploys web application archive to a JavaEE application server and the update process is different for it: Updating Applications on Application Servers.
>why doesn't this happen automatically?
With the Reload classes after compilation option set to Always the changed classes will be updated after you invoke Build action (Ctrl+F9 default shortcut).
You can also vote and follow related requests: https://youtrack.jetbrains.com/issue/IDEA-158264, https://youtrack.jetbrains.com/issue/IDEABKL-1006.