About the issue of launching Tomcat access to less than 8080 pages in eclipse

Source: Internet
Author: User
Tags tomcat server

One little thing about Tomcat and Eclipse.

Forgive me for not being bothered with typesetting, the important thing is content (every time to comfort yourself)

Let's put a picture of the mold, calm down.

Well, recently the computer installed a solid-state drive, there is an unfinished project, need to download eclipseee and Tomcat run program, re-eclipseee and Tomcat, but also in Eclipseee set the relevant properties of Tomcat, But it is strange that after the launch of Tomcat in Eclipse, no problem, all started normally, but access to 8080 page is 404 Not found??? However, if it is started under the bin file under Tomcat, accessing page 8080 is no problem. For this I have thought about several aspects ...

(1) It was awkward, and I thought it was Eclipseee's problem to reload it again. -----useless.

(2) I changed the Tomcat version of the-----.

(3) It's weird to go online and search for something, like

http://blog.csdn.net/xw13106209/article/details/6907236

http://blog.csdn.net/pk490525/article/details/7968213

It's all called me to change the project publishing directory of Eclipse server to Tomcat. It is possible to have a try. But wondering why you didn't do it before, and you can publish the project,

Think ing ....

(4) After three hours of tossing, online can not find the relevant instructions, all exclusively called me to change the configuration of the server, I feel so I do not create a new tomcat is not very annoying ... Be aware that programmers are the most lazy.

I finally figured it out after I smoothed out the logic behind the release of Tomcat in Eclipse, comrades!!!

Create a new Tomcat server in Eclipse and publish the project to a. Metadata, which I can call a temporary tomcat publisher, in Eclipse's project directory. And the online teach us to change is the original eclipse released here by default project published to Tomcat WebApps, so it is very strange, you write a Java EE project will be published to the actual Tomcat directory, is very unscientific.

--------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------- ------------、

Gorgeous Split-line

--------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------- ------------

Used Tomcat know WebApps below is to publish the project, as long as you download Tomcat inside will have a few folders, yes!!! Think of it. 8080 that page is in one of these folders, so every time you start Tomcat from the outside, when you access the root directory of the localhost:8080/, the location of the Webapps,webapps will be blocked after the project to locate the 8080 page, We configured the Tomcat in eclipse to access the temporary publisher in the. metadata, which was created by Eclipse and has no engineering to intercept 8080 pages!!! So no matter how you access it, you can't find 8080!!.

So, I'm sure as long as you eclipse,tomcat is brand new, Tomcat normal boot access less than 8080 is normal!! Because you don't have a project to intercept localhost:8080/this request!!

is not feeling this very pit!! The principle is so simple.

The online solution is okay, but they didn't find the nature of the problem (maybe someone found it, but I didn't.) )。

Remember this pit!!!

It's written here so everyone can see.

PS: I think the problem is to find a better reason, the solution is because of the cause,

By the To: remember a good data recovery software minitool. Recovering data These two days is going crazy. Although only 2G, but free, conscience.

Finally, I saw a blog before the end of a sentence: you can see, the use of more and more simple, the programmer more and more silly, do not know is good, or bad ...

About the issue of launching Tomcat access to less than 8080 pages in eclipse

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.