org.apache.commons.dbcp.SQLNestedException: Cannot create JDBC driver of class 'com.mysql.jdbc.Driver' for connect URL 'jdbc:oracle:thin:@localhost:1521:Oracle'
I think you defined mysql driver at your driver class configuration and trying to connect oracle db.
and Check ojdbc jar is added or missed.
Answer is : Correct your driver class name and add ojdbc jar to your Build Path.
How to add ojdbc jar to Build Path?
Download ojdbc6.jar from internet.
Right click on project and cllick on Build Path->Configure Build Path..->go to Libraries->Add External JARs...
->select downloaded ojdbc.jar ->ok.
No comments:
Post a Comment