– System Setup ——————————-
Operating System and version: Windows 200 Professional
Eclipse version: 2.1.1
Eclipse build id: 200306271545
Fresh Eclipse install (y/n): n?? Initial install, long ago upgrade mgr NOT used
If not, was it upgraded to its current version using the update manager?
Other installed external plugins:
Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*: 6
MyEclipse version: 2.6.100
Eclipse JDK version: 1.4.1
Application Server JDK version: Tomcat 5.0.16
Are there any exceptions in the Eclipse log file? Don’t know where it is.
– Message Body ——————————-
About 1/3 of the time, my JSP files get the following error:
HttpServletRequest cannot be resolved (or is not a valid type)…
HttpSerletResponse cannot be resolved (or is not a valid type)…
HttpSession cannot be resolved or is not a type
javax.servlet cannot be resolved or is not avalid superclass
JspFactory cannot be resolved
…
I resolve the issue now by doing some combination of (a single process does not always do the trick):
– Stop the application Server
– Clicking options: Windows – Preferences – MyEclipse – Application Servers – Tomcat 5
– Then I click on each subsection and re-Apply each screen. Sometimes, the JDK I have set is gone and I have to re-Add the JDK definition.
– Re-Save the JSP file with the error
– Sometimes restart Eclipse
– Repeat the process until resolved.
Sometimes the error occurs when I first start and save, sometimes it doesn’t happen until after several hours of work.
What should I do so that I do not get this error message symptom?