java.lang.NoClassDefFoundError: javax/transaction/TransactionManager

Spring JIRA | Colly Myers | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    With the application context below I get the java.lang.NoClassDefFoundError: javax/transaction/TransactionManager error and the stack traceback as below. I can't find a javax.transaction package anywhere in the j2sdk1.4.2_08 release and guess that it must come from j2EE somehow. The reference to javax/transaction/TransactionManager is from org.springframework.orm.hibernate3.LocalSessionFactoryBean where it has a configuration property for a JTA transaction manager. I have hibernate3.jat and spring.jar in the classpath. Any help appreciated. <bean id="thePersonnelDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <property name="driverClassName"><value>com.mysql.jdbc.Driver</value></property> <property name="url"><value>jdbc:mysql://sv2.issuebits.com/test_knowledge_v03</value></property> <property name="username"><value>kesuser</value></property> <property name="password"><value>4iUNlUchIajLeq9e</value></property> </bean> <!-- Hibernate SessionFactory --> <bean id="thePersonnelSessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="dataSource"><ref local="thePersonnelDataSource"/></property> <property name="mappingResources"> <list> <value>person.hbm.xml</value> </list> </property> <property name="hibernateProperties"> <props> <prop key="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</prop> <prop key="hibernate.show_sql">true</prop> <prop key="hibernate.cache.use_second_level_cache">false</prop> </props> </property> </bean> <bean id="thePersonnelTransactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"> <property name="sessionFactory"><ref local="thePersonnelSessionFactory"/></property> </bean> I get the following stack trace: C:\Borland\JBuilder2005\j2sdk1.4.2_08\bin\javaw -classpath "C:\development\tks2.0\test\tknowledge\classes;C:\Borland\JBuilder2005\thirdparty\junit3.8\junit.jar;C:\Borland\JBuilder2005\lib\unittest.jar;C:\development\tks2.0\test\tutil\classes;C:\Borland\JBuilder2005\lib\commons-collections.jar;C:\Borland\JBuilder2005\lib\commons-dbcp.jar;C:\Borland\JBuilder2005\lib\commons-logging.jar;C:\Borland\JBuilder2005\lib\commons-pool.jar;C:\Borland\JBuilder2005\lib\aopalliance.jar;C:\Borland\JBuilder2005\thirdparty\hibernate-3.0\lib\dom4j-1.6.jar;C:\Borland\JBuilder2005\thirdparty\MySql\mysql-connector-java-3.1.8-bin.jar;C:\Borland\JBuilder2005\thirdparty\hibernate-3.0\hibernate3.jar;C:\Borland\JBuilder2005\thirdparty\spring-framework-1.2-rc2\dist\spring.jar;C:\development\tks2.0\tks\classes;C:\Borland\JBuilder2005\lib\log4j-1.2.9.jar;C:\development\tks2.0\util\classes;C:\Borland\JBuilder2005\j2sdk1.4.2_08\demo\jfc\Java2D\Java2Demo.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\demo\plugin\jfc\Java2D\Java2Demo.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\javaws\javaws.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\lib\charsets.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\lib\ext\dnsns.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\lib\ext\ldapsec.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\lib\ext\localedata.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\lib\ext\sunjce_provider.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\lib\im\indicim.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\lib\im\thaiim.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\lib\jce.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\lib\jsse.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\lib\plugin.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\lib\rt.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\lib\sunrsasign.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\lib\dt.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\lib\htmlconverter.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\lib\tools.jar" com.borland.jbuilder.unittest.JBTestRunner -socket COLLYADVENT:3356 com.issuebits.tks.test.tknowledge.TestSuiteTks 2005-05-08 18:01:45,734 INFO [com.issuebits.tks.tutil.KTHarness] - Logger configured from [log4j.properties] 2005-05-08 18:01:45,812 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from class path resource [applicationcontext-hibernate.xml] 2005-05-08 18:01:46,046 INFO [org.springframework.context.support.ClassPathXmlApplicationContext] - Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=13582581]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [theKnowledgeDataSource,thePersonnelDataSource,theRankingDataSource,theSmsDataSource,thePersonnelSessionFactory,theKnowledgeTransactionManager,thePersonnelTransactionManager,theRankingTransactionManager,theSmsTransactionManager,theSystemOperator,theTestOperator,thePromotionOperator,theSmsService,theKeywordDao,theRankingService,thePersonManager,thePersonDao,theResearcherDao,basePersonnelTransactionProxy,thePersonnelService,thePersonnelServiceTarget,theKnowledgeServiceConfiguration,theDispatchManager,theAnswerCache,theCustomerCache,theQuestionCache,theAnswerDao,theCustomerDao,theDispatchDao,theQuestionDao,theSystemDao,theTextMessageHistoryDao,baseKnowledgeTransactionProxy,theKnowledgeService,theKnowledgeServiceTarget]; root of BeanFactory hierarchy 2005-05-08 18:01:46,109 INFO [org.springframework.context.support.ClassPathXmlApplicationContext] - 35 beans defined in application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=13582581] 2005-05-08 18:01:46,109 INFO [org.springframework.core.CollectionFactory] - JDK 1.4+ collections available 2005-05-08 18:01:46,125 INFO [org.springframework.core.CollectionFactory] - Commons Collections 3.x available 2005-05-08 18:01:46,140 INFO [org.springframework.context.support.ClassPathXmlApplicationContext] - Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@1d009b4] 2005-05-08 18:01:46,140 INFO [org.springframework.context.support.ClassPathXmlApplicationContext] - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@e91f5d] 2005-05-08 18:01:46,140 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [theKnowledgeDataSource,thePersonnelDataSource,theRankingDataSource,theSmsDataSource,thePersonnelSessionFactory,theKnowledgeTransactionManager,thePersonnelTransactionManager,theRankingTransactionManager,theSmsTransactionManager,theSystemOperator,theTestOperator,thePromotionOperator,theSmsService,theKeywordDao,theRankingService,thePersonManager,thePersonDao,theResearcherDao,basePersonnelTransactionProxy,thePersonnelService,thePersonnelServiceTarget,theKnowledgeServiceConfiguration,theDispatchManager,theAnswerCache,theCustomerCache,theQuestionCache,theAnswerDao,theCustomerDao,theDispatchDao,theQuestionDao,theSystemDao,theTextMessageHistoryDao,baseKnowledgeTransactionProxy,theKnowledgeService,theKnowledgeServiceTarget]; root of BeanFactory hierarchy] 2005-05-08 18:01:46,156 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating shared instance of singleton bean 'theKnowledgeDataSource' 2005-05-08 18:01:46,187 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating shared instance of singleton bean 'thePersonnelDataSource' 2005-05-08 18:01:46,187 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating shared instance of singleton bean 'theRankingDataSource' 2005-05-08 18:01:46,187 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating shared instance of singleton bean 'theSmsDataSource' 2005-05-08 18:01:46,187 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating shared instance of singleton bean 'thePersonnelSessionFactory' 2005-05-08 18:01:46,203 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [theKnowledgeDataSource,thePersonnelDataSource,theRankingDataSource,theSmsDataSource,thePersonnelSessionFactory,theKnowledgeTransactionManager,thePersonnelTransactionManager,theRankingTransactionManager,theSmsTransactionManager,theSystemOperator,theTestOperator,thePromotionOperator,theSmsService,theKeywordDao,theRankingService,thePersonManager,thePersonDao,theResearcherDao,basePersonnelTransactionProxy,thePersonnelService,thePersonnelServiceTarget,theKnowledgeServiceConfiguration,theDispatchManager,theAnswerCache,theCustomerCache,theQuestionCache,theAnswerDao,theCustomerDao,theDispatchDao,theQuestionDao,theSystemDao,theTextMessageHistoryDao,baseKnowledgeTransactionProxy,theKnowledgeService,theKnowledgeServiceTarget]; root of BeanFactory hierarchy} Sun, 08 May 2005 18:01:46 : TUHarness() org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'thePersonnelSessionFactory' defined in class path resource [applicationcontext-hibernate.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/transaction/TransactionManager java.lang.NoClassDefFoundError: javax/transaction/TransactionManager at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:1655) at java.lang.Class.getDeclaredMethods(Class.java:1139) at java.beans.Introspector$1.run(Introspector.java:1266) at java.security.AccessController.doPrivileged(Native Method) at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1264) at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1129) at java.beans.Introspector.getBeanInfo(Introspector.java:379) at java.beans.Introspector.getBeanInfo(Introspector.java:153) at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:140) at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:82) at org.springframework.beans.BeanWrapperImpl.setIntrospectionClass(BeanWrapperImpl.java:310) at org.springframework.beans.BeanWrapperImpl.setWrappedInstance(BeanWrapperImpl.java:268) at org.springframework.beans.BeanWrapperImpl.setWrappedInstance(BeanWrapperImpl.java:250) at org.springframework.beans.BeanWrapperImpl.<init>(BeanWrapperImpl.java:203) at org.springframework.beans.factory.support.AbstractBeanFactory.createBeanWrapper(AbstractBeanFactory.java:558) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:317) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:257) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:271) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:319) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:80) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:56) at com.issuebits.tks.tutil.KTHarness.initialise(KTHarness.java:63) at com.issuebits.tks.tutil.KTHarness.<init>(KTHarness.java:53) at com.issuebits.tks.test.tknowledge.TestSuiteTks.suite(TestSuiteTks.java:22) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.borland.jbuilder.unittest.JBTestRunner.constructTest(Unknown Source) at com.borland.jbuilder.unittest.JBTestRunner.setTest(Unknown Source) at com.borland.jbuilder.unittest.JBTestRunner.initiateTest(Unknown Source) at com.borland.jbuilder.unittest.JBTestRunner.main(Unknown Source)

    Spring JIRA | 1 decade ago | Colly Myers
    java.lang.NoClassDefFoundError: javax/transaction/TransactionManager
  2. 0

    With the application context below I get the java.lang.NoClassDefFoundError: javax/transaction/TransactionManager error and the stack traceback as below. I can't find a javax.transaction package anywhere in the j2sdk1.4.2_08 release and guess that it must come from j2EE somehow. The reference to javax/transaction/TransactionManager is from org.springframework.orm.hibernate3.LocalSessionFactoryBean where it has a configuration property for a JTA transaction manager. I have hibernate3.jat and spring.jar in the classpath. Any help appreciated. <bean id="thePersonnelDataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <property name="driverClassName"><value>com.mysql.jdbc.Driver</value></property> <property name="url"><value>jdbc:mysql://sv2.issuebits.com/test_knowledge_v03</value></property> <property name="username"><value>kesuser</value></property> <property name="password"><value>4iUNlUchIajLeq9e</value></property> </bean> <!-- Hibernate SessionFactory --> <bean id="thePersonnelSessionFactory" class="org.springframework.orm.hibernate3.LocalSessionFactoryBean"> <property name="dataSource"><ref local="thePersonnelDataSource"/></property> <property name="mappingResources"> <list> <value>person.hbm.xml</value> </list> </property> <property name="hibernateProperties"> <props> <prop key="hibernate.dialect">org.hibernate.dialect.MySQLInnoDBDialect</prop> <prop key="hibernate.show_sql">true</prop> <prop key="hibernate.cache.use_second_level_cache">false</prop> </props> </property> </bean> <bean id="thePersonnelTransactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"> <property name="sessionFactory"><ref local="thePersonnelSessionFactory"/></property> </bean> I get the following stack trace: C:\Borland\JBuilder2005\j2sdk1.4.2_08\bin\javaw -classpath "C:\development\tks2.0\test\tknowledge\classes;C:\Borland\JBuilder2005\thirdparty\junit3.8\junit.jar;C:\Borland\JBuilder2005\lib\unittest.jar;C:\development\tks2.0\test\tutil\classes;C:\Borland\JBuilder2005\lib\commons-collections.jar;C:\Borland\JBuilder2005\lib\commons-dbcp.jar;C:\Borland\JBuilder2005\lib\commons-logging.jar;C:\Borland\JBuilder2005\lib\commons-pool.jar;C:\Borland\JBuilder2005\lib\aopalliance.jar;C:\Borland\JBuilder2005\thirdparty\hibernate-3.0\lib\dom4j-1.6.jar;C:\Borland\JBuilder2005\thirdparty\MySql\mysql-connector-java-3.1.8-bin.jar;C:\Borland\JBuilder2005\thirdparty\hibernate-3.0\hibernate3.jar;C:\Borland\JBuilder2005\thirdparty\spring-framework-1.2-rc2\dist\spring.jar;C:\development\tks2.0\tks\classes;C:\Borland\JBuilder2005\lib\log4j-1.2.9.jar;C:\development\tks2.0\util\classes;C:\Borland\JBuilder2005\j2sdk1.4.2_08\demo\jfc\Java2D\Java2Demo.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\demo\plugin\jfc\Java2D\Java2Demo.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\javaws\javaws.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\lib\charsets.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\lib\ext\dnsns.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\lib\ext\ldapsec.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\lib\ext\localedata.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\lib\ext\sunjce_provider.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\lib\im\indicim.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\lib\im\thaiim.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\lib\jce.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\lib\jsse.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\lib\plugin.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\lib\rt.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\jre\lib\sunrsasign.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\lib\dt.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\lib\htmlconverter.jar;C:\Borland\JBuilder2005\j2sdk1.4.2_08\lib\tools.jar" com.borland.jbuilder.unittest.JBTestRunner -socket COLLYADVENT:3356 com.issuebits.tks.test.tknowledge.TestSuiteTks 2005-05-08 18:01:45,734 INFO [com.issuebits.tks.tutil.KTHarness] - Logger configured from [log4j.properties] 2005-05-08 18:01:45,812 INFO [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] - Loading XML bean definitions from class path resource [applicationcontext-hibernate.xml] 2005-05-08 18:01:46,046 INFO [org.springframework.context.support.ClassPathXmlApplicationContext] - Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=13582581]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [theKnowledgeDataSource,thePersonnelDataSource,theRankingDataSource,theSmsDataSource,thePersonnelSessionFactory,theKnowledgeTransactionManager,thePersonnelTransactionManager,theRankingTransactionManager,theSmsTransactionManager,theSystemOperator,theTestOperator,thePromotionOperator,theSmsService,theKeywordDao,theRankingService,thePersonManager,thePersonDao,theResearcherDao,basePersonnelTransactionProxy,thePersonnelService,thePersonnelServiceTarget,theKnowledgeServiceConfiguration,theDispatchManager,theAnswerCache,theCustomerCache,theQuestionCache,theAnswerDao,theCustomerDao,theDispatchDao,theQuestionDao,theSystemDao,theTextMessageHistoryDao,baseKnowledgeTransactionProxy,theKnowledgeService,theKnowledgeServiceTarget]; root of BeanFactory hierarchy 2005-05-08 18:01:46,109 INFO [org.springframework.context.support.ClassPathXmlApplicationContext] - 35 beans defined in application context [org.springframework.context.support.ClassPathXmlApplicationContext;hashCode=13582581] 2005-05-08 18:01:46,109 INFO [org.springframework.core.CollectionFactory] - JDK 1.4+ collections available 2005-05-08 18:01:46,125 INFO [org.springframework.core.CollectionFactory] - Commons Collections 3.x available 2005-05-08 18:01:46,140 INFO [org.springframework.context.support.ClassPathXmlApplicationContext] - Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@1d009b4] 2005-05-08 18:01:46,140 INFO [org.springframework.context.support.ClassPathXmlApplicationContext] - Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@e91f5d] 2005-05-08 18:01:46,140 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [theKnowledgeDataSource,thePersonnelDataSource,theRankingDataSource,theSmsDataSource,thePersonnelSessionFactory,theKnowledgeTransactionManager,thePersonnelTransactionManager,theRankingTransactionManager,theSmsTransactionManager,theSystemOperator,theTestOperator,thePromotionOperator,theSmsService,theKeywordDao,theRankingService,thePersonManager,thePersonDao,theResearcherDao,basePersonnelTransactionProxy,thePersonnelService,thePersonnelServiceTarget,theKnowledgeServiceConfiguration,theDispatchManager,theAnswerCache,theCustomerCache,theQuestionCache,theAnswerDao,theCustomerDao,theDispatchDao,theQuestionDao,theSystemDao,theTextMessageHistoryDao,baseKnowledgeTransactionProxy,theKnowledgeService,theKnowledgeServiceTarget]; root of BeanFactory hierarchy] 2005-05-08 18:01:46,156 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating shared instance of singleton bean 'theKnowledgeDataSource' 2005-05-08 18:01:46,187 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating shared instance of singleton bean 'thePersonnelDataSource' 2005-05-08 18:01:46,187 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating shared instance of singleton bean 'theRankingDataSource' 2005-05-08 18:01:46,187 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating shared instance of singleton bean 'theSmsDataSource' 2005-05-08 18:01:46,187 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Creating shared instance of singleton bean 'thePersonnelSessionFactory' 2005-05-08 18:01:46,203 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [theKnowledgeDataSource,thePersonnelDataSource,theRankingDataSource,theSmsDataSource,thePersonnelSessionFactory,theKnowledgeTransactionManager,thePersonnelTransactionManager,theRankingTransactionManager,theSmsTransactionManager,theSystemOperator,theTestOperator,thePromotionOperator,theSmsService,theKeywordDao,theRankingService,thePersonManager,thePersonDao,theResearcherDao,basePersonnelTransactionProxy,thePersonnelService,thePersonnelServiceTarget,theKnowledgeServiceConfiguration,theDispatchManager,theAnswerCache,theCustomerCache,theQuestionCache,theAnswerDao,theCustomerDao,theDispatchDao,theQuestionDao,theSystemDao,theTextMessageHistoryDao,baseKnowledgeTransactionProxy,theKnowledgeService,theKnowledgeServiceTarget]; root of BeanFactory hierarchy} Sun, 08 May 2005 18:01:46 : TUHarness() org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'thePersonnelSessionFactory' defined in class path resource [applicationcontext-hibernate.xml]: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/transaction/TransactionManager java.lang.NoClassDefFoundError: javax/transaction/TransactionManager at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:1655) at java.lang.Class.getDeclaredMethods(Class.java:1139) at java.beans.Introspector$1.run(Introspector.java:1266) at java.security.AccessController.doPrivileged(Native Method) at java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1264) at java.beans.Introspector.getTargetMethodInfo(Introspector.java:1129) at java.beans.Introspector.getBeanInfo(Introspector.java:379) at java.beans.Introspector.getBeanInfo(Introspector.java:153) at org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:140) at org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:82) at org.springframework.beans.BeanWrapperImpl.setIntrospectionClass(BeanWrapperImpl.java:310) at org.springframework.beans.BeanWrapperImpl.setWrappedInstance(BeanWrapperImpl.java:268) at org.springframework.beans.BeanWrapperImpl.setWrappedInstance(BeanWrapperImpl.java:250) at org.springframework.beans.BeanWrapperImpl.<init>(BeanWrapperImpl.java:203) at org.springframework.beans.factory.support.AbstractBeanFactory.createBeanWrapper(AbstractBeanFactory.java:558) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:317) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:257) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:223) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:271) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:319) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:80) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:56) at com.issuebits.tks.tutil.KTHarness.initialise(KTHarness.java:63) at com.issuebits.tks.tutil.KTHarness.<init>(KTHarness.java:53) at com.issuebits.tks.test.tknowledge.TestSuiteTks.suite(TestSuiteTks.java:22) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.borland.jbuilder.unittest.JBTestRunner.constructTest(Unknown Source) at com.borland.jbuilder.unittest.JBTestRunner.setTest(Unknown Source) at com.borland.jbuilder.unittest.JBTestRunner.initiateTest(Unknown Source) at com.borland.jbuilder.unittest.JBTestRunner.main(Unknown Source)

    Spring JIRA | 1 decade ago | Colly Myers
    java.lang.NoClassDefFoundError: javax/transaction/TransactionManager
  3. 0

    NoClassFoundError: javax/transaction/Trans...

    springframework | 1 decade ago | lacou
    java.lang.NoClassDefFoundError: javax/transaction/TransactionManager
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Duvida / Erro

    Google Groups | 9 years ago | rlether
    java.lang.NoClassDefFoundError: javax/transaction/TransactionManager
  6. 0

    spring-hibernate issues

    Google Groups | 1 decade ago | pavi de alwis
    java.lang.NoClassDefFoundError: javax/transaction/TransactionManager

  1. johnxfly 3 times, last 2 months ago
5 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.NoClassDefFoundError

    javax/transaction/TransactionManager

    at java.lang.Class.getDeclaredMethods0()
  2. Java RT
    Introspector.getBeanInfo
    1. java.lang.Class.getDeclaredMethods0(Native Method)
    2. java.lang.Class.privateGetDeclaredMethods(Class.java:1655)
    3. java.lang.Class.getDeclaredMethods(Class.java:1139)
    4. java.beans.Introspector$1.run(Introspector.java:1266)
    5. java.security.AccessController.doPrivileged(Native Method)
    6. java.beans.Introspector.getPublicDeclaredMethods(Introspector.java:1264)
    7. java.beans.Introspector.getTargetMethodInfo(Introspector.java:1129)
    8. java.beans.Introspector.getBeanInfo(Introspector.java:379)
    9. java.beans.Introspector.getBeanInfo(Introspector.java:153)
    9 frames
  3. Spring Beans
    DefaultListableBeanFactory.preInstantiateSingletons
    1. org.springframework.beans.CachedIntrospectionResults.<init>(CachedIntrospectionResults.java:140)
    2. org.springframework.beans.CachedIntrospectionResults.forClass(CachedIntrospectionResults.java:82)
    3. org.springframework.beans.BeanWrapperImpl.setIntrospectionClass(BeanWrapperImpl.java:310)
    4. org.springframework.beans.BeanWrapperImpl.setWrappedInstance(BeanWrapperImpl.java:268)
    5. org.springframework.beans.BeanWrapperImpl.setWrappedInstance(BeanWrapperImpl.java:250)
    6. org.springframework.beans.BeanWrapperImpl.<init>(BeanWrapperImpl.java:203)
    7. org.springframework.beans.factory.support.AbstractBeanFactory.createBeanWrapper(AbstractBeanFactory.java:558)
    8. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:317)
    9. org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:257)
    10. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:223)
    11. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
    12. org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:271)
    12 frames
  4. Spring Context
    ClassPathXmlApplicationContext.<init>
    1. org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:319)
    2. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:80)
    3. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:65)
    4. org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:56)
    4 frames
  5. com.issuebits.tks
    TestSuiteTks.suite
    1. com.issuebits.tks.tutil.KTHarness.initialise(KTHarness.java:63)
    2. com.issuebits.tks.tutil.KTHarness.<init>(KTHarness.java:53)
    3. com.issuebits.tks.test.tknowledge.TestSuiteTks.suite(TestSuiteTks.java:22)
    3 frames
  6. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    4. java.lang.reflect.Method.invoke(Method.java:324)
    4 frames
  7. com.borland.jbuilder
    JBTestRunner.main
    1. com.borland.jbuilder.unittest.JBTestRunner.constructTest(Unknown Source)
    2. com.borland.jbuilder.unittest.JBTestRunner.setTest(Unknown Source)
    3. com.borland.jbuilder.unittest.JBTestRunner.initiateTest(Unknown Source)
    4. com.borland.jbuilder.unittest.JBTestRunner.main(Unknown Source)
    4 frames