Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Exception while connecting to DB2 from Hibernate with RAD 7

 
echarish Kumar
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1510
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A classpath issue may be.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic