java.lang.ClassNotFoundException: javassist.ClassPath

When you work with Hibernate or Thymeleaf, it is probably that you would get the below exception. It may happen any other projects too if that library has the dependency with javaassist library. I have got this exception when I started developing my first Hello World application using Thymeleaf template framework. The reason for the exception is that I have missed the javassist-3.18.1-GA.jar file. At this time, this is the latest JAR file. If you want to resolve this exception, add the below dependency to your maven’s pom.xml file or manually download the JAR files and add to your project.

java.lang.ClassNotFoundException: javassist.ClassPath
	at org.apache.catalina.loader.WebappClassLoader.loadClass(
	at org.apache.catalina.loader.WebappClassLoader.loadClass(
	at org.thymeleaf.standard.StandardDialect.<init>(
	at org.thymeleaf.Configuration.<clinit>(
	at org.thymeleaf.TemplateEngine.<init>(
	at javax.servlet.http.HttpServlet.service(
	at javax.servlet.http.HttpServlet.service(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
	at org.apache.catalina.core.StandardWrapperValve.invoke(
	at org.apache.catalina.core.StandardContextValve.invoke(
	at org.apache.catalina.core.StandardHostValve.invoke(
	at org.apache.catalina.valves.ErrorReportValve.invoke(
	at org.apache.catalina.authenticator.SingleSignOn.invoke(
	at org.apache.catalina.core.StandardEngineValve.invoke(
	at org.apache.catalina.connector.CoyoteAdapter.service(
	at org.apache.coyote.http11.Http11Processor.process(
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
	at Source)



About Krishna Srinivasan

He is Founder and Chief Editor of JavaBeat. He has more than 8+ years of experience on developing Web applications. He writes about Spring, DOJO, JSF, Hibernate and many other emerging technologies in this blog.

  • Sumati

    Hi Krishna, remember?
    sumati from telefonica team….
    good to see your blog :)

    • Krishna Srinivasan

      Yes. I remember :)