Problem
Experiencing an issue with a simple spring/jsf Maven project with maven and JBoss Wildfly or Apache TomEE server. The problem is that two artifacts are created when the project is synced. Even when no artifact is deployed, the Wildfly server tries to deploy two war files. It is confusing why project sync creates two artifacts automatically and why a manually exploded artifact in IntelliJ selects the out directory. This results in duplicate deployments for Wildfly and TomEE.
Cause
The deployment progress of WAR to the Tomcat/EE/JBoss server will put the generated WAR/WAR Folder under the webapps folder of the app server, so even if new ones aren't deployed, the previously deployed package is still in the target folder and will be started once the server starts. Old deployment instructions have been left in the standalone.xml under the deployment tag for the wildfly server.
Resolution
Resolved the issue by removing the old deployment instructions in the standalone.xml under the deployment tag for the Wildfly server. After doing this, IntelliJ created the war, exploded WAR artifacts, and used the run configuration to add the exploded war as a deployed artifact. This resolved the issue.
Comments
0 comments
Please sign in to leave a comment.