Eclipse starts atatserver

Source: Internet
Author: User

Project Environment:

Eclipse 3.6.2 (J2EE)

Tomcat 7.0

I 've been using it all the time. Today, when I started the server, I couldn't start it. By the way, let's see how eclipse started the Tomcat server.

If you do not need to install it, select the tomcat version for a new server in the project.

Fill in the server name and Host Name (the default localhost is quite good)

Select the server running environment:

Click Add next to select the tomcat installation path.

Click Next and select the web application to be deployed on the server (you can click Finish directly)

 

Then try to start the server. I have encountered two errors.

1: Port 8005, 8080, 8009, and other ports are occupied. Generally, it is occupied by Tomcat's own server. If it is stopped, it will be occupied ...... Find this process to kill it !!

cmd:

netstat-aaon | findstr "8080" displayed

TCP 0.0.0.0: 8080 0.0.0.0: 0 listening 4344
TCP [:]: 8080 [:]: 0 listening 4344

the last one is the process id

continue command:> tasklist | findstr "4344"

see javaw.exe 4344 console 0 58,028

it turns out to be you !! Open the task manager! Restart okay restart

2: xxcontext. xml load error. In this case, I directly click here to delete the server and recreate it (in fact, I guess the context under the directory. there should be a problem with XML, but who made her disobedient! !)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.