Everyday when I start my computer, and then attempt to start my tomcat server in eclipse , it gives me following error.
starting tomcat v7.0 server at localhost has encountered a problem
![]()
I have googled for this issue but whatever I got was temporary solution/ie killing apache sudo kill $(ps -aef | grep apache| awk '{print $2}')
this solves the problem but not permanantly. after entering above command on terminal , I start tomcat from eclipse and then my tomcat server starts.
but I have to enter this command daily before starting my work and also whenever I restart my PC,is there any other permanant solution which can directly allow me to start my tomcat from eclipse.
I have tried adding and removing tomcat server also deleting the server and adding it back,but this doesnt solve the problem.
FYI : I am using ubuntu 14.04,eclipse mars,tomcat version 7.
您也可以尝试在启动时禁用自动启动,然后从eclipse启动tomcat。
sudo systemctl disable tomcat7.service
Looks like you have already installed tomcat (or other application) that used 8005 or 8080 port.
You can find that application by command:
sudo netstat -lntp | grep 8080
sudo netstat -lntp | grep 8005
If you not use that application, just remove it :
sudo apt-get remove APP
PS Also you can just run tomcat from eclipse on other (not 8005 and 8080) ports.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.