Search code examples
javatomcatintellij-ideaintellij-14tomcat8.5

Error running Deploy only YYY: Address localhost:8081 is already in use


Intellij and windows1o system throwing the 'Error running Deploy only YYYY: Address localhost:8081 is already in use'. Need your suggestions to resolve this error in Deploying only YYYY.


Solution

  • Faced the same issue some days back,reason is other web server is already running on that port,what you need to do is

    1.open cmd and type netstat -ano and check for the process running on port 8081 and note the PID

    2.Now go to Task Manager,under services tab check for a running web service having same PID,delete that process.

    3.Now restart the Tomcat server.