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 :

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

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

Recommended Answers

All 2 Replies

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.