intermittent ClassNotFoundException for JSP using eclipse

瘦欲@ 提交于 2019-12-01 14:59:11

问题


Running Eclipse Indigo, Tomcat 7 on Windows - running the web application on the ROOT context with eclipse wtp plugin I am getting this intermittent problem where eclipse cannot find the compiled JSP. It occurs when first accessing the JSP and cannot be resolved except by stopping the Tomcat server and cleaning the Work directory and the project directory. The compile version is there in the eclipse directory structure:

.metadata\.plugins\org.eclipse.wst.server.core\tmp0\work\Catalina\localhost\_\org\apache\jsp\WEB_002dINF\...

but it still produces this error.

After some research I found this related thread which seems to suggest the problem only occurs when the application is deployed on ROOT.

http://comments.gmane.org/gmane.comp.jakarta.tomcat.user/208071

And a bug has been entered: https://bugs.eclipse.org/bugs/show_bug.cgi?id=334977

Has anyone had a similar issue to this and knows a solution?


回答1:


Hi please try to configure value as per first screen shot and change location as per second screenshot and try if that works for you.



来源:https://stackoverflow.com/questions/7953456/intermittent-classnotfoundexception-for-jsp-using-eclipse

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!