TOMCAT用的时候出现这个问题

Port 8080 required by J2EE Preview at localhost is already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).

端口已经被占用了吧,看看端口被什么占用了。

把server.xml贴一下

图片说明

端口被占用了,你可以用netstat命令在命令行查看哪个应用占用了此端口,将其关闭即可

8080被占用。netstat -nalp

将server.xml几处端口都改改,再试下