java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at > org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1366) at > org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1315) at > org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1068)

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,

You are not deploying the oracle driver with the application. Place the driver jars in a shared or library extension folder of your application server. (You should go with option one or two though

,
Expert tip

This might be an issue with the file location in the Spark submit command. Try it with

spark-submit --master spark://master:7077 \
     hello_world_from_pyspark.py {file location}

Solutions on the web

via openxava by xgonzalez
, 1 year ago
com.mysql.jdbc.Driver at > org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1366) at > org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1315) at > org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1068)
via fico.com by Unknown author, 1 year ago
com.farmers.rules.processing.rules.Server at com.blazesoft.util.NdExtensibleClassLoader.loadClass(:273)
via GitHub by carterpage
, 2 years ago
}} .... A whole lot of jar files and libraries........ com.lowagie.text.pdf.interfaces, org.springframework.ejb.interceptor] NON_EMPTY}} at org.jboss.classloader.spi.base.BaseClassLoader.loadClass( BaseClassLoader.java:448)
via GitHub by carterpage
, 2 years ago
}} .... A whole lot of jar files and libraries........ com.lowagie.text.pdf.interfaces, org.springframework.ejb.interceptor] NON_EMPTY}} at org.jboss.classloader.spi.base.BaseClassLoader. loadClass(BaseClassLoader.java:448)
via karaf-user by D, 1 year ago
net.logstash.log4j.JSONEventLayoutV1 not found by org.ops4j.pax.logging.pax-logging-service [5] at >> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532) at
via karaf-user by Achim Nierbeck, 1 year ago
net.logstash.log4j.JSONEventLayoutV1 not found by org.ops4j.pax.logging.pax-logging-service [5] at > org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532) at
java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at > org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1366) at > org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1315) at > org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:1068)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)

Users with the same issue

237 times, 1 month ago
2 times, 6 months ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
8 times, 1 year ago
Once, 7 months ago
324 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.