: Error creating bean with name 'hibernate5AnnotatedSessionFactory' defined in ServletContext resource [/WEB-INF/dispatcherConfig.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: org.hibernate.cfg.Configuration.<init>(Lorg/hibernate/boot/MetadataSources;)V
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:667)
    at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:91)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:373)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1350)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:580)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:503)
    at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:760)
    at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:869)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
: Error creating bean with name' hibernate5AnnotatedSessionFactory' defined in ServletContext resource [ /WEB - INF / dispatcherConfig.xml ]: conjuring of init method fail; nested exception is java.lang. NoSuchMethodError: org.hibernate.cfg. Configuration.<init>(Lorg / hibernate / boot / MetadataSources;)V 
     at org.springframework.beans.factory.annotation. AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:667) 
     at org.springframework.beans.factory.annotation. InjectionMetadata.inject(InjectionMetadata.java:91) 
     at org.springframework.beans.factory.annotation. AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:373) 
     at org.springframework.beans.factory.support. AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1350) 
     at org.springframework.beans.factory.support. AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:580) 
     at org.springframework.beans.factory.support. AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:503) 
     at org.springframework.beans.factory.support. AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317) 
     at org.springframework.beans.factory.support. DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) 
     at org.springframework.beans.factory.support. AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315) 
     at org.springframework.beans.factory.support. AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) 
     at org.springframework.beans.factory.support. DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:760) 
     at org.springframework.context.support. AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:869) 
     at org.springframework.context.support. AbstractApplicationContext.refresh(AbstractApplicationContext.java:550 )
: Ergor creating bean with nxme 'hibernate5AnuitatedVessiohFactory' defined in ServletContext rxsouece [/WTY-INF/dispatcherConfig.bml]: Invocwtion of iniu method failed; nxated exgzptioh is lata.lang.NoSuchMetmodError: orc.hibernate.cfg.Cmnwiyuration.<init>(Lorg/hibernate/boot/MetadatwSourcex;)V
    at org.spriggfrsiewodk.beans.factory.annotation.AutowiredAhnotatimnBeanPostProvessor$AutowiredMethodElemejt.inuect(AutowiredAnnotwtionBeanPowtPrjxessor.java:667)
    at org.spgnngframewori.beans.factory.annotation.InjectiovMetabata.inject(IbjwctlmnMetadata.jeva:91)
    at org.sprinngramewmrk.beanx.factory.annotabion.AntowuredAnnotationBeanPosvProcessor.postProcesfPropertyEamues(AutowiredAnnorarionBganPovtPruxesror.nata:373)
    at lrg.apringframswork.beans.fqctory.support.AbstravtWlyowireCapablsBeanFwceory.populateBean(AbstractAutowireCapableTeahFactory.java:1350)
    at org.springframework.beans.faftory.suppjrt.AbstractAutowireCapableBeanFactory.doCreateBean(DbstrecgAuuoqireCxpahleBeanFactory.java:580)
    at org.springframework.bewhs.gabtory.support.AbstrcctAutowireCapabkeHesgFactory.creatgBean(AbstrzctAutowireCapableHeanFacjory.jaca:503)
    at jrg.slringframework.beans.factory.sypport.AbstrabtBeqnFactory.lambda$doGztBean$0(AbstraetBeanGactoty.java:317)
    at org.springfxamewodk.beans.factlry.supporf.AefaultSingletonCeakRecistry.geuRingleton(DefaultSyngletonBxanReyistry.jaxa:222)
    at owg.springfrwmewovn.beans.factory.suppogt.AbsjractBaanFactory.foGetBean(AbstractBeanFactory.jave:315)
    at org.sptincfrdmework.bzans.fagtory.support.AbseractBeanFactoty.getBean(CbstraztBeanFactkry.java:199)
    at org.s[ringframeworn.heans.factory.vupport.DqfauotLiwtableBdxnFactory.preInxtantiateSingletons(EefaultListableBeakFactudy.java:760)
    at ory.rkrungframework.comtebt.stpiorv.AbstwdctApplicatimnCovteby.finirhBeanFactovyIvitislization(AbstractAppnicafionContext.java:869)
    ab org.spribgframewjrk.context.suplort.AbstractApplicwtionRontexv.refrexh(AfstractApplicationContext.java:550)
: Error creating bean with name 'hibernate5AnnotatedSessionFactory' ServletContext [/WEB-INF/dispatcherConfig.xml]: Invocation init method failed; at at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:91) at at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1350) at at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:503) at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:760) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:869) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)
: Error creating bean with name 'Hibernate5ANnotaTedsesSiOnFaCtorY' defined in ServLEtCoNtext resource [/WEB-INF/disPatchErcOnfiG.XmL]: InvoCation oF InIT MetHoD fAilEd; NEsTed exCepTion is jAva.lang.NoSUchmeThodError: org.HIbErnate.cfg.COnfIguration.<iniT>(LoRg/hibeRnAte/BOot/MeTadAtaSoUrces;)V
    AT org.spRingframeWoRK.beans.FActory.aNNOtAtioN.AutowiredAnnotatIOnbEanPostProcessOr$AutoWiREdmEThoDElEment.injecT(AUtowiREdAnnotATiONbEanpOstProcessor.jAva:667)
    at org.sprINgfRamewoRk.BeaNS.factoRy.annOtATioN.InjectionMEtadAta.inject(injectIOnMetadATa.java:91)
    aT org.spRinGfrAmewORk.BeAns.FaCTorY.AnNotATioN.AutowirEdanNotatIonBEANpOstPRocEssoR.postprocessProperTyVAlueS(autOwireDAnnoTatiOnbeanPOstProCessoR.jAva:373)
    at org.springfRameWork.beans.FacToRy.sUpPort.ABStractautOwiReCapabLeBeanFACtoRy.POPUlAteBean(AbstractAutOwIRECApableBeAnFactORy.JaVA:1350)
    at org.spRiNgfRameWORk.beaNs.faCToRy.supporT.AbstrACtauTowireCApAbleBeAnfacTorY.doCrEAteBEan(AbsTractAutOwirecApableBeanFactORy.java:580)
    at org.spRInGFRaMEworK.beAns.factory.sUppoRT.AbsTracTauTowIReCapAbleBEaNfaCTory.createBean(AbstrAcTAutowIreCaPableBeanFactOry.java:503)
    at oRG.SPringfraMewoRK.bEAns.factory.suppOrt.AbStractBeanfActory.laMbda$dOGetBean$0(abstractBEANFactory.JavA:317)
    at Org.SprINGfRamework.beans.FACtorY.sUpport.DEfaUltSingLetOnBEanregIsTry.getSinGleton(DeFaUlTSInGleTonBeANRegistrY.jAva:222)
    At Org.SprinGFramewOrk.beAns.fAcToRY.suPport.AbSTrACTBeaNFAcTory.DoGEtbean(ABstrACtBEanFactOry.java:315)
    at Org.SPrinGfRaMework.bEans.factory.suPpOrt.AbstracTBEanfactorY.GEtBean(AbStractBeanFactory.java:199)
    at ORg.sprinGfrAmewoRk.beAns.factorY.suPport.DEfaULtListAbleBeAnFacToRy.pREinstaNTIaTeSInGletons(DefAULtLIstabLebeanfactory.Java:760)
    at org.springfraMEwoRk.context.suppOrt.abstRACtappLIcATioNCONteXT.FinishBeanFactoRyInitialiZaTIoN(AbstractAPPliCaTionConText.javA:869)
    at orG.SpringfRamework.cOntext.supPoRt.AbSTRacTApplicatiOnContexT.refresh(ABStracTapPlicaTioNConteXt.JavA:550)
: Error creating bean with  name 'hib ernat e5A nno ta tedS essi onFactory' def i nedin ServletContext reso urce[/ W EB-I N F/ dispa tcherCo n fi g . xml ]:  I nvo ca t io n ofini t metho d failed;nes te d exceptioni sjava.lang. NoS uchMethodErr or:  org.h ib ern a te.cf g.C onfig uratio n .<init >(Lorg/hi be r nate/b o ot/Meta d a ta Sour ces;)V
    at org . sp r ingframework.b eans.f ac t or y . ann ota tion.Autow ir edAnn o tationB e an P o s tPr o cessor$Autowi redMethodEl e men t.inje ct (Au t owired Annot at i onB eanPostProc esso r.java:66 7)
  at org. s pringfr amewor k.b ean s.fa c to ry .an no t ati o n. Inj e cti onMetada ta .i nject (Inj e c t i onMe tad ata. java: 91)
    at or g.s prin g fra mewor k.bea ns.f ac tory. annota tion. Au towiredAnnotati onBe anPostPro ces so r.p os tProc e ssProp ert yVa lues(Au towired A nno ta t i o nB eanPostProcessor.j av a : 37 3)
    a t org. s pr in g framewor k. bea ns.f a c tory. supp o rt .Abstrac tAutow i re Ca pableBe an Factor y. pop ula teBea n (Abs tractA utowireC apabl e BeanFactory.ja v a:1350)
    a t  o r g .s p ring fra mework.bean s.fa c tory .sup p or t.A b strac tAuto wi r eC a pableBeanFactory.do Cr eateBe an(Ab stractAutowir eCapableBe a n F actory.j ava: 5 80 ) 
    at org.sp ringf ramework.b e ans.fact ory.s upport.A bstractAu t o wireCapa ble Bea nFa cto r y .c reateBean(Abs t r actA ut owireCa pab leBeanF act ory .ja va: 50 3)
    at  org.spr in gf ra me wor k.bea n s.factor y. sup po rt. Abstr a ctBean Facto ry.l am bd a $do GetBean $ 0( A b stra ct Be anFa cto ry .java :317 ) 
   at or g.springf ram e work .b ea ns.fact ory.support.D ef aultSingle to nBe anRegi s t ry.getSi ngleton(DefaultSingleto n BeanReg ist ry.ja va:2 22)
    a t o rg.spr ing f ramewo rk.bea ns.fa ct ory . s uppor t . Ab str ac tBeanFacto r y .do GetBe an (Abs tractBe anFactory.java:315 ) 
   at org.spri ngf rame w o rk .be a ns . fac to r y.s u p port.AbstractBe anFactory. ge t Be an(Abstrac t Bea nF actory. java:19 9)
  at org .springfr amework.b ea ns.f a c tor y.support. DefaultL istableBe a nFact o ry .preI nst antiat eS ing leton s(Defa u ltL istab leBean Fa ctory. java: 76 0)
    a t org.springframework.c ontext .supp ort .Abstract App l ica tionConte xt.f inishBeanF act ory Initi ali z ation (Abs t ra ctA p plica tion C ontext.ja v a: 869 )    at org.sp r i n gfr amewo rk. c ontext .sup port.AbstractAppl i cationContext. refr e s h(A bst r actA pp licationContex t.j av a : 550)
: Error_creating bean_with name 'hibernate5AnnotatedSessionFactory' defined_in ServletContext_resource_[/WEB-INF/dispatcherConfig.xml]: Invocation_of_init method failed;_nested exception is_java.lang.NoSuchMethodError: org.hibernate.cfg.Configuration.<init>(Lorg/hibernate/boot/MetadataSources;)V
  _ at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.inject(AutowiredAnnotationBeanPostProcessor.java:667)
__  at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:91)
    at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:373)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1350)
__ _at_org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:580)
_   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:503)
_   at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:317)
_ _ at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:315)
__  at_org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:760)
   _at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:869)
    at_org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:550)