Issues and workarounds for Eclipse configuration Tomcat

Source: Internet
Author: User
Tags tomcat server

  Eclipse is a good tool to develop JSP, and I encountered some small problems when configuring the Tomcat server, here to summarize some experience, I hope to help the same encounter these problems of the vast number of colleagues can easily solve these problems ~

I used to self-study JSP time once used Tomcat+eclipse, and has been successfully configured to complete, but because the previous period of time because the D disk is too messy, to tidy up a bit, the result ~ ~, again used when it is not good to make, again configure the JSP, basically to meet the problems encountered , but also a smooth solution, the following is the author encountered these problems:

1, 8080 ports are occupied.

The solution to this problem is very simple, in the Baidu experience I am familiar with a method.

Open cmd (start with Search->cmd (right-click, select Run as Administrator))

Input: Netstat-ano|findstr 8080

    

      See listening behind the "7240", remember this number, and then enter: Taskkill/pid 7240/f

After entering, you will see a command-line interface Prompt "Success: the process with PID 7240 terminated." On behalf of the terminating port number succeeded.

(if it is unsuccessful or if the display is not sufficient, follow the previous call to run as Administrator)

The second option is to find your configured Tomcat server in the Services window below the Eclipse interface, double-click:

    

      Double-click "Tomcat v7.0 Server at localhost [stoped,synchronized]" to display:

    

       Then use the Ports section on the right, change the port number after (the big deal All changed) This also can solve the problem of the port number. However, I would like to tell you that sometimes eclipse indicates that the port number error is not because the port number is occupied, so if you and I encounter the same problem, you can try to look at the following solution.

Restart Eclipse, write a test with the JSP program run try, if you succeed, then congratulations, but I encountered the problem is not this,, so also go on debugging.

2, Tomcat stuck, the last hint of more than 45s, (someone stuck in 27%, very fortunate, the author stuck in the 100% .... )

This is the ultimate problem that I face, really very sad, Tomcat run to 100% actually did not move!!! This makes me very unacceptable, I saw online some said to restart, the author foolishly restarted three times, still ended in failure ... Others say double-click the Tomcat server under the Servers window (as in problem 1, then change the server Location section, select the second, use Tomcat installation (takes control of Tomcat installation), this method can be described in the online solution written by other people, I think it is certainly more than I understand, but still not.

Finally, the solution is to 、、、、、 uninstall the Tomcat server, re-configure the Tomcat server in eclipse (since I installed the Tomcat server, note that the installation version, I downloaded a compressed package, free installation version, from Baidu can search), this is good , did not stop at 100%, run a direct hint that the Tomcat server is not open! It doesn't matter, look at the third method,

3, Tomcat server cannot open, directly stop running.

Have you noticed a problem when we set up the project, the list of items on the left has a services package containing some of the Tomcat files, because the author has previously installed Tomcat, so I think it was before in the workspace still remnants of the previous Tomcat , so, found the Eclipse+tomcat workspace (in the local computer, Ang,), and then find the Services folder, finally 、、、 completely delete files, restart Eclipse, (for the sake of insurance, I reconfigured the Tomcat again and finally ran the test program, and I succeeded, and this is what I shared with you about the Eclipse+tomcat configuration process, and I hope to help those friends who have the same problems as me.

Issues and workarounds for Eclipse configuration Tomcat

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.