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!

JSP/Tomcat/MySQL

843835Feb 21 2002 — edited Feb 21 2002
Hello JSP developers!

I have a problem trying to connect to MySQL database when I am doing a JSP or a servlet. I think the problem has to be with Tomcat, because when I do a java application with a database connection works perfectly, so there must be Tomcat.

I am working with Java j2sdk1.4.0 and Netbean as my IDE. When I compile the JSP under the IDE does not give me any errors but when I try to see the result with Tomcat 4.0 does not seem to recognize the mm.mysql driver and gives me the following errors:

Generated servlet error:
D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:75: Class org.apache.jsp.Connection not found.

Generated servlet error:
D:\Apache Tomcat 4.0\work\localhost\_\JspMySQL$jsp.java:76: Class org.apache.jsp.ResultSet not found.
ResultSet results;

It gives me more errors, related to the connection. If you are willing to help me I can send you the exception report that Tomcat generates.

I would really appreciate if you help me about this issue, because I am beginnig to get frustated.

Thanks!!!!



Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 21 2002
Added on Feb 21 2002
1 comment
104 views