0

Hi all,
I saved my connector/j rar file into this location C:\ ... \Java\jre6\lib\ext

and i am using this code in the JSP :
Class.forName("com.mysql.jdbc.Driver").newInstance();

I am getting below driver error message. Somebody please help me out.

javax.servlet.ServletException: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by nitin_gyan
0

Hi Thanks for the quick response. I copied the rar file into $CATALINA_HOME/common/lib and there was no driver error. But now i am facing a new problem. My JSP name is Demo.jsp, its showing "org.apache.jasper.JasperException: Unable to load class for JSP
" and "java.lang.ClassNotFoundException: org.apache.jsp.Demo1_jsp". For this I remember, we need to make some changes in the xml file present in WEB-INF. So that the class file must go and sit in the src folder. I am still confused.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.