intermittent ClassNotFoundException for JSP using

2020-04-02 09:47发布

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条回答
Evening l夕情丶
2楼-- · 2020-04-02 10:25

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.

enter image description here

enter image description here

查看更多
登录 后发表回答