Eclipse adds a tomcat server and resolves 404 issues

Source: Internet
Author: User
Tags tomcat server apache tomcat java se

Eclipse Java EE IDE add tomcat server

1. First of all, download the tool and click the link below to download

1) Tomcat v7.0

2) Eclipse IDE for Java EE developers

3) Java SE development Kit

After downloading the installation, the installation here will omit 10,000 words Ah!


2. Add the Tomcat server to open your installed eclipse

1) Select Menu Window--- preferences-->server-->runtime environgments-->add The following interface appears


Here you can choose the Tomcat version, because I'm under version 7.0, so select Apache Tomcat v7.0 then finish.


2) Configure the Tomcat runtime environment. If you do not see the following interface, you can click on the above add below the edit ...

Configuration:

Tomcat Path: D:\apache-tomcat-7.0.34 (the path of my Tomcat decompression)

JRE: Select one, no default JRE selected

3) Open the View servers create the server. Menu Window-->show View-->server-->servers


Click New Server Wizard ... will appear


You can see the information you just configured here, even if your tomcat was added to eclipse, and then finish

3. test. In your Web project right-click Run as--and run on Server below is the eclipse built-in browser to open one of my test projects



OK Configuration Succeeded

But there's a new problem.

question: At this point, if you enter the http://localhost:8080/return page in the Eclipse built-in browser or the external browser address bar will appear 404, but enter the above address is can visit

Ask the success of the Oh! even if the configuration succeeds, there should be a tomcat kitten appearing.

4. New Problem Solving methods

1) Locate the Server Action window and double-click the Tomcat service below.


2) in the open settings, select the server locations option as the second red label and then save if this option is grayed out, you cannot

Please remove server re-add and try again


3) Test Again



At this point we can see the kitten, and the external browser can also see the kitten squint.

This is finally the configuration success! Then you can enter your Web development journey!!

Eclipse adds a tomcat server and resolves 404 issues

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.