报错“ StandardServer.await: create[8005]java.net.BindException: Address already in use: JVM_Bind”

看了网上很多帖子,都说是端口8005被占用,但是,我看了一下端口并没有被占用。
于是,修改了tomcat的server.xml文件,把

<Server port="8005" shutdown="SHUTDOWN">

修改为

<Server port="8088" shutdown="SHUTDOWN">

也就是把8005端口修改为不常用的端口。
问题解决。

另外启动过程中还报过一个错误,就是
Illegal access: this web application instance has been stopped already.
在server.xml中并没有找到context的配置信息,所以干脆就把

<Context path="/expert" docBase="expert" debug="0" reloadable="false"></Context>

加在了server标签内部,如图:

你可能感兴趣的:(报错“ StandardServer.await: create[8005]java.net.BindException: Address already in use: JVM_Bind”)