简体   繁体   中英

Problems with running a Java project under Tomcat after an Eclipse crash

This might be the ultimate newbie question, but I am really in a hurry and need a quick fix.

I have a Java project which I develop under Eclipse, and run under Tomcat, using the Eclipse plugin. Until last night everything was sound and fine. Then, I got an Eclipse error, which made me kill the Eclipse process ... and this morning, the project does not want to run.

It compiles, but as if Tomcat has no idea of my project library folder. When I run it, it starts screaming "class not found" exceptions. I did a little experiment of moving my project libs directly into Tomcat's library folder - it works, so clearly the problem lies in Tomcat, not recognizing my project lib folder any longer.

I tried cleaning the project, refreshing it and whatnot, but still the problem persists. I don't want libs t remain a direct possession Tomcat, because that makes a series of other problems and complications. I just want things back as they were last night before the crash.

A solution that seems to have worked - go to the Server view, right-click, then "Clean Tomcat working directory". It has always been there, I must have just been too hectic before to notice it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM