How to setup/configure a JEE project deployed in JBoss EAP for the fly development/debugging?

Answered

Is there any documentation which indicates how to properly setup/configure an IntelliJ project such that I can deploy me exploded EAR to a Jboss EAP (Wildfly) server and have live updates/modifications take place without having to redeploy everytime?  I've read through https://www.jetbrains.com/help/idea/java-ee.html but that hasn't helped.

Right now, I have a JEE maven application (EAR) that is setup in IntelliJ.  I have setup my JBoss server to have add the artifact exploded:ear deployed on startup.

That integration works fine.  The debugging works fine.  But whenever I modify any files in my web-module/main/src/webapp folder, I have to redeploy the artifact for it to be served.

I've already configured my undertwo configuration in my standalone to read the following:




<subsystem xmlns="urn:jboss:domain:undertow:3.1">
....
<servlet-container name="default" disable-caching-for-secured-pages="false">
<jsp-config recompile-on-fail="true" modification-test-interval="1" check-interval="1" development="true"/>
<websockets/>
</servlet-container>
...
</subsystem>

 


but making changes to my JSPs aren't reflected. A little digging around and I see that the files are deployed in:
{jboss.home}standalone\tmp\vfs\deployment\deployment2f6696bbb769cc03\web-1.0-SNAPSHOT.war-e9fb3bde9f38f2ff

And whenever I make changes to my JSPs they arent automatically recopied into that folder. Consequently, JBoss never reloads them.


Are there any project setup instructions that I can follow to have this configured a little better and allow for on-the-fly modification of JSP/resources/etc files?

 

Thanks,


Eric

0
1 comment
Avatar
Yaroslav Bedrov

Hello Eric,

Seems you should make nested "web-1.0.-SNAPSHOT.war" as a directory, instead of archive, inside "ear:ear exploded" artifact. Does your file properly updated in "target" folder?

 

0

Please sign in to leave a comment.