Some problems encountered when using tomcat

When I was using eclipse today, I opened tomcat and reported an error, the error prompt:

Could not load the Tomcat server configuration at \Servers\Tomcat v6.0 Server at localhost-config. The Servers project is closed.

Because I also used myeclipse to deploy the project, thinking that the project in myeclipse was not opened, then I removed the project in myeclipse, but still reported the same error, later removed tomcat in eclipse, and then restarted Add, still invalid, the same error package.

Later, I found relevant answers on the Internet, first remove tomcat, and then delete the entire folder of .settings under the eclipse workspace, (specific path: D:\eclipse-workspace\.metadata\.plugins\org.eclipse.core.runtime ) Restart eclipse.

Re-add tomcat after restarting eclispe, but the previous web project will prompt that some related jar packages cannot be found.

Solution:

1. Right-click the project name -> properties

2. Select Targeted Runtimes below 

3. Select the Tomcat server you opened on the right->apply->ok


Guess you like

Origin blog.csdn.net/zpt912/article/details/79639167