Maven hibernate version conflict Error

Source: Internet
Author: User

2 error [main] org. springframework. Web. Context. contextloader-context initialization failed
Org. springframework. beans. factory. beancreationexception: Error creating bean with name 'sessionfactory 'defined in file [D: \ workspace \ PSMA \ aiomni3_rm \ Aibi-PSMA-webapp \ target \ aibi-psma-webapp-0.0.1-SNAPSHOT \ WEB-INF \ Classes \ config \ aibi_core \ application-core-configure.xml]:
Invocation of init method failed; Nested exception is Java. lang. verifyerror: (Class: ORG/hibernate/type/basictyperegistry, method: <init> Signature: () V) incompatible argument to function
At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. initializebean (abstractautowirecapablebeanfactory. Java: 1486)
At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. docreatebean (abstractautowirecapablebeanfactory. Java: 524)
At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. createbean (abstractautowirecapablebeanfactory. Java: 461)
At org. springframework. Beans. Factory. Support. abstractbeanfactory $1. GetObject (abstractbeanfactory. Java: 295)
At org. springframework. Beans. Factory. Support. defaultsingletonbeanregistry. getsingleton (defaultsingletonbeanregistry. Java: 223)
At org. springframework. Beans. Factory. Support. abstractbeanfactory. dogetbean (abstractbeanfactory. Java: 292)
At org. springframework. Beans. Factory. Support. abstractbeanfactory. getbean (abstractbeanfactory. Java: 194)
At org. springframework. Beans. Factory. Support. defaultlistablebeanfactory. preinstantiatesingletons (defaultlistablebeanfactory. Java: 589)
At org. springframework. Context. Support. abstractapplicationcontext. finispolicanfactoryinitialization (abstractapplicationcontext. Java: 932)
At org. springframework. Context. Support. abstractapplicationcontext. Refresh (abstractapplicationcontext. Java: 479)
At org. springframework. Web. Context. contextloader. configureandrefreshwebapplicationcontext (contextloader. Java: 383)
At org. springframework. Web. Context. contextloader. initwebapplicationcontext (contextloader. Java: 283)
At org. springframework. Web. Context. contextloaderlistener. contextinitialized (contextloaderlistener. Java: 112)
At com. Asiainfo. biframe. servlet. systemcommonlistener. contextinitialized (systemcommonlistener. Java: 99)
At org. Apache. Catalina. Core. standardcontext. listenerstart (standardcontext. Java: 4135)
At org. Apache. Catalina. Core. standardcontext. Start (standardcontext. Java: 4630)
At org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1045)
At org. Apache. Catalina. Core. standardhost. Start (standardhost. Java: 785)
At org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1045)
At org. Apache. Catalina. Core. standardengine. Start (standardengine. Java: 445)
At org. Apache. Catalina. Core. standardservice. Start (standardservice. Java: 519)
At org. Apache. Catalina. Core. standardserver. Start (standardserver. Java: 710)
At org. Apache. Catalina. startup. Catalina. Start (Catalina. Java: 581)
At sun. Reflect. nativemethodaccessorimpl. invoke0 (native method)
At sun. Reflect. nativemethodaccessorimpl. Invoke (nativemethodaccessorimpl. Java: 39)
At sun. Reflect. delegatingmethodaccessorimpl. Invoke (delegatingmethodaccessorimpl. Java: 25)
At java. Lang. Reflect. method. Invoke (method. Java: 597)
At org. Apache. Catalina. startup. Bootstrap. Start (Bootstrap. Java: 289)
At org. Apache. Catalina. startup. Bootstrap. Main (Bootstrap. Java: 414)
Caused by: Java. Lang. verifyerror: (Class: ORG/hibernate/type/basictyperegistry, method: <init> Signature: () V) incompatible argument to function
At org. hibernate. type. typeresolver. <init> (typeresolver. Java: 59)
At com. Asiainfo. biframe. unilog. Base. hibernate. genericenumusertype. setparametervalues (genericenumusertype. Java: 106)
At org. hibernate. type. typefactory. injectparameters (typefactory. Java: 339)
At org. hibernate. type. customtype. <init> (customtype. Java: 67)
At org. hibernate. type. typefactory. heuristictype (typefactory. Java: 245)
At org. hibernate. Mapping. simplevalue. GetType (simplevalue. Java: 260)
At org. hibernate. Mapping. simplevalue. isvalid (simplevalue. Java: 253)
At org. hibernate. Mapping. Property. isvalid (property. Java: 185)
At org. hibernate. Mapping. persistentclass. Validate (persistentclass. Java: 440)
At org. hibernate. Mapping. rootclass. Validate (rootclass. Java: 192)
At org. hibernate. cfg. configuration. Validate (configuration. Java: 1108)
At org. hibernate. cfg. configuration. buildsessionfactory (configuration. Java: 1293)
At org. springframework. Orm. hibernate3.localsessionfactorybean. newsessionfactory (localsessionfactorybean. Java: 863)
At org. springframework. Orm. hibernate3.localsessionfactorybean. buildsessionfactory (localsessionfactorybean. Java: 782)
At org. springframework. Orm. hibernate3.abstractsessionfactorybean. afterpropertiesset (abstractsessionfactorybean. Java: 188)
At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. invokeinitmethods (abstractautowirecapablebeanfactory. Java: 1545)
At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. initializebean (abstractautowirecapablebeanfactory. Java: 1483)
... 28 more
Org. springframework. beans. factory. beancreationexception: Error creating bean with name 'sessionfactory 'defined in file [D: \ workspace \ PSMA \ aiomni3_rm \ Aibi-PSMA-webapp \ target \ aibi-psma-webapp-0.0.1-SNAPSHOT \ WEB-INF \ Classes \ config \ aibi_core \ application-core-configure.xml]:
Invocation of init method failed; Nested exception is Java. lang. verifyerror: (Class: ORG/hibernate/type/basictyperegistry, method: <init> Signature: () V) incompatible argument to function
At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. initializebean (abstractautowirecapablebeanfactory. Java: 1486)
At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. docreatebean (abstractautowirecapablebeanfactory. Java: 524)
At org. springframework. Beans. Factory. Support. abstractautowirecapablebeanfactory. createbean (abstractautowirecapablebeanfactory. Java: 461)
At org. springframework. Beans. Factory. Support. abstractbeanfactory $1. GetObject (abstractbeanfactory. Java: 295)
At org. springframework. Beans. Factory. Support. defaultsingletonbeanregistry. getsingleton (defaultsingletonbeanregistry. Java: 223)
At org. springframework. Beans. Factory. Support. abstractbeanfactory. dogetbean (abstractbeanfactory. Java: 292)
At org. springframework. Beans. Factory. Support. abstractbeanfactory. getbean (abstractbeanfactory. Java: 194)
At org. springframework. Beans. Factory. Support. defaultlistablebeanfactory. preinstantiatesingletons (defaultlistablebeanfactory. Java: 589)
At org. springframework. Context. Support. abstractapplicationcontext. finispolicanfactoryinitialization (abstractapplicationcontext. Java: 932)
At org. springframework. Context. Support. abstractapplicationcontext. Refresh (abstractapplicationcontext. Java: 479)
At org. springframework. Web. Context. contextloader. configureandrefreshwebapplicationcontext (contextloader. Java: 383)
At org. springframework. Web. Context. contextloader. initwebapplicationcontext (contextloader. Java: 283)
At org. springframework. Web. Context. contextloaderlistener. contextinitialized (contextloaderlistener. Java: 112)
At com. Asiainfo. biframe. servlet. systemcommonlistener. contextinitialized (systemcommonlistener. Java: 99)
At org. Apache. Catalina. Core. standardcontext. listenerstart (standardcontext. Java: 4135)
At org. Apache. Catalina. Core. standardcontext. Start (standardcontext. Java: 4630)
At org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1045)
At org. Apache. Catalina. Core. standardhost. Start (standardhost. Java: 785)
At org. Apache. Catalina. Core. containerbase. Start (containerbase. Java: 1045)
At org. Apache. Catalina. Core. standardengine. Start (standardengine. Java: 445)
At org. Apache. Catalina. Core. standardservice. Start (standardservice. Java: 519)
At org. Apache. Catalina. Core. standardserver. Start (standardserver. Java: 710)
At org. Apache. Catalina. startup. Catalina. Start (Catalina. Java: 581)
At sun. Reflect. nativemethodaccessorimpl. invoke0 (native method)
At sun. Reflect. nativemethodaccessorimpl. Invoke (nativemethodaccessorimpl. Java: 39)
At sun. Reflect. delegatingmethodaccessorimpl. Invoke (delegatingmethodaccessorimpl. Java: 25)
At java. Lang. Reflect. method. Invoke (method. Java: 597)
At org. Apache. Catalina. startup. Bootstrap. Start (Bootstrap. Java: 289)
At org. Apache. Catalina. startup. Bootstrap. Main (Bootstrap. Java: 414)

Caused by: Java. Lang. verifyerror: (Class: ORG/hibernate/type/basictyperegistry, method: <init> Signature: () V) incompatible argument to function

The red font indicates that the hibernate reference package conflicts and needs to be removed manually, for example:

Remove hibernate manually: 3.2.6.ga

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.