MyEclipse启动时端口被占用错误:严重: Error initializing endpoint

MyEclipse在启动tomcat时,提示:严重: Error initializing endpoint
java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
严重: Catalina.start
LifecycleException:  Protocol handler initialization failed: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
严重: Error starting endpoint
java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
严重: Catalina.start: 
LifecycleException:  service.getName(): "Catalina";  Protocol handler start failed: java.net.SocketException: Unrecognized Windows Sockets error: 0: JVM_Bind
严重: StandardServer.await: create[8005]: 
java.net.BindException: Address already in use: JVM_Bind
严重: Protocol handler pause failed
java.lang.NullPointerException

解决办法:
错误很明显,端口被占用了。
很有可能是之前启动的tomcat没被正常结束。
解决办法:
打开任务管理器,把里面的java.exe,javaw.exe,tomcat.exe(如果有)都结束了。
当然有可能把myeclipse也关了,所以操作前先保存好。
或者看下端口8005被什么程序占用了

你可能感兴趣的:(MyEclipse启动时端口被占用错误:严重: Error initializing endpoint)