开发者

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, bu开发者_运维问答t 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜