java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlRealmTestTwoConnectionPoolDataSource

Coderanch | Jay Tai | 3 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    j_security_check failing to authenticate users in JSF application

    Coderanch | 3 years ago | Jay Tai
    java.lang.ClassNotFoundException: com.mysql.jdbc.jdbc2.optional.MysqlRealmTestTwoConnectionPoolDataSource
  2. 0

    UserTest: Testes Automatizados - Curso JEE e JSE – Loja Virtual Completa – Parte 18

    com.br | 1 year ago
    java.sql.SQLException: Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : com.mysql.jdbc.jdbc2.optional.MysqlDataSource Error Code: 0
  3. 0

    Deploying java project to remote glassfish server

    Stack Overflow | 4 years ago | Bart Pasmans
    javax.resource.ResourceException: Class name is wrong or classpath is not set for : com.mysql.jdbc.jdbc2.optional.MysqlDataSource</p> <pre><code> at com.sun.gjc.common.DataSourceObjectBuilder.getDataSourceObject(DataSourceObjectBuilder.java:292)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Connecting a MySQL database to Glassfish classpath is not set or classname is wrong

    Stack Overflow | 5 years ago | Randnum
    javax.resource.ResourceException: Class name is wrong or classpath is not set for : com.mysql.jdbc.jdbc2.optional.MysqlDataSource Full error output from console: Caused by: javax.resource.ResourceException: Class name is wrong or classpath is not set for : com.mysql.jdbc.jdbc2.optional.MysqlDataSource

  1. jokester 2 times, last 2 weeks ago
  2. Andreas Häber 1 times, last 3 weeks ago
  3. Bugger 5 times, last 3 weeks ago
  4. marcbouvierdav 2 times, last 4 weeks ago
  5. jf-ast 2 times, last 4 weeks ago
60 more registered users
35 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    com.mysql.jdbc.jdbc2.optional.MysqlRealmTestTwoConnectionPoolDataSource

    at java.net.URLClassLoader$1.run()
  2. Java RT
    Class.forName
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    6. java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    7. java.lang.Class.forName0(Native Method)
    8. java.lang.Class.forName(Class.java:270)
    8 frames
  3. Embedded GlassFish Web
    DSManagedConnectionFactory.createManagedConnection
    1. com.sun.gjc.common.DataSourceObjectBuilder.getDataSourceObject(DataSourceObjectBuilder.java:285)
    2. com.sun.gjc.common.DataSourceObjectBuilder.constructDataSourceObject(DataSourceObjectBuilder.java:114)
    3. com.sun.gjc.spi.ManagedConnectionFactory.getDataSource(ManagedConnectionFactory.java:1307)
    4. com.sun.gjc.spi.DSManagedConnectionFactory.getDataSource(DSManagedConnectionFactory.java:163)
    5. com.sun.gjc.spi.DSManagedConnectionFactory.createManagedConnection(DSManagedConnectionFactory.java:102)
    5 frames
  4. Connectors Runtime
    ConnectorConnectionPoolAdminServiceImpl.getUnpooledConnection
    1. com.sun.enterprise.connectors.service.ConnectorConnectionPoolAdminServiceImpl.getUnpooledConnection(ConnectorConnectionPoolAdminServiceImpl.java:697)
    1 frame