This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
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 Building Microservices this week in the Design 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
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Exception while connecting to DB2 from Hibernate with RAD 7
 
It's not a secret anymore!