wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes Exception while connecting to DB2 from Hibernate with RAD 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Exception while connecting to DB2 from Hibernate with RAD 7" Watch "Exception while connecting to DB2 from Hibernate with RAD 7" New topic
Author

Exception while connecting to DB2 from Hibernate with RAD 7

echarish Kumar
Ranch Hand

Joined: Feb 02, 2010
Posts: 42
i am developing an application with hibernate and DB2 AS400 while connecting to DB with application i get this exception please help.

ContextLoader E org.springframework.web.context.ContextLoader initWebApplicationContext Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securitySessionFactory' defined in class path resource [applicationContext-security.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: Error while defining class: com.ibm.as400.access.AS400JDBCConnection
This error indicates that the class: Error while defining class: com.ibm.as400.access.ToolboxWrapper
This error indicates that the class: java.sql.Wrapper
could not be located while defining the class: com.ibm.as400.access.ToolboxWrapper
This is often caused by having the class at a higher point in the classloader hierarchy
Dumping the current context classloader hierarchy:
==> indicates defining classloader
*** indicates classloader where the missing class could have been found

Bosun Bello
Ranch Hand

Joined: Nov 06, 2000
Posts: 1510
A classpath issue may be.


Bosun (SCJP, SCWCD)
So much trouble in the world -- Bob Marley
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Exception while connecting to DB2 from Hibernate with RAD 7