Tomcat cannot access or drop packets under eclipse

Source: Internet
Author: User
Tags tomcat server

The article is original:

Reprint must indicate original address: http://www.cnblogs.com/guangnianfoo/p/4310863.html by: Lightyears foo

Tomcat started the error under Eclipse. can be started individually.

Error:

1, java.lang.ClassNotFoundException (drops).

Or

2, Tomcat in Eclipse can start normally, and in the browser access to http://localhost:8080/can not access, and reported 404 error. Other project pages cannot be accessed at the same time.

Investigation:
1, Tomcat under the bin Startup.bat start normal.
2. The JDK used by Tomcat and Eclipse runs the same JDK.
3. Tomcat Configuration

Workaround:

on The server page in Eclipse, double-click the Tomcat service to see the configuration page:

Follow the above page to select the configuration.

If the project is deployed in this tomcat, the options in the red circle cannot be modified, and the changes must be removed from the deployed services in Tomcat first.

Right-click:

By right-clicking the Tomcat server, select Add and remove to remove the deployed project in the popup dialog box. The gray area is optional when you are done removing the OK.

Select the Use Tomcat installation (Task control of Tomcat installation) to select Tomcat's installation directory as the publishing directory for the project.

Then go down and find "Deploy Path". Change the default value "Wtpwebapps" to "WebApps", which is the name of the folder where the project is published in Tomcat .

After modification, turn off the page and save the configuration. This deploys the project to the WebApp in the Tomcat installation directory

Restart the Tomcat server, access to the http://localhost:8080 will be able to access the normal, your own deployment of the project is also able to access.

Tomcat cannot access or drop packets under 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.