Hi,
I'm receiving the following error while trying out the tomcat examples.
Internal Servlet Error:
java.lang.Error: Unresolved compilation problems:
The import javax.servlet cannot be resolved
The import javax.servlet cannot be resolved
HttpServlet cannot be resolved or is not a valid superclass
HttpServletRequest cannot be resolved (or is not a valid type) for the argument request of the method doGet
HttpServletResponse cannot be resolved (or is not a valid type) for the argument response of the method doGet
ServletException cannot be resolved (or is not an exception type) for the method doGet
Please let me know what needs to be done.
-
Error with servlet.jar (5 messages)
- Posted by: Rajah Raghuraman
- Posted on: July 16 2004 11:20 EDT
Threaded Messages (5)
- Error with servlet.jar by Senthil Chinnaiyan on July 16 2004 14:13 EDT
- Error with servlet.jar by Rajah Raghuraman on September 27 2004 12:32 EDT
- j2ee.jar is not in the classpath. by meihong lin on July 17 2004 05:04 EDT
- Ok... by justin conte on August 27 2004 15:29 EDT
- j2ee.jar is not in the classpath. by Rajah Raghuraman on September 27 2004 13:50 EDT
-
Error with servlet.jar[ Go to top ]
- Posted by: Senthil Chinnaiyan
- Posted on: July 16 2004 14:13 EDT
- in response to Rajah Raghuraman
Looks like servlet.jar is not in your container's classpath. -
Error with servlet.jar[ Go to top ]
- Posted by: Rajah Raghuraman
- Posted on: September 27 2004 12:32 EDT
- in response to Senthil Chinnaiyan
Hi Senthil,
I have servlet.jat in the classpath.
Rajah -
j2ee.jar is not in the classpath.[ Go to top ]
- Posted by: meihong lin
- Posted on: July 17 2004 05:04 EDT
- in response to Rajah Raghuraman
j2ee.jar is not in the classpath. -
Ok...[ Go to top ]
- Posted by: justin conte
- Posted on: August 27 2004 15:29 EDT
- in response to meihong lin
How do you get the j2ee.jar in the containers path? I guess it will be dependent on the server you are using?
See, I think the problem is more involved than that. I am using Tomcat and having this problem. The servletapi.jar sits inside the common/lib directory and Tomcat still can't find it. It should find it there.
If you get this error, something is pretty messed up. -
j2ee.jar is not in the classpath.[ Go to top ]
- Posted by: Rajah Raghuraman
- Posted on: September 27 2004 13:50 EDT
- in response to meihong lin
I have the j2ee.jar in the classpath.