title: Grails deploy on Tomcat6
body: <p>while trying to deploy a Grails application into tomcat6 I ran into some problems: I used the <code>grails war</code> command to build up a war, then copied it to <code>var/lib/tomcat6/webapps</code> and tried to restart the container.</p>
  
  <p>I had to change default Tomcat policy to skip security exceptions, since I couldn't access environment variable (like <code>grails.env</code>), 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:</p>
  
  <blockquote>
    <p>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</p>
  </blockquote>
  
  <p>It seems like it's unable to load <code>org.hibernate.cfg.Environment</code> class.</p>
  
  <p>I checked the <code>applicationContext.xml</code> and it refers to <code>grails.xml</code> to search for plugins, in this last file I actually have <code>HibernateGrailsPlugin</code>.</p>
  
  <p>Where should I look to find if the plugin is present?</p>