Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Setting up Tomcat 5.0 CLASSPATH

843838Oct 25 2005 — edited Dec 12 2005
I have recently upgraded from jswdk-1.0.1 to Tomcat 5.0.

I need to make a connection with MySQL.

I've managed to get the JSP examples working - no problems.

I can't get the Bean to connect to MySQL to compile. Following error messages:

package javax.servlet does not exist
import javax.servlet.*;

package javax.servlet.http does not exist
import javax.servlet.http.*;

package javax.servlet does not exist
import javax.servlet.ServletException;

cannot resolve symbol
symbol : class HttpServlet
location: class test.DBConnection
public class DBConnection extends HttpServlet

Looking around the net I would appear that I need to set my CLASSPATH to a servlet.jar in the server lib. I cannot find such a file.

Suggestions please, thanks S.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 9 2006
Added on Oct 25 2005
3 comments
81 views