hibernate - I get a Runtime Exception while executing servlet on server -
severe: servlet.service() servlet [s1] in context path [/newwebsite] threw exception org.hibernate.boot.registry.classloading.spi.classloadingexception: unable load class [com.mysql.jdbc.driver] @ org.hibernate.boot.registry.classloading.internal.classloaderserviceimpl.classforname(classloaderserviceimpl.java:245) @ org.hibernate.engine.jdbc.connections.internal.drivermanagerconnectionproviderimpl.loaddriverifpossible(drivermanagerconnectionproviderimpl.java:200) @ org.hibernate.engine.jdbc.connections.internal.drivermanagerconnectionproviderimpl.buildcreator(drivermanagerconnectionproviderimpl.java:156) @ org.hibernate.engine.jdbc.connections.internal.drivermanagerconnectionproviderimpl.configure(drivermanagerconnectionproviderimpl.java:95) @ org.hibernate.boot.registry.internal.standardserviceregistryimpl.configureservice(standardserviceregistryimpl.java:111) @ org.hibernate.service.internal.abstractserviceregistryimpl.initializeservice(abstractserviceregistryimpl.java:234) @ org.hibernate.service.internal.abstractserviceregistryimpl.getservice(abstractserviceregistryimpl.java:206) @ org.hibernate.engine.jdbc.internal.jdbcservicesimpl.buildjdbcconnectionaccess(jdbcservicesimpl.java:260) @ org.hibernate.engine.jdbc.internal.jdbcservicesimpl.configure(jdbcservicesimpl.java:94) @ org.hibernate.boot.registry.internal.standardserviceregistryimpl.configureservice(standardserviceregistryimpl.java:111) @ org.hibernate.service.internal.abstractserviceregistryimpl.initializeservice(abstractserviceregistryimpl.java:234) @ org.hibernate.service.internal.abstractserviceregistryimpl.getservice(abstractserviceregistryimpl.java:206) @ org.hibernate.cfg.configuration.buildtyperegistrations(configuration.java:1887) @ org.hibernate.cfg.configuration.buildsessionfactory(configuration.java:1845) @ com.user.createsessionfactory(user.java:62) @ com.user.validate(user.java:72) @ com.userbeanservlet.dopost(userbeanservlet.java:38) @ javax.servlet.http.httpservlet.service(httpservlet.java:641) @ javax.servlet.http.httpservlet.service(httpservlet.java:722) @ org.apache.catalina.core.applicationfilterchain.internaldofilter(applicationfilterchain.java:305) @ org.apache.catalina.core.applicationfilterchain.dofilter(applicationfilterchain.java:210) @ org.apache.catalina.core.standardwrappervalve.invoke(standardwrappervalve.java:225) @ org.apache.catalina.core.standardcontextvalve.invoke(standardcontextvalve.java:169) @ org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:472) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:168) @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:98) @ org.apache.catalina.valves.accesslogvalve.invoke(accesslogvalve.java:927) @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:118) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:407) @ org.apache.coyote.http11.abstracthttp11processor.process(abstracthttp11processor.java:999) @ org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:565) @ org.apache.tomcat.util.net.jioendpoint$socketprocessor.run(jioendpoint.java:309) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1145) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:615) @ java.lang.thread.run(thread.java:745) caused by: java.lang.classnotfoundexception: not load requested class : com.mysql.jdbc.driver @ org.hibernate.boot.registry.classloading.internal.classloaderserviceimpl$aggregatedclassloader.findclass(classloaderserviceimpl.java:230) @ java.lang.classloader.loadclass(classloader.java:425) @ java.lang.classloader.loadclass(classloader.java:358) @ java.lang.class.forname0(native method) @ java.lang.class.forname(class.java:274) @ org.hibernate.boot.registry.classloading.internal.classloaderserviceimpl.classforname(classloaderserviceimpl.java:242) ... 34 more
it looks mysql library not there in classpath.
Comments
Post a Comment