hibernate - Grails Migrate 2.5.3 to 3.2.4 - Cannot start embedded server -


i'm upgraded plugin 3.2.4. plugin works fine when run using grails run-app command. i'm building test app use plugin. have added necessary things in app's build.gradle. have created multi build project when run app following error:

    2017-09-12 12:14:35.689 error --- [           main] o.s.boot.springapplication               : application startup failed      org.springframework.context.applicationcontextexception: unable start embedded container; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'tomcatembeddedservletcontainerfactory' defined in class path resource [org/springframework/boot/autoconfigure/web/embeddedservletcontainerautoconfiguration$embeddedtomcat.class]: initialization of bean failed; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'serverproperties' defined in class path resource [org/springframework/boot/autoconfigure/web/serverpropertiesautoconfiguration.class]: initialization of bean failed; nested exception java.lang.noclassdeffounderror: org/hibernate/bytecode/instrumentation/internal/fieldinterceptionhelper     @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.onrefresh(embeddedwebapplicationcontext.java:137)     @ org.springframework.context.support.abstractapplicationcontext.refresh(abstractapplicationcontext.java:536)     @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.refresh(embeddedwebapplicationcontext.java:122)     @ org.springframework.boot.springapplication.refresh(springapplication.java:761)     @ org.springframework.boot.springapplication.refreshcontext(springapplication.java:371)     @ org.springframework.boot.springapplication.run(springapplication.java:315)     @ grails.boot.grailsapp.run(grailsapp.groovy:83)     @ grails.boot.grailsapp.run(grailsapp.groovy:387)     @ grails.boot.grailsapp.run(grailsapp.groovy:374)     @ grails.boot.grailsapp$run.call(unknown source)     @ org.codehaus.groovy.runtime.callsite.callsitearray.defaultcall(callsitearray.java:48)     @ org.codehaus.groovy.runtime.callsite.abstractcallsite.call(abstractcallsite.java:113)     @ org.codehaus.groovy.runtime.callsite.abstractcallsite.call(abstractcallsite.java:133)     @ rbmonoapp.application.main(application.groovy:8)     caused by: org.springframework.beans.factory.beancreationexception: error creating bean name 'tomcatembeddedservletcontainerfactory' defined in class path resource [org/springframework/boot/autoconfigure/web/embeddedservletcontainerautoconfiguration$embeddedtomcat.class]: initialization of bean failed; nested exception org.springframework.beans.factory.beancreationexception: error creating bean name 'serverproperties' defined in class path resource [org/springframework/boot/autoconfigure/web/serverpropertiesautoconfiguration.class]: initialization of bean failed; nested exception java.lang.noclassdeffounderror: org/hibernate/bytecode/instrumentation/internal/fieldinterceptionhelper     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:562)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:482)     @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:306)     @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:230)     @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:302)     @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:202)     @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.getembeddedservletcontainerfactory(embeddedwebapplicationcontext.java:199)     @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.createembeddedservletcontainer(embeddedwebapplicationcontext.java:162)     @ org.springframework.boot.context.embedded.embeddedwebapplicationcontext.onrefresh(embeddedwebapplicationcontext.java:134)     ... 13 common frames omitted     caused by: org.springframework.beans.factory.beancreationexception: error creating bean name 'serverproperties' defined in class path resource [org/springframework/boot/autoconfigure/web/serverpropertiesautoconfiguration.class]: initialization of bean failed; nested exception java.lang.noclassdeffounderror: org/hibernate/bytecode/instrumentation/internal/fieldinterceptionhelper     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:562)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.createbean(abstractautowirecapablebeanfactory.java:482)     @ org.springframework.beans.factory.support.abstractbeanfactory$1.getobject(abstractbeanfactory.java:306)     @ org.springframework.beans.factory.support.defaultsingletonbeanregistry.getsingleton(defaultsingletonbeanregistry.java:230)     @ org.springframework.beans.factory.support.abstractbeanfactory.dogetbean(abstractbeanfactory.java:302)     @ org.springframework.beans.factory.support.abstractbeanfactory.getbean(abstractbeanfactory.java:202)     @ org.springframework.beans.factory.support.defaultlistablebeanfactory.getbeansoftype(defaultlistablebeanfactory.java:512)     @ org.springframework.context.support.abstractapplicationcontext.getbeansoftype(abstractapplicationcontext.java:1197)     @ org.springframework.boot.context.embedded.embeddedservletcontainercustomizerbeanpostprocessor.getcustomizers(embeddedservletcontainercustomizerbeanpostprocessor.java:77)     @ org.springframework.boot.context.embedded.embeddedservletcontainercustomizerbeanpostprocessor.postprocessbeforeinitialization(embeddedservletcontainercustomizerbeanpostprocessor.java:67)     @ org.springframework.boot.context.embedded.embeddedservletcontainercustomizerbeanpostprocessor.postprocessbeforeinitialization(embeddedservletcontainercustomizerbeanpostprocessor.java:54)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.applybeanpostprocessorsbeforeinitialization(abstractautowirecapablebeanfactory.java:408)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1575)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:553)     ... 21 common frames omitted     caused by: java.lang.noclassdeffounderror: org/hibernate/bytecode/instrumentation/internal/fieldinterceptionhelper     @ org.hibernate.jpa.internal.util.persistenceutilhelper.isloadedwithoutreference(persistenceutilhelper.java:121)     @ org.hibernate.jpa.hibernatepersistenceprovider$1.isloadedwithoutreference(hibernatepersistenceprovider.java:171)     @ javax.persistence.persistence$1.isloaded(persistence.java:111)     @ org.hibernate.validator.internal.engine.resolver.jpatraversableresolver.isreachable(jpatraversableresolver.java:46)     @ org.hibernate.validator.internal.engine.resolver.defaulttraversableresolver.isreachable(defaulttraversableresolver.java:128)     @ org.hibernate.validator.internal.engine.resolver.cachingtraversableresolverforsinglevalidation.isreachable(cachingtraversableresolverforsinglevalidation.java:36)     @ org.hibernate.validator.internal.engine.validatorimpl.isreachable(validatorimpl.java:1612)     @ org.hibernate.validator.internal.engine.validatorimpl.isvalidationrequired(validatorimpl.java:1597)     @ org.hibernate.validator.internal.engine.validatorimpl.validatemetaconstraint(validatorimpl.java:609)     @ org.hibernate.validator.internal.engine.validatorimpl.validateconstraint(validatorimpl.java:580)     @ org.hibernate.validator.internal.engine.validatorimpl.validateconstraintsforsingledefaultgroupelement(validatorimpl.java:524)     @ org.hibernate.validator.internal.engine.validatorimpl.validateconstraintsfordefaultgroup(validatorimpl.java:492)     @ org.hibernate.validator.internal.engine.validatorimpl.validateconstraintsforcurrentgroup(validatorimpl.java:457)     @ org.hibernate.validator.internal.engine.validatorimpl.validateincontext(validatorimpl.java:407)     @ org.hibernate.validator.internal.engine.validatorimpl.validate(validatorimpl.java:205)     @ org.springframework.validation.beanvalidation.springvalidatoradapter.validate(springvalidatoradapter.java:94)     @ org.springframework.validation.databinder.validate(databinder.java:852)     @ org.springframework.boot.bind.propertiesconfigurationfactory.validate(propertiesconfigurationfactory.java:367)     @ org.springframework.boot.bind.propertiesconfigurationfactory.dobindpropertiestotarget(propertiesconfigurationfactory.java:287)     @ org.springframework.boot.bind.propertiesconfigurationfactory.bindpropertiestotarget(propertiesconfigurationfactory.java:256)     @ org.springframework.boot.context.properties.configurationpropertiesbindingpostprocessor.postprocessbeforeinitialization(configurationpropertiesbindingpostprocessor.java:347)     @ org.springframework.boot.context.properties.configurationpropertiesbindingpostprocessor.postprocessbeforeinitialization(configurationpropertiesbindingpostprocessor.java:303)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.applybeanpostprocessorsbeforeinitialization(abstractautowirecapablebeanfactory.java:408)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.initializebean(abstractautowirecapablebeanfactory.java:1575)     @ org.springframework.beans.factory.support.abstractautowirecapablebeanfactory.docreatebean(abstractautowirecapablebeanfactory.java:553)     ... 34 common frames omitted     caused by: java.lang.classnotfoundexception: org.hibernate.bytecode.instrumentation.internal.fieldinterceptionhelper     @ java.net.urlclassloader.findclass(urlclassloader.java:381)     @ java.lang.classloader.loadclass(classloader.java:424)     @ sun.misc.launcher$appclassloader.loadclass(launcher.java:335)     @ java.lang.classloader.loadclass(classloader.java:357)     ... 59 common frames omitted 

following build.gradle file plugin.

    buildscript { repositories {     mavenlocal()     maven { url "https://repo.grails.org/grails/core" } } dependencies {     classpath "org.grails:grails-gradle-plugin:$grailsversion"     classpath "com.bertramlabs.plugins:asset-pipeline-gradle:2.8.2"     classpath 'org.grails.plugins:database-migration:3.0.3' }     }       version "0.1"      group "rbmonoservice"       apply plugin:"eclipse"      apply plugin:"idea"      apply plugin:"org.grails.grails-plugin"      apply plugin:"org.grails.grails-plugin-publish"      apply plugin:"org.grails.grails-gsp"      apply plugin:"asset-pipeline"      apply plugin: 'codenarc'       repositories { mavenlocal() maven { url "https://repo.grails.org/grails/core" }      }       dependencymanagement { imports {     mavenbom "org.grails:grails-bom:$grailsversion" } applymavenexclusions false      }       configurations.all { resolutionstrategy.eachdependency { dependencyresolvedetails details ->     if( details.requested.group == 'org.grails' &&             details.requested.name.startswith('grails-datastore')) {         details.useversion("6.1.2.release")     } }      }       configurations.all { exclude module:'grails-datastore-simple'      }       sourcesets { main {     resources {         srcdir 'grails-app/migrations'     } }      }       dependencies { compile "org.springframework.boot:spring-boot-starter-logging" compile "org.springframework.boot:spring-boot-autoconfigure" compile "org.grails:grails-core" compile "org.springframework.boot:spring-boot-starter-actuator" compile "org.springframework.boot:spring-boot-starter-tomcat" compile "org.grails:grails-dependencies" compile "org.grails:grails-web-boot" compile "org.grails.plugins:cache" compile "org.grails.plugins:scaffolding" console "org.grails:grails-console" profile "org.grails.profiles:web-plugin" provided "org.grails:grails-plugin-services" provided "org.grails:grails-plugin-domain-class" runtime "com.bertramlabs.plugins:asset-pipeline-grails:2.8.2" testcompile "org.grails:grails-plugin-testing" testcompile "org.grails.plugins:geb" testruntime "org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1" testruntime "net.sourceforge.htmlunit:htmlunit:2.18" compile "org.grails.plugins:spring-security-rest:2.0.0.m2" compile 'org.grails.plugins:spring-security-core:3.1.2' //compile "org.grails.plugins:spring-security-eventlog:0.5" compile "org.grails.plugins:java8-temporal:0.2" //compile "org.grails.plugins:platform-core:1.0.0" compile 'org.grails.plugins:excel-export:2.1' compile 'org.grails.plugins:filterpane:3.0.8' compile 'org.grails.plugins:fields:2.1.5' runtime 'org.grails.plugins:grails-console:2.0.0' compile 'org.grails.plugins:redis:2.0.4' compile 'org.grails.plugins:quartz-monitor:1.3' compile 'org.grails.plugins:quartz:2.0.12' compile 'org.grails.plugins:aws-sdk:1.10.74' compile 'org.grails.plugins:mongodb:6.1.3' compile 'org.grails:grails-datastore-rest-client:5.0.0.rc2' compile 'com.google.guava:guava:18.0' compile 'org.grails.plugins:database-migration:3.0.3' compile 'org.liquibase:liquibase-core:3.5.3' compile "org.grails.plugins:csv:1+" compile 'commons-net:commons-net:3.6' compile 'com.google.guava:guava:23.0' //compile 'org.grails.plugins:grails-platform-core:3.0.3' runtime "mysql:mysql-connector-java:5.1.37" //compile 'grails.plugins:spring-security-eventlog:3.0.1.snapshot'      }       bootrun { jvmargs('-dspring.output.ansi.enabled=always')      }      // enable if wish package plugin standalone application      bootrepackage.enabled = false      grailspublish { // todo: provide values here user = 'user' key = 'key' githubslug = 'foo/bar' license {     name = 'apache-2.0' } title = "my plugin" desc = "full plugin description" developers = [johndoe:"john doe"] portaluser = "" portalpassword = ""          }        assets { packageplugin = true      } 

and following build.gradle of app

    buildscript { repositories {     mavenlocal()     maven { url "https://repo.grails.org/grails/core" } } dependencies {     classpath "org.grails:grails-gradle-plugin:$grailsversion"     classpath "com.bertramlabs.plugins:asset-pipeline-gradle:2.11.6"     classpath "org.grails.plugins:hibernate5:6.0.4" }       }         version "0.1"       group "rbmonoapp"        apply plugin:"eclipse"       apply plugin:"idea"       apply plugin:"war"       apply plugin:"org.grails.grails-web"       apply plugin:"org.grails.grails-gsp"       apply plugin:"asset-pipeline"        repositories { mavenlocal() maven { url "https://repo.grails.org/grails/core" }       }        dependencymanagement { imports {     mavenbom "org.grails:grails-bom:$grailsversion" } applymavenexclusions false       }        dependencies { compile project(':rbmonoservice') compile "org.springframework.boot:spring-boot-starter-logging" compile "org.springframework.boot:spring-boot-autoconfigure" compile "org.grails:grails-core" compile "org.springframework.boot:spring-boot-starter-actuator" compile "org.springframework.boot:spring-boot-starter-tomcat" compile "org.grails:grails-dependencies" compile "org.grails:grails-web-boot" compile "org.grails.plugins:cache" compile "org.grails.plugins:scaffolding" compile "org.grails.plugins:hibernate5" compile "org.hibernate:hibernate-core:5.1.2.final" compile "org.hibernate:hibernate-ehcache:5.1.2.final" console "org.grails:grails-console" profile "org.grails.profiles:web" runtime "com.bertramlabs.plugins:asset-pipeline-grails:2.11.6" runtime "com.h2database:h2" testcompile "org.grails:grails-plugin-testing" testcompile "org.grails.plugins:geb" testruntime "org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1" testruntime "net.sourceforge.htmlunit:htmlunit:2.18"       }        bootrun { jvmargs('-dspring.output.ansi.enabled=always')       }         assets { minifyjs = true minifycss = true       } 

can please me fix problem?


Comments

Popular posts from this blog

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -