spring加载错误,急求解!

加载ApplicationContext.xml>>>>>>>>
2009-08-14 10:48:54,875 [org.springframework.context.support.ClassPathXmlApplicationContext]-[INFO] Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@c51355: display name [org.springframework.context.support.ClassPathXmlApplicationContext@c51355]; startup date [Fri Aug 14 10:48:54 PDT 2009]; root of context hierarchy
2009-08-14 10:48:54,968 [org.springframework.beans.factory.xml.XmlBeanDefinitionReader]-[INFO] Loading XML bean definitions from class path resource [applicationContext.xml]
2009-08-14 10:48:55,578 [org.springframework.context.support.ClassPathXmlApplicationContext]-[INFO] Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@c51355]: org.springframework.beans.factory.support.DefaultListableBeanFactory@e0b6f5
2009-08-14 10:48:55,609 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@e0b6f5: defining beans [dataSource,sessionFactory,userdao,userbiz,test]; root of factory hierarchy
2009-08-14 10:48:55,734 [org.hibernate.cfg.Environment]-[INFO] Hibernate 3.3.1.GA
2009-08-14 10:48:55,734 [org.hibernate.cfg.Environment]-[INFO] hibernate.properties not found
2009-08-14 10:48:55,734 [org.hibernate.cfg.Environment]-[INFO] Bytecode provider name : javassist
2009-08-14 10:48:55,734 [org.hibernate.cfg.Environment]-[INFO] using JDK 1.4 java.sql.Timestamp handling
2009-08-14 10:48:55,953 [org.hibernate.cfg.HbmBinder]-[INFO] Mapping class: com.ext.portlet.spring.entity.User -> user
2009-08-14 10:48:55,968 [org.springframework.orm.hibernate3.LocalSessionFactoryBean]-[INFO] Building new Hibernate SessionFactory
2009-08-14 10:48:56,031 [org.hibernate.connection.ConnectionProviderFactory]-[INFO] Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
2009-08-14 10:48:56,281 [org.hibernate.cfg.SettingsFactory]-[INFO] RDBMS: MySQL, version: 5.1.32-community
2009-08-14 10:48:56,281 [org.hibernate.cfg.SettingsFactory]-[INFO] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.7 ( $Date: 2007-03-09 22:13:57 +0100 (Fri, 09 Mar 2007) $, $Revision: 6341 $ )
2009-08-14 10:48:56,296 [org.hibernate.dialect.Dialect]-[INFO] Using dialect: org.hibernate.dialect.MySQLDialect
2009-08-14 10:48:56,296 [org.hibernate.transaction.TransactionFactoryFactory]-[INFO] Transaction strategy: org.springframework.orm.hibernate3.SpringTransactionFactory
2009-08-14 10:48:56,296 [org.hibernate.transaction.TransactionManagerLookupFactory]-[INFO] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
2009-08-14 10:48:56,296 [org.hibernate.cfg.SettingsFactory]-[INFO] Automatic flush during beforeCompletion(): disabled
2009-08-14 10:48:56,296 [org.hibernate.cfg.SettingsFactory]-[INFO] Automatic session close at end of transaction: disabled
2009-08-14 10:48:56,296 [org.hibernate.cfg.SettingsFactory]-[INFO] JDBC batch size: 15
2009-08-14 10:48:56,296 [org.hibernate.cfg.SettingsFactory]-[INFO] JDBC batch updates for versioned data: disabled
2009-08-14 10:48:56,296 [org.hibernate.cfg.SettingsFactory]-[INFO] Scrollable result sets: enabled
2009-08-14 10:48:56,296 [org.hibernate.cfg.SettingsFactory]-[INFO] JDBC3 getGeneratedKeys(): enabled
2009-08-14 10:48:56,296 [org.hibernate.cfg.SettingsFactory]-[INFO] Connection release mode: auto
2009-08-14 10:48:56,296 [org.hibernate.cfg.SettingsFactory]-[INFO] Maximum outer join fetch depth: 2
2009-08-14 10:48:56,296 [org.hibernate.cfg.SettingsFactory]-[INFO] Default batch fetch size: 1
2009-08-14 10:48:56,296 [org.hibernate.cfg.SettingsFactory]-[INFO] Generate SQL with comments: disabled
2009-08-14 10:48:56,296 [org.hibernate.cfg.SettingsFactory]-[INFO] Order SQL updates by primary key: disabled
2009-08-14 10:48:56,296 [org.hibernate.cfg.SettingsFactory]-[INFO] Order SQL inserts for batching: disabled
2009-08-14 10:48:56,296 [org.hibernate.cfg.SettingsFactory]-[INFO] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
2009-08-14 10:48:56,296 [org.hibernate.hql.ast.ASTQueryTranslatorFactory]-[INFO] Using ASTQueryTranslatorFactory
2009-08-14 10:48:56,296 [org.hibernate.cfg.SettingsFactory]-[INFO] Query language substitutions: {}
2009-08-14 10:48:56,296 [org.hibernate.cfg.SettingsFactory]-[INFO] JPA-QL strict compliance: disabled
2009-08-14 10:48:56,296 [org.hibernate.cfg.SettingsFactory]-[INFO] Second-level cache: enabled
2009-08-14 10:48:56,296 [org.hibernate.cfg.SettingsFactory]-[INFO] Query cache: disabled
2009-08-14 10:48:56,296 [org.hibernate.cfg.SettingsFactory]-[INFO] Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
2009-08-14 10:48:56,296 [org.hibernate.cfg.SettingsFactory]-[INFO] Optimize cache for minimal puts: disabled
2009-08-14 10:48:56,296 [org.hibernate.cfg.SettingsFactory]-[INFO] Structured second-level cache entries: disabled
2009-08-14 10:48:56,312 [org.hibernate.cfg.SettingsFactory]-[INFO] Statistics: disabled
2009-08-14 10:48:56,312 [org.hibernate.cfg.SettingsFactory]-[INFO] Deleted entity synthetic identifier rollback: disabled
2009-08-14 10:48:56,312 [org.hibernate.cfg.SettingsFactory]-[INFO] Default entity-mode: pojo
2009-08-14 10:48:56,312 [org.hibernate.cfg.SettingsFactory]-[INFO] Named query checking : enabled
2009-08-14 10:48:56,343 [org.hibernate.impl.SessionFactoryImpl]-[INFO] building session factory
2009-08-14 10:48:56,453 [org.springframework.beans.factory.support.DefaultListableBeanFactory]-[INFO] Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@e0b6f5: defining beans [dataSource,sessionFactory,userdao,userbiz,test]; root of factory hierarchy
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javassist/util/proxy/MethodFilter
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:83)
at com.ext.portlet.spring.action.Test.main(Test.java:32)
Caused by: java.lang.NoClassDefFoundError: javassist/util/proxy/MethodFilter
at org.hibernate.bytecode.javassist.BytecodeProviderImpl.getProxyFactoryFactory(BytecodeProviderImpl.java:49)
at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactoryInternal(PojoEntityTuplizer.java:203)
at org.hibernate.tuple.entity.PojoEntityTuplizer.buildProxyFactory(PojoEntityTuplizer.java:181)
at org.hibernate.tuple.entity.AbstractEntityTuplizer.(AbstractEntityTuplizer.java:158)
at org.hibernate.tuple.entity.PojoEntityTuplizer.(PojoEntityTuplizer.java:76)
at org.hibernate.tuple.entity.EntityEntityModeToTuplizerMapping.(EntityEntityModeToTuplizerMapping.java:80)
at org.hibernate.tuple.entity.EntityMetamodel.(EntityMetamodel.java:325)
at org.hibernate.persister.entity.AbstractEntityPersister.(AbstractEntityPersister.java:457)
at org.hibernate.persister.entity.SingleTableEntityPersister.(SingleTableEntityPersister.java:131)
at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:84)
at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:261)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:814)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:732)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
... 15 more

2个回答

NoClassDefFoundError: javassist/util/proxy/MethodFilter

应该是缺少javassist.jar 这个包

java.lang.NoClassDefFoundError: javassist/util/proxy/MethodFilter

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问