Hibernate integration Struts2 times wrong

Source: Internet
Author: User

There's a problem with integrating Hibernate and Struts2 today.

There is always a variety of anomalies, after careful examination, the code itself is not a problem,

-----------------------------------------------------------------------------------------------

Unable to instantiate default Tuplizer [Org.hibernate.tuple.entity.PojoEntityTuplizer]

-----------------------------------------------------------------------------------------------

Unable to load configuration. -[Unknown Location]
At Org.apache.struts2.dispatcher.Dispatcher.init (dispatcher.java:493)
At Org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher (initoperations.java:74)

-----------------------------------------------------------------------------------------------

View online tutorials No results .....

The test found that there was a conflict with the jar package when it was originally imported

(I'm using the MyEclipse imported Hibernate jar package, struts2 using the files in the Struts2-blank\web-inf\lib directory)

Solve the first problem:

Remove the extra Asm.jar

Solve the second problem:

Xerce.jar and Xml-apis.jar These two jar package conflicts, delete Xerce.jar

Hibernate integration Struts2 times wrong

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.