Home java com.mysql.jdbc.Driver is not with the installation JDBC Realm

com.mysql.jdbc.Driver is not with the installation JDBC Realm




java.sql.SQLException: com.mysql.jdbc.Driver
at org.apache.catalina.realm.JDBCRealm.open (JDBCRealm.java:651)
at org.apache.catalina.realm.JDBCRealm.startInternal (JDBCRealm.java:724)
at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:147)
at org.apache.catalina.core.ContainerBase.startInternal (ContainerBase.java:904)
at org.apache.catalina.core.StandardEngine.startInternal (StandardEngine.java:262)
at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:147)
at org.apache.catalina.core.StandardService.startInternal (StandardService.java:441)
at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:147)
at org.apache.catalina.core.StandardServer.startInternal (StandardServer.java:787)
at org.apache.catalina.util.LifecycleBase.start (LifecycleBase.java:147)
at org.apache.catalina.startup.Catalina.start (Catalina.java:629)
AT Sun.Reflect.nativeMethodAccessorImpl.Invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke (Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke (Unknown Source)
at java.lang.reflect.Method.invoke (Unknown Source)
at org.apache.catalina.startup.Bootstrap.start (Bootstrap.java:351)
at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:485)
Caused by: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
at java.net.URLClassLoader.findClass (Unknown Source)
at java.lang.ClassLoader.loadClass (Unknown Source)
at java.lang.ClassLoader.loadClass (Unknown Source)
at java.lang.class.Forname0 (Native Method)
at java.lang.Class.forName (Unknown Source)
at org.apache.catalina.realm.JDBCRealm.open (JDBCRealm.java:647)
… 16 more

  • Catalina_Home Catalina_Base and are installed in the Environment Variables ..
  • If anyone can help I will be glad!

Answer 1, Authority 100%

The connector should be lib


Answer 2

  1. To solve this problem you need to connect the driver to “your project” namely ODBC connector. If you download the connector on MYSQL website see examples here https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-usagenotes-connect-drivermanager.html#connector-j- examples-connection-drivermanager

  2. To attach a JDBC driver to a project, see the video here https: // www .youtube.com / watch? v = pwYtFvGzB-U
    all similar in any editor.

  3. See the name of the driver as it is different in different versions
    Class.forName ( “com.mysql.jc.jdbc.Driver”); – A new version of the driver!
    Class.Forname (“com.mysql.jdbc.driver”); – the old version of the driver: (

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions