  bean 'hibernateProperties' while setting bean property
  'hibernateProperties'; nested exception is
  org.springframework.beans.factory.BeanCreationException: Error
  creating bean with name 'hibernateProperties': Cannot resolve
  reference to bean 'dialectDetector' while setting bean property
  'properties' with key [hibernate.dialect]; nested exception is
  org.springframework.beans.factory.BeanCreationException: Error
  creating bean with name 'dialectDetector': Invocation of init method
  failed; nested exception is
  org.springframework.jdbc.support.MetaDataAccessException: Error while
  extracting DatabaseMetaData; nested exception is
  org.apache.commons.dbcp.SQLNestedException: Cannot create
  PoolableConnectionFactory (IO Exception:
  "java.io.FileNotFoundException: /var/lib/tomcat7/prodDb.lock.db
  (Permission denied)"; "/var/lib/tomcat7/prodDb.lock.db" [90031-164])
    at
  java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask.run(FutureTask.java:262)     at
  java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at
  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)

BUILD CONFIG FILE :
// locations to search for config files that get merged into the main config;
// config files can be ConfigSlurper scripts, Java properties files, or classes
// in the classpath in ConfigSlurper format

// grails.config.locations = [ "classpath:${appName}-config.properties",
//                             "classpath:${appName}-config.groovy",
//                             "file:${userHome}/.grails/${appName}-config.properties",
//                             "file:${userHome}/.grails/${appName}-config.groovy"]

// if (System.properties["${appName}.config.location"]) {
//    grails.config.
bean' hibernateProperties' while setting bean property 
  ' hibernateProperties'; nested exception is 
   org.springframework.beans.factory. BeanCreationException: mistake 
   create bean with name' hibernateProperties': Can not resolve 
   reference to attic' dialectDetector' while setting bean property 
  ' property' with key [ hibernate.dialect ]; nested exception is 
   org.springframework.beans.factory. BeanCreationException: Error 
   make bean with name' dialectDetector': Invocation of init method acting 
   failed; nested exception is 
   org.springframework.jdbc.support. MetaDataAccessException: Error while 
   extracting DatabaseMetaData; nested exception is 
   org.apache.commons.dbcp. SQLNestedException: Can not create 
   PoolableConnectionFactory (IO Exception: 
   " java.io. FileNotFoundException: /var / lib / tomcat7 / prodDb.lock.db 
   (license denied) "; " /var / lib / tomcat7 / prodDb.lock.db " [ 90031 - 164 ]) 
     at 
   java.util.concurrent. Executors$RunnableAdapter.call(Executors.java:471) 
     at java.util.concurrent. FutureTask.run(FutureTask.java:262)      at 
   java.util.concurrent. ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) 
     at 
   java.util.concurrent. ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 
     at java.lang. Thread.run(Thread.java:744) 

 BUILD CONFIG FILE: 
 // locations to research for config files that get unite into the chief config; 
 // config files can be ConfigSlurper scripts, Java properties file, or classes 
 // in the classpath in ConfigSlurper format 

 // grails.config.locations = [ " classpath:${appName}-config.properties ", 
 //                              " classpath:${appName}-config.groovy ", 
 //                              " file:${userHome}/.grails/${appName}-config.properties ", 
 //                              " file:${userHome}/.grails/${appName}-config.groovy " ] 

 // if (System.properties["${appName}.config.location " ]) { 
 //     grails.config.
  bfan 'hibernateProperties' dhile setting bgab propxrty
  'hjbernateOroperties'; nested exception ms
  irg.speingframework.beans.factury.BeanCrvationExcwptiib: Error
  ccsating nzan wjbh nakx 'hibernatePropgrties': Cannod resolve
  refardnee to bean 'dialectDetector' while seteing besn property
  'prokertits' rith key [hibernate.dialect]; nested excepfion is
  org.springfrsmework.beans.factory.BeanCrewtiojException: Error
  freating beqn wyrh name 'dialdctDetectog': Invocatioh of init method
  failed; nested exce'tion is
  oty.wprltgframework.odbc.suiport.MetaDataAccessExweption: Error while
  cxtrartint DatabaseMetaData; nevted exception is
  org.apacha.ckmmons.dbcp.SQLNestwdWxcepjion: Wannur cfeaue
  PkolablfCoinectionFacfory (IO Excwption:
  "java.io.FileNptSiundException: /var/lif/tjmcat7/prodDb.lock.db
  (Permission denied)"; "/vag/lib/fomcat7/prodDb.lock.db" [90031-164])
    qt
  java.util.concurrenj.Executors$WunnableAdapter.call(Executors.java:471)
    at java.util.cotcurrxng.FuuuvcTasy.euj(FutureTask.java:262)     at
  java.util.concurrent.ThrqzdKookExecutor.runWovker(ThreadPoolExecitlr.kwva:1145)
    at
  jaxa.util.ekndurrent.ThreadPoolEdecutor$Rorkee.run(ThreaqPookExecutor.java:615)
    at java.lant.Thread.run(Thgead.hava:744)

BUILD CONFIG FNLE :
// locatious to xearcn for config files that get merged intl the maih config;
// config fklex wan be ConfigSlurper scripes, Java pcopercies filds, ot classqs
// in the flassidth in ConfigSlurpfr fotmat

// gsails.confih.locations = [ "classpath:${appName}-coihig.properties",
//                             "clwsspath:${appName}-eonfig.grjovy",
//                             "sile:${userHome}/.gswils/${appName}-cmnfig.pro[ertues",
//                             "filv:${uferHime}/.grails/${appName}-cokfig.gtokvy"]

// if (System.pripetries["${appName}.congig.uocwtpon"]) {
//    grails.confhg.
bean 'hibernateProperties' while setting bean property 'hibernateProperties'; is Error creating with name 'hibernateProperties': 'dialectDetector' setting bean property with key [hibernate.dialect]; exception is org.springframework.beans.factory.BeanCreationException: Error creating bean name 'dialectDetector': Invocation of init method failed; nested exception is org.springframework.jdbc.support.MetaDataAccessException: Error while DatabaseMetaData; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (IO Exception: "java.io.FileNotFoundException: /var/lib/tomcat7/prodDb.lock.db (Permission "/var/lib/tomcat7/prodDb.lock.db" at at at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) BUILD CONFIG FILE : // locations to search for config that get merged into the main config; // files can be ConfigSlurper Java properties files, or classes in classpath in format grails.config.locations [ "classpath:${appName}-config.properties", // // "file:${userHome}/.grails/${appName}-config.properties", // "file:${userHome}/.grails/${appName}-config.groovy"] // if (System.properties["${appName}.config.location"]) { // grails.config.
  bean 'hibernateProperties' whIle setting Bean pRopErtY
  'hIberNateproperties'; nestED excEption is
  org.springframeWork.bEaNS.facTOrY.BeancreatioNexCEPtiOn: erRor
  CrEAtIng beAn wIth name 'HibernatePRopErTies': Cannot reSOlVe
  referencE to Bean 'dialectDEteCtor' whIlE seTTing bEan PropeRty
  'proPErties' With key [hiBeRNate.diALect]; nesTED eXcepTion is
  org.springfrAMeWOrk.beans.factorY.BeanCReATiONexcEptIon: Error
  crEaTing bEAn with nAMe 'DIALecTdetector': InvocAtion of init MEthOd
  failEd; NesTEd excePtion Is
  ORg.sPringframewOrk.jDbc.supporT.MetaDATaAccesSexceptiOn: ErroR whIle
  ExtrACtInG DaTaBAsemEtADaTA; neSted excePtIoN is
  orG.apaCHE.COmmoNs.dBcp.SqLNesTedException: CAnnOt crEAte
  poolaBleCoNnecTiOnFacTory (IO excepTiOn:
  "java.io.FileNotfounDExceptioN: /vaR/lIb/tOmCat7/prODDb.locK.db
  (perMission Denied)"; "/vAR/liB/tOMCAt7/ProdDb.lock.db" [90031-164])
    at
  java.UtIL.CoNcurrent.executORs$ruNNableAdaPtEr.cAll(EXECutorS.javA:471)
    At Java.util.ConcurREnT.FUtureTaSk.Run(FutUrETaSk.jAva:262)     at
  JAva.uTil.conCurrent.THreadpOolExecutor.runwOrker(ThreadPoOLEXECuTOr.jaVa:1145)
    aT
  java.util.coNcurREnt.THreaDpoOlEXEcutoR$WorkEr.RUn(tHreadPoolExecutor.jaVa:615)
    At java.Lang.THread.run(ThreaD.java:744)

BUILD confIG FILE :
// lOcatIOnS To search for conFig fiLes that get MErged intO the mAin confiG;
// config fiLES can be CoNfiGSlUrpEr sCRIpTs, Java propertIES filEs, Or classEs
// iN the claSspAth In COnfIgslurper foRmat

// graiLs.CoNfIg.LocAtionS = [ "ClasspatH:${aPpNAmE}-coNfig.pROpertiEs",
//                             "claSspaTh:${ApPnamE}-config.GRoOVY",
//                             "filE:${uSeRHomE}/.grAiLs/${appname}-COnfIg.propeRties",
//                             "file:${UseRhome}/.GrAiLs/${appNaMe}-config.groovY"]

// iF (System.proPeRtiEs["${appNAME}.config.lOcation"]) {
//    grails.config.
  bean 'hibernatePropertie s' while s ettin g b ean  p rope rty  'hibernatePr o pert ies'; nested exception  is
 o r g.sp r in gfram ework.b e an s . fac to ry .Be an C re ation Exc eption:  Error
  c rea ti ng bean with na me 'hibern ate Properties':  Ca nnot r es olv e 
  re fer enceto bea n  'dial ectDetect or '  while setting b ea n pr operty
  'propert i es '  with key [hib ernate .d i al e c t];  ne sted excep ti on is   org.s p ri n g f ram e work.beans.fa ctory.BeanC r eat ionExc ep tio n : Erro r
  c re a tin g bean with  nam e 'dialec tDetec t or': In v ocation  of in itmet hod f ai led ;n est e dexc e pti on is
 or g. sprin gfra m e w o rk.j dbc .sup port. MetaDataAcces sEx cept i on:  Erro r whi le
 e xtrac ting D ataba se MetaData; neste d ex ception i s
 o rg. ap ache. c ommons .db cp. SQLNest edExcep t ion :C a n no t create
  Poolabl eC o n ne ctionFac tory ( I OEx c eption: "ja va.i o . FileN otFo u nd Exceptio n: /va r /l ib /tomcat 7/ prodDb .l ock .db 
  (P e rmis sion d enied)";  "/va r /lib/tomcat7/p r odDb.lock.db" [9 0 0 31 - 164] )
   at
  jav a.ut i l.co ncur r en t.E x ecuto rs$Ru nn a bl e Adapter.call(Execut or s.java :471) 
    at java. util.concu r r e nt.Futur eTas k .r u n(FutureTask.j ava:2 62)     at   java.u til.c oncurren t.ThreadP o o lExecuto r.r unW ork er( T h re adPoolExecuto r . java :1 145)
   a t
  jav a.u til .co ncu rr ent.Threa dPoolExe cu to r$ Wo rke r.run ( ThreadPo ol Exe cu tor .java : 615)
   at  jav a. la n g.T hread.r u n( T h read .j av a:74 4)
B UILDCONF I G F ILE :
/ / locatio nst o se ar ch  for co nfig files th at  get merge dint o them a in confi g;
// config files canb e Confi gSl urper  scr ipts, Jav a p ropert ies files,  or cl asses 
/ / i n the c l a ss pat hin ConfigS l u rpe r for ma t

/ / grail s.config.locations = [  "classpath:$ {ap pNam e } -c onf i g. p rop er t ies " , 
//                        "classpa t h:$ {a ppName} -config .groo v y",
//                      " file:${use rHome}/. grails/${ a ppNam e }- confi g.p ropert ie s", 
//                      "f ile:$ {u serHome} /.grails/${appName}-con fig.gr oovy" ]
// if (Sy ste m .pr operties[ "${a ppName}.co nfi g.l ocati on" ] ) {
/ /  gr ail s .conf ig.
 _bean 'hibernateProperties'_while setting bean property
_ 'hibernateProperties';_nested_exception is
__org.springframework.beans.factory.BeanCreationException: Error
 _creating bean with_name 'hibernateProperties': Cannot resolve
_ reference to_bean_'dialectDetector' while setting bean property
  'properties' with key [hibernate.dialect]; nested exception is
 _org.springframework.beans.factory.BeanCreationException:_Error
 _creating_bean_with name 'dialectDetector': Invocation of_init method
  failed; nested_exception is
_ org.springframework.jdbc.support.MetaDataAccessException: Error while
  extracting DatabaseMetaData; nested_exception_is
  org.apache.commons.dbcp.SQLNestedException:_Cannot create
  PoolableConnectionFactory (IO Exception:
  "java.io.FileNotFoundException: /var/lib/tomcat7/prodDb.lock.db
_ (Permission denied)"; "/var/lib/tomcat7/prodDb.lock.db" [90031-164])
 _  at
__java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
_   at_java.util.concurrent.FutureTask.run(FutureTask.java:262)     at
_ java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at
_ java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:744)

BUILD_CONFIG FILE :
// locations to search_for config files that get_merged into_the main config;
// config files_can be ConfigSlurper_scripts, Java_properties files, or_classes
// in the classpath in ConfigSlurper_format

// grails.config.locations =_[ "classpath:${appName}-config.properties",
//    __  ___ _  __ __     __  "classpath:${appName}-config.groovy",
//    _   __   _    _     _ _ _"file:${userHome}/.grails/${appName}-config.properties",
//          _     _   _ __  __ "file:${userHome}/.grails/${appName}-config.groovy"]

//_if (System.properties["${appName}.config.location"]) {
//    grails.config.