properties - hibernate db2 configuration -
<hibernate-configuration> <session-factory> <property name="connection.username">bcmuser</property> <property name="connection.password">welcome</property> <property name="connection.driver_class">com.ibm.db2.jdbc.app.db2driver</property> <property name="connection.url">jdbc:db2://localhost:5003/uninst</property> <property name="show_sql">true</property> <mapping class="com.app.mvc.dto.hellodto"/> </session-factory> </hibernate-configuration>
[4/6/17 15:14:06:748 edt] 00000082 systemerr r @ org.hibernate.engine.jdbc.env.internal.jdbcenvironmentinitiator.initiateservice(jdbcenvironmentinitiator.java:66) [4/6/17 15:14:06:748 edt] 00000082 systemerr r @ org.hibernate.engine.jdbc.env.internal.jdbcenvironmentinitiator.initiateservice(jdbcenvironmentinitiator.java:35) [4/6/17 15:14:06:748 edt] 00000082 systemerr r @ org.hibernate.boot.registry.internal.standardserviceregistryimpl.initiateservice(standardserviceregistryimpl.java:88) [4/6/17 15:14:06:748 edt] 00000082 systemerr r @ org.hibernate.service.internal.abstractserviceregistryimpl.createservice(abstractserviceregistryimpl.java:234) [4/6/17 15:14:06:748 edt] 00000082 systemerr r ... 52 more [4/6/17 15:14:06:748 edt] 00000082 systemerr r caused by: java.lang.classnotfoundexception: com.ibm.db2.jdbc.app.db2driver [4/6/17 15:14:06:748 edt] 00000082 systemerr r @ java.lang.class.fornameimpl(native method) [4/6/17 15:14:06:748 edt] 00000082 systemerr r @ java.lang.class.forname(class.java:170) [4/6/17 15:14:06:748 edt] 00000082 systemerr r @ org.hibernate.boot.registry.classloading.internal.classloaderserviceimpl.classforname(classloaderserviceimpl.java:226) [4/6/17 15:14:06:748 edt] 00000082 systemerr r ... 63 more
caused by: systemerr r caused by: java.lang.classnotfoundexception: com.ibm.db2.jdbc.app.db2driver
this exception due db2driver driver. load db2driver jar file on classpath.
Comments
Post a Comment