java - mysql driver jar not being recognized -
I have token class file into a jar file jdbc to retrieve data from the database which I class files Class Tokens Uses. However when I call the jar file it does not modify the external mysql driver jar file again.
Error This line is pointing to Class.forName (driver); ..
I have referenced the mysql driver in the ant build file and every classpath I could think of
& Lt; Attribute name = "class-path" value = "lib / servlet.jar lib / mysql-connector-java-5.1.7-bin.jar config /" / & gt; & Lt; / Reveal & gt; & Lt; / Jar & gt; Nothing is working? . Would appreciate any help
Thank you
java.lang.ClassNotFoundException: java.net.URLClassLoader $ 1.run (URLClassLoader.java:200) on mysql java.security. .doPrivileged (Native method AccessController) on java.net.URLClassLoader.findClass (URLClassLoader.java:188) java.lang.ClassLoader.loadClass (ClassLoader.java:316) on sun.misc.Launcher $ AppClassLoader.loadClass (Launcher on Kjava: on java.lang.Class.forName0 on java.lang on java.lang.ClassLoader.loadClass (ClassLoader.java:251) java.lang.ClassLoader.loadClassInternal (ClassLoader.java:374) (Native method) 288) The Class.forName (Class.java:169) socksviahttp.server.token.getConnection (token.java:58) (token.java:75) on socksviahttp.server.token.exists on socksviahttp.server.ServletSocks.doPost (ServletSocks java: 328) D.run at javax.servlet.http.HttpServlet.service (HttpServlet.java:760) at javax.servlet.http.HttpServlet.service (HttpServlet.java:853) on jhttpserver.JHttpServerThrea (JHttpServerThread.java- 20117)
and lines that enter the mysql driver is with some lines:
class. Fernáne ("com.mysql.jdbc.Driver"); Class loader error appears to be an unrounded 'mysql' class, not even a single reference by package. You usually only see this error when you are dynamically loading a class without specifying the full class name.
What do you use to load the mysql driver class? If this is a spring config file, then you probably do not have the full class name in the config file.
And I only looked at the lower case 'class-path', this is considered 'class-path'
Comments
Post a Comment