ear file will not deploy
Answered
Running intellij and have an ear project. the project builds fine, but when I go do debug, the app server starts up (Wildflpy 30), but there is no dployment started, no error either, just nothing happens.
Please sign in to leave a comment.
I see a duplicate issue post in https://intellij-support.jetbrains.com/hc/en-us/community/posts/25218962141330-exploeded-ear-wil-not-deploy . Could you help us with the required information from the post ? Thanks.
I can't provied source code. Is there some logging I can turn on in intellij?
Wildfly does not accept exploded war by default. So if this is the first time configuration you may need to configure your server accordingly: https://stackoverflow.com/questions/50695327/how-to-deploy-exploded-war-as-folder-in-wildfly-10
Leor Amikam Could you please double confirm if your case matches https://youtrack.jetbrains.com/issue/IDEA-355965/Wrong-exploded-EAR-layout? If no, could you please share the zipped log folder (Help | Collect Logs and Diagnostic Data) and screenshot of the project tree layout?
I don't see where to add files.
I don't see where I can attach a log file to the ticket.
Please file a ticket to support via https://intellij-support.jetbrains.com/hc/requests/new and attach the logs using Help | Collect Logs and Diagnostic Data. You can also upload the logs via https://uploads.jetbrains.com and provide the Upload ID in the ticket.
In your support ticket, please copy/paste the complete output from the server run console in IntelliJ IDEA.
It will also help a lot if you create a small sample project that will reproduce the same issue as your main project and share it in the support ticket.
Thank you.
I uploaded the files to 2025_06_03_UzW4Q81KLx3YQRzBQNNKBs
If you build this project via Maven / Gradle and try to deploy the produced ear file to the JBoss server, does it work without errors?
In other words, is this issue specific to IntelliJ IDEA?
The logs show some dependencies may be missing or incorrect, or there can be some other configuration issue with the project itself that may be not related to IntelliJ IDEA.
Yes, I can build the ear in intellij and manually deploy it to the app server. I can even debug that code.
ear or exploded ear? Please clarify which one deploys fine and which one fails.
To better help you with this issue, please create a support ticket and share any sample project to reproduce the issue. It will speed up the process of finding the issue and will avoid back-and-forth questions in this public forum.
neither ear or exploaded ear deploy from within intellij. I copy the ear file to the jboss deployments folder and it picks it up. I will try to make a sampe project.
You are using JDK 21 to run Wildfly from IntelliJ IDEA. Is it the same version as you use for your standalone Wildfly installation where the deployment works?
yes
I uploaded ( 2025_06_03_Fsnan91AGsBPoZirenAqbG ) a sample project that also fails the same way. Artifact will not deploy.
Your sample project deploys fine if you add the missing Build steps for the project and the artifact itself, otherwise there is an error that the deployment path is not found:
I added the build steps and and still does not deploy.
What is the specific error in the server run console log?
there is no error. It just doesn't start deployment.
Share the full output from the run console.
This is the correct directory from the log file - WFLYDS0013: Started FileSystemDeploymentService for directory X:\javatools\wildfly-30.0.0.Final-hif\standalone\deployments. Its like intellij is not copying the exploded ear file contents.
Try with a clean server installation with unmodified configs.
If you override logging, IDE will not detect the server startup correctly and will not start artifact deployment.
The logs should have something like this when it works properly: