struts+hibernate+spring Consolidation Process FAQ Collection

Source: Internet
Author: User
Tags aop jboss log4j

1.java.lang.noclassdeffounderror:org/objectweb/asm/classvisitor
Lack of Asm-3.3.jar
2.java.lang.noclassdeffounderror:org/objectweb/asm/commons/emptyvisitor
Lack of Asm-commons-3.3.jar
3.java.lang.classnotfoundexception:org.springframework.web.util.log4jconfiglistener
Lack of Spring-web-3.2.3.release.jar
4.java.lang.classnotfoundexception:org.springframework.web.context.contextloaderlistener
Lack of Spring-web-3.2.3.release.jar
5.java.lang.classnotfoundexception:org.springframework.web.context.request.requestcontextlistener
Lack of Spring-web-3.2.3.release.jar
6.java.lang.classnotfoundexception:org.springframework.web.util.introspectorcleanuplistener
Lack of Spring-web-3.2.3.release.jar
7.java.lang.noclassdeffounderror:org/springframework/context/configurableapplicationcontext
Lack of Spring-context-3.2.3.release.jar
8.Caused by:java.lang.ClassNotFoundException:org.springframework.beans.FatalBeanException
Lack of Spring-beans-3.2.3.release.jar
9.Caused by:java.lang.ClassNotFoundException:org.springframework.core.NestedRuntimeException
Lack of Spring-core-3.2.3.release.jar
10.java.lang.noclassdeffounderror:org/apache/log4j/propertyconfigurator
Lack of Log4j-1.2.16.jar
Org.springframework.beans.factory.parsing.BeanDefinitionParsingException:Configuration problem:unable to Locate Spring Namespacehandler for XML schema namespace [http://www.springframework.org/schema/tx]
Lack of Spring-tx-3.2.3.release.jar
12.org.springframework.beans.factory.beandefinitionstoreexception:unexpected exception parsing XML document from Class path resource [Resource/applicationcontext.xml]; Nested exception is Java.lang.noclassdeffounderror:org/aopalliance/intercept/methodinterceptor
Lack of Aopalliance-1.0.jar
Org.springframework.beans.factory.parsing.BeanDefinitionParsingException:Configuration problem:unable to Locate Spring Namespacehandler for XML schema namespace [HTTP://WWW.SPRINGFRAMEWORK.ORG/SCHEMA/AOP]
Lack of Spring-aop-3.2.3.release.jar
14.java.lang.noclassdeffounderror:org/springframework/expression/propertyaccessor
Lack of Spring-expression-3.2.3.release.jar
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' DataSource ' defined in class Path resource [Resource/applicationcontext.xml]: Beanpostprocessor before instantiation of Bean failed; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' Org.springframework.aop.support.defaultbeanfactorypointcutadvisor#0 ': Cannot resolve reference to bean ' pointcut ' While setting beans property ' pointcut '; Nested exception is org.springframework.beans.factory.BeanCreationException:Error creating beans with Name ' pointcut ': Instantiation of Bean failed; Nested exception is java.lang.noclassdeffounderror:org/aspectj/weaver/reflect/reflectionworld$ Reflectionworldexception
Lack of Spring-aspects-3.2.3.release.jar, Aspectjweaver.jar, Aspectjrt.jar
Org.springframework.beans.factory.CannotLoadBeanClassException:Cannot Find class [ Org.springframework.orm.hibernate4.LocalSessionFactoryBean] for Bean and name ' sessionfactory ' defined in class path resource [Resource/applicationcontext.xml]; Nested exception is Java.lang.ClassNotFoundException:org.springframework.orm.hibernate4.LocalSessionFactoryBean
Lack of Spring-orm-3.2.3.release.jar
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' sessionfactory ' defined in Class path resource [Resource/applicationcontext.xml]: Invocation of Init method failed; Nested exception is Java.lang.noclassdeffounderror:org/hibernate/annotations/common/reflection/reflectionmanager
Lack of Hibernate-commons-annotations-4.0.2.final.jar
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' sessionfactory ' defined in Class path resource [Resource/applicationcontext.xml]: Invocation of Init method failed; Nested exception is java.lang.noclassdeffounderror:org/dom4j/documentexception
Lack of Dom4j-1.6.1.jar
19.org.springframework.beans.factory.beancreationexception:error creating Bean with Name ' sessionfactory ' defined in Class path resource [Resource/applicationcontext.xml]: Invocation of Init method failed; Nested exception is Java.lang.noclassdeffounderror:org/jboss/logging/basiclogger
Lack of Jboss-logging-3.1.1.ga.jar
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' sessionfactory ' defined in C Lass path resource [Resource/applicationcontext.xml]: Invocation of Init method failed; Nested exception is java.lang.noclassdeffounderror:javax/transaction/systemexception
Lack of Jboss-transaction-api_1.1_spec-1.0.1.final.jar
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' sessionfactory ' defined in C Lass path resource [Resource/applicationcontext.xml]: Invocation of Init method failed; Nested exception is java.lang.noclassdeffounderror:javax/persistence/entity
Lack of Hibernate-jpa-2.0-api-1.0.1.final.jar
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' sessionfactory ' defined in Class path resource [Resource/applicationcontext.xml]: Invocation of Init method failed; Nested exception is Org.hibernate.cache.nocacheregionfactoryavailableexception:second-level cache was used in the Application, but property Hibernate.cache.region.factory_class isn't given, please either disable level cache or S Et correct region factory class name to property Hibernate.cache.region.factory_class (and do sure the second level Cach E provider, Hibernate-infinispan, for example, are available in the classpath).
The Hibernate.cfg.xml configuration needs to be added:
<property name= "Hibernate.cache.use_second_level_cache" >true</property>
<property name= "Hibernate.cache.provider_class" >net.sf.ehcache.hibernate.EhCacheProvider</property>
<property name= "Hibernate.cache.region.factory_class" >org.hibernate.cache.ehcache.ehcacheregionfactory </property>
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' sessionfactory ' defined in Class path resource [Resource/applicationcontext.xml]: Invocation of Init method failed; Nested exception is Java.lang.noclassdeffounderror:org/slf4j/loggerfactory
Lack of Slf4j-api-1.6.1.jar
Org.springframework.beans.factory.BeanCreationException:Error creating Bean with Name ' TransactionManager ' Defined in class path resource [Resource/applicationcontext.xml]: Invocation to Init method failed; Nested exception is java.lang.noclassdeffounderror:org/springframework/jdbc/datasource/ Transactionawaredatasourceproxy
Lack of Spring-jdbc-3.2.3.release.jar
Org.springframework.beans.factory.CannotLoadBeanClassException:Cannot Find class [ Com.cjjt.dao.impl.BaseDaoImpl] for Bean and name ' Basedao ' defined in class path resource [Resource/applicationcontext.x ML]; Nested exception is Java.lang.ClassNotFoundException:com.cjjt.dao.impl.BaseDaoImpl
26.Caused By:cannot Locate the chosen objectfactory implementation:spring-[Unknown location]
Lack of Struts2-spring-plugin-2.3.15.jar
27.org.springframework.orm.hibernate4.hibernateoptimisticlockingfailureexception:batch Update returned unexpected Row count from Update [0]; Actual row count:0; Expected:1; Nested exception is Org.hibernate.StaleStateException:Batch update returned unexpected row count from Update [0]; Actual row count:0; Expected:1

28.java.lang.noclassdeffounderror:org/apache/commons/logging/logfactory
Problem and solution: missing Commons-logging.jar, need to add in Lib.
29.noclassdeffounderror:org/logicalcobwebs/cglib/core/namingpolicy
Problem and Solution: The default HIBERNATE4 connection pool jar package is older Proxool-0.8.3.jar. needs to be replaced by Proxool-0.9.1.jar and Proxool-cglib.jar.
30.org.logicalcobwebs.proxool.shutdownhook-problem calling ' Get cause ' on illegalstateexception.

Problem and Solution: The default HIBERNATE4 connection pool jar package is older Proxool-0.8.3.jar. needs to be replaced by Proxool-0.9.1.jar and Proxool-cglib.jar.


Original address: http://wanglihu.iteye.com/blog/1897718

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.