JBoss, IntelliJ IDEA, deploy exploded ear, subtask not working

Good morning

I am evaluating Intellij IDEA for my new employer, but I can’t get our J2EE project and it works for exploded artifacts. Everything works fine when I deploy it as archives, but it does not work when I try to explode. And for Hot Swapping, for example, when I modify .jsp or java classes, it is recommended to use exploded artifacts. My .ear contains two other web archives, and that seems to be the problem: -.ear -.jar -.war - lib / - META-INF /

.jar file contains an EJB file .war contains all servlets (e.g. login page)

When I deploy .ear as an exploded artifact, jboss starts just fine, but what it looks like, it does not deploy two archives inside. The log output is pretty short, and also in the jboss management console I do not see two archives deployed under .ear. I tried many different settings for the .ear.exploded artifact, but I can't get it to work. I am not sure if this is an Intellij IDEA problem or a Jboss problem.

Here is the software we use: - Intellij IDEA 14.1.4 - jdk 1.7.0_79 - JBoss EAP 6.4 - Maven 3.3.3

It would be great to get some help because I like Intellij IDEA .;)

+8
java intellij-idea deployment jboss hotswap
source share
1 answer

After I contacted Jetbrains support, I was able to solve my problem. The disassembled folder must have the correct extension. So add an extension for the exploded artifact.

Project Structure -> Artifacts -> Select exploaded Artifact -> Add under Output directory the extension. (In my case ".ear")

Then Jboss will treat it like an ear.

Thanks for reading my post.

+14
source share

All Articles