facebook

Spring database Driver connection not found exception

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #250731 Reply

    amir55
    Participant

    hi

    1 – I run Spring on myeclipse and got error in connection to database Mysql.

    2 – my setting is perfect with ejb and as follows

    private static DriverManagerDataSource getDataSource() {
    DriverManagerDataSource dataSource = new DriverManagerDataSource();
    dataSource.setUrl(“jdbc:mysql://localhost/Test”);
    dataSource.setDriverClassName(“com.mysql.jdbc.Driver”);
    dataSource.setUsername(“root”);
    dataSource.setPassword(“amir”);
    return dataSource;
    }

    3 – the problem is this message

    Could not load JDBC driver class [com.mysql.jdbc.Driver]

    4 – MyEclipse aready configured to database perfectly.

    thqanks a lot

    #250739

    Brian Fernandes
    Moderator

    Amir,

    While ME might connect to your database without issue, you still have to setup your project correctly.
    You have to copy the JAR file containing the MySQL driver to your project and add it to your project’s classpath.

    Let us know if you require further assistance.
    Best,
    Brian.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Spring database Driver connection not found exception

You must be logged in to post in the forum log in