0

I am using mysql-connector-java-5.1.18-bin.jar for database connectivity from a view. The JDBC connectivity code has been used in 3 JSP-struts2 projects in eclipse Helios and works fine there. Here it is throwing

***No suitable driver found for jdbc:mysql://localhost:3306/studentinfo***.

***!ENTRY org.eclipse.ui 4 0 2012-08-10 14:45:22.635
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at org.iiitb.studentinfo.CaptureDetails.LoadToDatabase(CaptureDetails.java:50)*** and stack trace goes on. 

Any clue why it is happening?

KV Prajapati
  • 93,659
  • 19
  • 148
  • 186
Ashrith
  • 655
  • 8
  • 20

1 Answers1

1

You have to include mysql-connector-java-5.1.18-bin.jar file into Build Path or copy it to WEB-INF/lib folder.

KV Prajapati
  • 93,659
  • 19
  • 148
  • 186
  • I have created a /libs folder and added mysql-connector-java-5.1.18-bin.jar to it. then have added this location in to build path. I have already done it. thats not the issue. The Connection code is working properly for helios jsp project. PS:JDK version is 1.7 – Ashrith Aug 10 '12 at 10:59