日期:2014-05-18  浏览次数:20648 次

spring问题,急求.
2007-1-29   17:24:40   org.springframework.web.struts.ContextLoaderPlugIn   init
严重:   Context   initialization   failed
org.springframework.beans.factory.BeanCreationException:   Error   creating   bean   with   name   'sessionFactory '   defined   in   ServletContext   resource   [/WEB-INF/applicationContext.xml]:   Instantiation   of   bean   failed;   nested   exception   is   java.lang.NoClassDefFoundError:   javax/transaction/TransactionManager
Caused   by:   java.lang.NoClassDefFoundError:   javax/transaction/TransactionManager
at   java.lang.Class.getDeclaredMethods0(Native   Method)
at   java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
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:640)
at   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:625)
at   org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
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:287)
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.struts.ContextLoaderPlugIn.createWebApplicationContext(ContextLoaderPlugIn.java:355)
at   org.springframework.web.struts.ContextLoaderPlugIn.initWebApplicationContext(ContextLoaderPlugIn.