When I started my computer at work in the morning, I found a problem with the application startup. The prompt was: Java. Lang. noclassdeffounderror: javax/transaction/transactionmanager. So I googled it and it turned out to be missing JTA. jar. It's strange that it was good. Why is it missing today? Is there a problem with eclipse.
JTA. jar:
1, http://java.sun.com/products/jta/ download class files, and then package into a jar file, or directly modify the suffix zip to jar
2, csdn download http://download.csdn.net/source/337356
The error message is as follows:
- Caused:
- Java. Lang. noclassdeffounderror: javax/transaction/transactionmanager
- At java. Lang. Class. getdeclaredmethods0 (native method)
- At java. Lang. Class. privategetdeclaredmethods (class. Java: 2365)
- At java. Lang. Class. getdeclaredmethods (class. Java: 1763)
- At java. Beans. introspector $ 1.run( introspector. Java: 1265)
- At java. Security. accesscontroller. doprivileged (native method)
- At java. Beans. introspector. getpublicdeclaredmethods (introspector. Java: 1263)
- At java. Beans. introspector. gettargetmethodinfo (introspector. Java: 1129)
- At java. Beans. introspector. getbeaninfo (introspector. Java: 387)
- At java. Beans. introspector. getbeaninfo (introspector. Java: 159)
- At org. springframework. Beans. cachedintrospectionresults. <init> (cachedintrospectionresults. Java: 142)
- At org. springframework. Beans. cachedintrospectionresults. forclass (cachedintrospectionresults. Java: 83)
- At org. springframework. Beans. beanwrapperimpl. setintrospectionclass (beanwrapperimpl. Java: 239)
- At org. springframework. Beans. beanwrapperimpl. setwrappedinstance (beanwrapperimpl. Java: 197)
- At org. springframework. Beans. beanwrapperimpl. setwrappedinstance (beanwrapperimpl. Java: 180)
- At org. springframework. Beans. beanwrapperimpl. <init> (beanwrapperimpl. Java: 133)
- At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. instantiatebean (abstractautowirecapablebeanfactory. Java: 535)
- At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. createbean (abstractautowirecapablebeanfactory. Java: 375)
- At org. springframework. Beans. Factory. Support. abstractbeanfactory $1. GetObject (abstractbeanfactory. Java: 245)
- At org. springframework. Beans. Factory. Support. defaultsingletonbeanregistry. getsingleton (defaultsingletonbeanregistry. Java: 141)
- At org. springframework. Beans. Factory. Support. abstractbeanfactory. getbean (abstractbeanfactory. Java: 242)
- At org. springframework. Beans. Factory. Support. abstractbeanfactory. getbean (abstractbeanfactory. Java: 156)
- At org. springframework. Beans. Factory. Support. beandefinitionvalueresolver. resolvereference (beandefinitionvalueresolver. Java: 246)
- At org. springframework. Beans. Factory. Support. beandefinitionvalueresolver. resolvevalueifnecessary (beandefinitionvalueresolver. Java: 128)
- At org. springframework. Beans. Factory. Support. constructorresolver. resolveconstructorarguments (constructorresolver. Java: 332)
- At org. springframework. Beans. Factory. Support. constructorresolver. autowireconstructor (constructorresolver. Java: 97)
- At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. autowireconstructor (abstractautowirecapablebeanfactory. Java: 578)
- At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. createbean (abstractautowirecapablebeanfactory. Java: 371)
- At org. springframework. Beans. Factory. Support. abstractbeanfactory $1. GetObject (abstractbeanfactory. Java: 245)
- At org. springframework. Beans. Factory. Support. defaultsingletonbeanregistry. getsingleton (defaultsingletonbeanregistry. Java: 141)
- At org. springframework. Beans. Factory. Support. abstractbeanfactory. getbean (abstractbeanfactory. Java: 242)
- At org. springframework. Beans. Factory. Support. abstractbeanfactory. getbean (abstractbeanfactory. Java: 156)
- At org. springframework. Beans. Factory. Support. beandefinitionvalueresolver. resolvereference (beandefinitionvalueresolver. Java: 246)
- At org. springframework. Beans. Factory. Support. beandefinitionvalueresolver. resolvevalueifnecessary (beandefinitionvalueresolver. Java: 128)
- At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. applypropertyvalues (abstractautowirecapablebeanfactory. Java: 850)
- At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. populatebean (abstractautowirecapablebeanfactory. Java: 624)
- At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. createbean (abstractautowirecapablebeanfactory. Java: 411)
- At org. springframework. Beans. Factory. Support. abstractbeanfactory $1. GetObject (abstractbeanfactory. Java: 245)
- At org. springframework. Beans. Factory. Support. defaultsingletonbeanregistry. getsingleton (defaultsingletonbeanregistry. Java: 141)
- At org. springframework. Beans. Factory. Support. abstractbeanfactory. getbean (abstractbeanfactory. Java: 242)
- At org. springframework. Beans. Factory. Support. abstractbeanfactory. getbean (abstractbeanfactory. Java: 156)
- At org. springframework. Beans. Factory. Support. defaultlistablebeanfactory. preinstantiatesingletons (defaultlistablebeanfactory. Java: 304)
- At org. springframework. Context. Support. abstractapplicationcontext. Refresh (abstractapplicationcontext. Java: 348)
- At org. springframework. Web. Context. Support. abstractrefreshablewebapplicationcontext. Refresh (abstractrefreshablewebapplicationcontext. Java: 156)
- At org. springframework. Web. Context. contextloader. createwebapplicationcontext (contextloader. Java: 246)
- At org. springframework. Web. Context. contextloader. initwebapplicationcontext (contextloader. Java: 184)
- At org. springframework. Web. Context. contextloaderservlet. INIT (contextloaderservlet. Java: 83)
- At javax. servlet. genericservlet. INIT (genericservlet. Java: 211)
- At org. Apache. Catalina. Core. standardwrapper. loadservlet (standardwrapper. Java: 1105)
- At org. Apache. Catalina. Core. standardwrapper. Load (standardwrapper. Java: 932)
- At org. Apache. Catalina. Core. standardcontext. loadonstartup (standardcontext. Java: 3951)
- At org. Apache. Catalina. Core. standardcontext. Start (standardcontext. Java: 4225)
- At org. Apache. Catalina. Core. containerbase. addchildinternal (containerbase. Java: 759)
- At org. Apache. Catalina. Core. containerbase. addchild (containerbase. Java: 739)
- At org. Apache. Catalina. Core. standardhost. addchild (standardhost. Java: 524)
- At org. Apache. Catalina. startup. hostconfig. deploydescriptor (hostconfig. Java: 608)
- At org. Apache. Catalina. startup. hostconfig. deploydescriptors (hostconfig. Java: 535)
- At org. Apache. Catalina. startup. hostconfig. deployapps (hostconfig. Java: 470)
- At org. Apache. Catalina. startup. hostconfig. Start (hostconfig. Java: 1122)
- At org. Apache. Catalina. startup. hostconfig. lifecycleevent (hostconfig. Java: 310)
- At org. Apache. Catalina. util. lifecyclesupport. firelifecycleevent (lifecyclesupport. Java: 119)
- At org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1021)
- At org. Apache. Catalina. Core. standardhost. Start (standardhost. Java: 718)
- At org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1013)
- At org. Apache. Catalina. Core. standardengine. Start (standardengine. Java: 442)
- At org. Apache. Catalina. Core. standardservice. Start (standardservice. Java: 450)
- At org. Apache. Catalina. Core. standardserver. Start (standardserver. Java: 709)
- At org. Apache. Catalina. startup. Catalina. Start (Catalina. Java: 551)
- 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: 585)
- At org. Apache. Catalina. startup. Bootstrap. Start (Bootstrap. Java: 294)
- At org. Apache. Catalina. startup. Bootstrap. Main (Bootstrap. Java: 432)