Problems with Maven builds and running Tomcat since 2019.3 update
Since the recent update to 2019.3, I have massive problems with running my apps in Tomcat using Maven builds from Idea. I don't know what is actually causing the problems.
- Idea: IntelliJ IDEA 2019.3 (Ultimate Edition)
Build #IU-193.5233.102, built on November 27, 2019
Subscription is active until July 12, 2020
Runtime version: 11.0.4+10-b520.11 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.15.0-72-generic
GC: ParNew, ConcurrentMarkSweep
Memory: 1960M
Cores: 4
Registry:
Non-Bundled Plugins: BashSupport, GrepCode.com Code Search, Pythonid, com.steve.plugins.autoscroll, mobi.hsz.idea.gitignore
- OS: Ubuntu 18.04.3 LTS
- Project JDK: 1.8.0-112
- Maven version: 3.2.5
- Tomcat 8.0.36
my Run/Debug config has Maven goal "clean compile" with my local profile and Build exploded artifact in the before launch steps.
When clicking the "Rerun" button the first time, or manually stopping the server and clicking, "Run" or "Debug", I get: com.intellij.javaee.oss.admin.jmx.JmxAdminException: com.intellij.execution.ExecutionException: (my project target path) not found for the web module.
When clicking it again, it already fails at the Compile step, because it doesn't find some packages used in my java code. This continues to happen when I click the Run or Debug buttons again.
Only if I manually run "clean" from the Maven menu, close all Run and Debug output windows, and then click "Run" or "Debug" again, I get a correct build, deploy and Tomcat start again.
While this is (only) annoying for locally running my application, my JUnit configurations run into similar problems and I can't get to run them at all.
Please sign in to leave a comment.
Does this looks like your case:https://youtrack.jetbrains.com/issue/IDEA-215797 ? Please vote/comment of in on tracker.
No, this looks different. My build/run fails much faster, it takes only seconds at most, there is no hang/wait time. And my problem is recent since last week's update, it did not happen before.
I'd recommend to file a bug report on the tracker, that I've sent in the previous message.
Created an issue in the bug tracker: https://youtrack.jetbrains.com/issue/IDEA-228576
I cant find the issue number you posted. Have you solved it somehow ?
I have the same problem after updating to 2019.3. I'm deploying a bootstrap exploded artifact using Maven to Tomcat 8.5. This is the case with all my projects deployed this way. This takes 2 seconds, Maven builds the artifact correctly to my target path as before the Intellij update.
[2019-12-11 10:39:25,345] Artifact MY_PROJECTr:war exploded: Artifact is being deployed, please wait...
[2019-12-11 10:39:25,359] Artifact MY_PROJECT:war exploded: Error during artifact deployment. See server log for details.
[2019-12-11 10:39:25,360] Artifact MY_PROJECT:war exploded: com.intellij.javaee.oss.admin.jmx.JmxAdminException: com.intellij.execution.ExecutionException: MY_PROJECT_PATH not found for the web module.
Hello Michal, I made the issue visible to staff only as I attached project data and logs. They asked me to try the 2019.3.1. preview version, which fixed the issue for me. Here is the download page: https://confluence.jetbrains.com/display/IDEADEV/IDEA+2019.3+latest+builds
Thank you, it worked :) i was just about to downgrade to 2019.2
Still not working for me with 2019.3.1.
We are using Tomee template - should it be fixed also for Tomee?