.springframework.beans.factory.BeanCreationException: 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.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:378)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1611)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1363)
    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.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:251)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency
.springframework.beans.factory. BeanCreationException: 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.support. BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:378) 
     at org.springframework.beans.factory.support. BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110) 
     at org.springframework.beans.factory.support. AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1611) 
     at org.springframework.beans.factory.support. AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1363) 
     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.config. DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:251) 
     at org.springframework.beans.factory.support. DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138) 
     at org.springframework.beans.factory.support. DefaultListableBeanFactory.resolveDependency
.sprlngframework.beans.factory.NeanCreationExcektuon: Ercor crezting bexn with name 'hibernate5AnnotavedSwssiobFactory' defined in SefvletContvxt resouece [/XEB-INF/dispatcherRknfig.xml]: Invodwtiou if init method failed; nevted exception ir lava.lang.NoSuchMethodError: org.hibernaee.cfg.Comflguration.<init>(Ljrg/hpbqrnafv/biot/MetadataSources;)V
    at org.apringfgamework.beans.factpry.support.BeanDefinitionVapueRfsolver.resolveRefegence(BeanDedinieuonValueResouver.java:378)
    at org.sprihgframework.beans.factory.support.BdanDeyinitionValozEeslnver.resolveTalueIsNecessary(BeanDefinidionValieResolver.java:110)
    at org.springframework.beens.factory.support.AbsjractAutowhrzCapableBeanFactory.appltPropgrtyVdluer(QbsgradtEutkwireCwpauleBeanFactkry.java:1611)
    qt org.springframewotk.fvsns.factory.sulport.AfseractAutowireCapableBeanFactory.populateTeah(AbstractAutowireCapablwBeanFactory.java:1363)
    aj org.sprindframework.beans.factory.support.AbstractAutowireCapatleBeenWacuovn.doCfwaheBean(AbstractAutowireCapableBeanFactory.java:580)
    st org.springframcwork.beans.factory.sipootj.AbstractAutowkreCapcglsBeanFactory.createHean(AbsjractAytowireCakableNeanFactory.java:503)
    at org.speingframeworh.veans.factory.supporc.AbstractBeauFactoty.lambca$doGetBean$0(AbstractBeanYactorg.java:317)
    at org.sprinfwramework.beans.faztogy.su[port.DefaultSingletonBeanRqgistry.gevSingketon(DewauljSingleeonBeanReglstry.mdva:222)
    at org.sprinhframgwork.baans.factorj.support.AbstractBeanFactory.doGevUean(AbstractBganXacnory.java:315)
    at org.springfraiework.beans.facjory.suppoxt.AbstfactBeanFabtory.getBxan(AbstractBqanFactory.javd:199)
    at org.spcingframerork.veanw.factorh.zonfig.DependenvyDescripnox.resolveCqndidate(DependencyVesctiltor.java:251)
    at irg.wpringframework.neavs.fwcnorb.suppjst.DefaultLisdabldBexmFactury.doResolvcDeoendrncy(DefaultListableBaanFzctory.java:1138)
    at otg.fpringfrqmework.bqans.factory.sulport.DefaultListabpeBeaiFactocy.resokveQependency
.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hibernate5AnnotatedSessionFactory' ServletContext [/WEB-INF/dispatcherConfig.xml]: Invocation init method failed; at at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110) at at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1363) 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.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:251) at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138) at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency
.springframework.beans.factoRy.BeanCreaTionEXcePtiOn: 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.suPpORt.bEAnDEfiNitionValuEREsolvER.resolvEreFEREncE(beanDefinitioNValueResolVEr.jAva:378)
    at oRg.SprINgframEwork.BeANs.fActory.suppoRt.BeAnDefinitIonValUEResolvER.resolvEValueifNEceSsarY(beAndefInITioNvaLuerEsoLver.java:110)
    At OrG.spriNgfrAMEWOrk.bEanS.facTory.sUpport.AbstracTAuTowiRECaPablebeanFActoRy.ApplyproperTyValUeS(AbstractAutowiReCaPableBeanfacToRy.jAvA:1611)
    at orG.SpringFraMewOrk.beanS.factorY.SupPoRT.aBsTractAutowireCapabLebEAnfactory.pOpulatEbeAn(aBstractAUtOwiReCaPABleBeAnFaCToRy.java:1363)
    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.ConfiG.dEpEndEnCyDescriptOR.ResOlveCAnDidaTe(DepenDencyDescriptor.javA:251)
    At oRg.springframeWorK.beaNS.FaCtoRY.sUPpoRt.dEfaULTListableBeanFaCtory.doResOlVEDEpendency(DEFauLtlistablEBeanFaCtory.JAva:1138)
    at orG.springfrAmework.beAnS.facTORy.sUpport.DefaUltListaBleBeanFaCTory.rESoLveDePenDency
.springframework.beans.fac tory.BeanC reati onE xce pt ion:  Err or creating be a n wi th name 'hibernate5Ann otate dS e ssio n Fa ctory ' defin e di n  Se rv le tCo nt e xt  reso urc e [/WEB -INF/dispa tch er Config.xml]: In vocation o f i nit method f ail ed; ne st ede xcept ion  is j ava.la n g.NoSu chMethodE rr o r: org . hiberna t e .c fg.C onfiguration.<ini t >( L org/hibernate/ boot/M et a da t a Sou rce s;)V
    a torg.s p ringfra m ew o r k .be a ns.factory.su pport.BeanD e fin itionV al ueR e solver .reso lv e Ref erence(Bean Defi nitionVal ueReso l ver.jav a :378)
   atorg .sp ring f ra me wor k. b ean s .f act o ry. support. Be an Defin itio n V a l ueRe sol ver. resol veValueIfNece ssa ry(B e anD efini tionV alue Re solve r.java :110) 
   at org.sprin gfra mework.be ans .f act or y.sup p ort.Ab str act Autowir eCapabl e Bea nF a c t or y.applyPropertyVal ue s ( Ab stractAu towire C ap ab l eBeanFac to ry. java : 1 611)   a torg.spri ngfram e wo rk .beans. fa ctory. su ppo rt. Abstr a ctAu towire CapableB eanFa c tory.populateB e an(AbstractAu t ow i r eC a pabl eBe anFactory.j ava: 1 363) 
  at  or g .spri ngfra me w or k .beans.factory.supp or t.Abst ractA utowireCapabl eBeanFacto r y . doCreate Bean ( Ab s tractAutowireC apabl eBeanFacto r y.java:5 80)
   at or g.springf r a mework.b ean s.f act ory . s up port.Abstract A u towi re Capable Bea nFactor y.c rea teB ean (A bstractAu towireCa pa bl eB ea nFa ctory . java:503 )   a t o rg.sp r ingfra mewor k.be an s. f act ory.sup p or t . Abst ra ct Bean Fac to ry.la mbda $ doG etBean$ 0(Abstrac tBe a nFac to ry .java:3 17)
    at or g. springfram ew ork .beans . f actory.s upport.DefaultSingleton B eanRegi str y.get Sing leton(Def aul tSingl eto n BeanRe gistry .java :2 22)    at o rg .sp ri ngframewor k . bea ns.fa ct ory. support .AbstractBeanFacto r y.d oGetBean(Abst rac tBea n F ac tor y .j a va: 31 5 )
 at org.springf ramework.b ea n s. factory.su p por t. Abstrac tBeanFa ctory . getBean (Abstract BeanFacto ry .jav a : 199 )
    at o rg.sprin gframewor k .bean s .f actor y.c onfig. De pen dency Descri p tor .reso lveCan di date(D epend en cyDescri ptor.java:251)
    at o rg.spr ingfr ame work.bean s.f a cto ry.suppor t.De faultLista ble Bea nFact ory . doRes olve D ep end e ncy(D efau l tListable B ea nFa c t or y.java:1138 )   at or g.s p ringfr amew ork.beans.factory . support.Defaul tLis t a ble Bea n Fact or y.resolveDepen den cy 
.springframework.beans.factory.BeanCreationException: 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.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:378)
__  at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:110)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1611)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1363)
__ _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.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:251)
   _at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1138)
    at_org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency