I am trying to build, deploy and debug my webapp inside intellij.
I have setup my tomcat using this answer and I was able to get the server running. The issue is th
Another possible reason could be that you manually run a standalone Wildfly apps server and copy your packages manually in its deployment
folder.
In this case Intellij tries to run Wildfly (even if you have stopped your manually run Wildfly) and to copy app's package for deployment. But there is already such a package in deployment folder
.
Remove myapp.ear
or myapp.war
from .../wildfly/standalone/deployments/
and Run or Debug from Intellij.