Grails deploy on Tomcat6

Posted by Jack on Stack Overflow See other posts from Stack Overflow or by Jack
Published on 2010-05-05T16:01:49Z Indexed on 2010/05/05 22:18 UTC
Read the original article Hit count: 310

Filed under:
|
|
|

Hello, while trying to deploy a Grails application into tomcat6 I ran into some problems: I used the grails war command to build up a war, then copied it to var/lib/tomcat6/webapps and tried to restart the container.

I had to change default Tomcat policy to skip security exceptions, since I couldn't access environment variable (like grails.env), then tried again but it gives me an exception related to instantiating something, but it's not clear where should I try to fix the error, according to tomcat6 logs the problem is:

SEVERE: Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsC$ org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginManager' defined in ServletContext$ at java.lang.Thread.run(Thread.java:619) Caused by: org.codehaus.groovy.grails.exceptions.NewInstanceCreationException: Could not create a new instance of class [Hiberna$ ... 1 more Caused by: java.lang.NoClassDefFoundError: org.hibernate.cfg.Environment

It seems like it's unable to load org.hibernate.cfg.Environment class.

I checked the applicationContext.xml and it refers to grails.xml to search for plugins, in this last file I actually have HibernateGrailsPlugin.

Where should I look to find if the plugin is present?

© Stack Overflow or respective owner

Related posts about grails

Related posts about tomcat