i ' m developping web application in java m trying connect mysql database using jdbc template ( springs dao) :
severe: servlet.service() servlet [dispatcher] in context path [/dealingofinsiders] threw exception [request processing failed; nested exception org.springframework.jdbc.cannotgetjdbcconnectionexception: not jdbc connection; nested exception org.apache.commons.dbcp.sqlnestedexception: cannot load jdbc driver class 'com.mysql.jdbc.driver '] root cause java.lang.classnotfoundexception: com.mysql.jdbc.driver [....]
i think problem coming file mysql-connector-java-5.1.25-bin.jar contains targeted class ... tried many things problem solve :
i've configured build path of project whith jar didn't worked
i ve put file in folder : web-inf/lib , didn't worked
i ve configured classpath variable jar in eclipse ( preference ->java->buildpath->classpath variabe ) didn't worked
i have put jar file in tomcat library didn't work
i'm running out of ideas if me please thanks
'com.mysql.jdbc.driver ' ^^ // remove space
Comments
Post a Comment