SSH integration-jar package conflict

Source: Internet
Author: User
Document directory
  • Exception: Error creating bean with name 'sessionfactory 'defined in servletcontext resource [/WEB-INF/classes/applicationcontext. ">

Well, at, there is a problem with SSH integration, that is, when using myeclipse to import packages, it is not clear which functional modules have which packages,

Then, the first version of the dormitory appears.

Exception: Error creating bean with name 'sessionfactory 'defined in servletcontext resource [/WEB-INF/classes/applicationcontext. ">

I guess it is to import redundant packages, resulting in a jar package conflict. On the left of the following is the correct jar package diagram. On the right, there is a wrong jar package diagram.

In comparison, what are the multiple jar packages and what are possible causes ~~)? Unknown role

Aopalliance. Jar (?) --- Combination of the AOP Alliance AOP package ~~ Dizzy

ASM. Jar (this is not redundant, just as a comparison with the following)

Asm-2.2.3.jar okay -- write this, jar package conflict is strange ~~~~~!!

Asm-commons-2.2.3.jar

Asm-util-2.2.3.jar

Aspectjlib. Jar <! -- The following aspectj series all belong to the jar packages required by AOP -->

Aspectjrt. Jar

Aspectjweaver

Cglib-nodep-2.1_3.jar

Spring-aop.jar

Spring-agent.jar

Spring-tomcat-weaver.jar

After comparing the package with a runable project and changing it to the same one, The project runs successfully ..

In fact, it is estimated that

ASM. Jar

Asm-2.2.3.jar

Conflicts between the two jar packages. Many people on the Internet have encountered the same problems as me.

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.