一个分享个人学习、开发经验的Blog,http://www.joyphper.net

几个java,J2EE编码过程中的缺少jar文件抛出的异常

posted @ 2012-04-14 00:36 | 阅读:3119 | 评论:0 | 分类: Java

java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException

缺 aspertj.jar 和aspertjweaver.jar

 

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 [C:/Program Files/Apache Software Foundation/Tomcat 6.0/webapps/shop/WEB-INF/classes/applicationContext-common.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.orm.hibernate3.LocalSessionFactoryBean]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: org.hibernate.cfg.Configuration

缺 hibernate3.jar

 

java.lang.NoClassDefFoundError: javax/transaction/TransactionManager

缺 jta.jar

 

java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory

缺 slf4j-jdk.jar , slf4j-log4j.jar , slf4j-api.jar, log4j-over-slf4j.jar

 

JDBC Driver class not found: com.mysql.jdbc.Driver

缺mysql驱动

 

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

缺 javassist.jar

 

java.lang.NoClassDefFoundError: net/sf/cglib/proxy/CallbackFilter

把cglib.jar copy到tomcat lib 里面。

TAG: java , J2EE , 缺少jar , 异常

共有0条评论 发表评论>>

点击换一张验证码