I was wondering if anyone had a luck deploying Grails 2.3.5 to Tomcat6
In BuildConfig I have grails.servlet.version = "2.5"
Plugins block looks like following:
plugins {
build ":release:3.0.1"
build ":tomcat:7.0.50"
compile ":scaffolding:2.0.1"
compile ':cache:1.1.1'
runtime ":hibernate:3.6.10.7"
runtime ":database-migration:1.3.8"
runtime ":jquery:1.10.2.2"
runtime ":resources:1.2.1"
}
On the startup I get following exception:
ERROR context.ContextLoader - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'grailsApplication' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/servlet/AsyncContext
It starts up perfectly fine on Tomcat7. I have a suspicion that hibernate plugin is dragging hard dependency on Servlet 3, but that's just a guess at this stage.