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