Closed Omasiri closed 8 years ago
Have same problem. A grails 3.1 application runs fine from command line or ide without problems, can't deploy to tomcat.
ERROR org.springframework.boot.SpringApplication - Application startup failed org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'filterInvocationInterceptorDeregistrationBean': Cannot resolve reference to bean 'filterInvocationInterceptor' while setting bean property 'filter'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'filterInvocationInterceptor': Invocation of init method failed; nested exception is java.lang.AssertionError: Cannot load Requestmaps; 'requestMap.className' property 'com.myapp.Requestmap' is invalid. Expression: Requestmap. Values: Requestmap = null
OS: Windows 10.
@benorama
@burtbeckwith : To reproduce, add compile "org.grails.plugins:aws-sdk:1.10.51"
to the dependencies block in build.gradle
For my plain project I had the following in build.gradle `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"
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"
compile 'mysql:mysql-connector-java:5.1.29'
compile(group: 'org.grails.plugins', name: 'spring-security-core', version: '3.0.3')
compile 'org.grails.plugins:excel-import:3.0.0.RC2'
compile 'org.grails.plugins:excel-export:2.0.1'
compile "org.grails.plugins:aws-sdk:1.10.51"
}`
Was there any resolution to this?
@burbidge it does not look like there was any resolution.
@burtbeckwith was not able to reproduce the issue.
For some reason Grails 3.1.1 application runs from command line without problems. However tomcat fails to deploy the same application .war file with the following error message:
... ...
Caused by: java.lang.AssertionError: Cannot load Requestmaps; 'requestMap.className' property 'com.novadge.security.Requestmap' is invalid. Expression: Requestmap. Values: Requestmap = null
... ...If I create a demo grails app without running
grails s2-quickstart com.novadge.security Users Role Requestmap
, tomcat deploys the app .war file without problems.