Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/transactio

 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi,
I am trying to integration strut2 hibernate and spring
and my code is as follows.







But i am getting following error in my log file.

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userimplDAO' defined in file [D:\Apache Software Foundation\Tomcat 5.5\webapps\Test\WEB-INF\classes\applicationContext.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in file [D:\Apache Software Foundation\Tomcat 5.5\webapps\Test\WEB-INF\classes\applicationContext.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/transaction/TransactionManager
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:315)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)


Please tell me where i am wrong.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to put JTA's jar in your classpath. In Hibernate, the JAR should be under \lib\required.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic