tomcat 8080 is already in use hatası ve çözümü
Deployment error: Starting of Tomcat failed, the server port 8080 is already in use.
See the server log for details.
at org.netbeans.modules.j2ee.deployment.devmodules.api.Deployment.deploy(Deployment.java:230)
at org.netbeans.modules.maven.j2ee.ExecutionChecker.performDeploy(ExecutionChecker.java:178)
at org.netbeans.modules.maven.j2ee.ExecutionChecker.executionResult(ExecutionChecker.java:130)
at org.netbeans.modules.maven.execute.MavenCommandLineExecutor.run(MavenCommandLineExecutor.java:212)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:153)
Yukarıdaki gibi bir hata alıyorsanız tomcat arkaplanda açık kalmıştır. Linux/Unix tabanlı sistemlerde şu şekilde bu sorunu çözebilirsiniz.
ps -x | grep tomcat
yazarak tomcat’in process numarasını bulursunuz.
Örnek:
14293 ?? 4:13.88 /Library/Java/JavaVirtualMachines/jdk1.7.0_21.jdk/Contents/Home/bin/java -Djava.util.logging.config.file=/Users/furkanzumrut/apache-tomcat-7.0.53/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Xms128m -Xmx1024m -Djava.endorsed.dirs=/Users/furkanzumrut/apache-tomcat-7.0.53/endorsed -classpath /Users/furkanzumrut/apache-tomcat-7.0.53/bin/bootstrap.jar:/Users/furkanzumrut/apache-tomcat-7.0.53/bin/tomcat-juli.jar -Dcatalina.base=/Users/furkanzumrut/apache-tomcat-7.0.53 -Dcatalina.home=/Users/furkanzumrut/apache-tomcat-7.0.53 -Djava.io.tmpdir=/Users/furkanzumrut/apache-tomcat-7.0.53/temp org.apache.catalina.startup.Bootstrap start
Bizim process numaramız 14293’müş.
kill -9 14293 yazarak bu arkaplanda çalışan process’i sonlandırabiliriz.