Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't run Grails war-file on Tomcat
    text
    copied!<p>I'm able to build a war-file in STS, but I'm not able to deploy! Grails version 2.1.1.</p> <p>I have read all kinds of posts, I have ran clean, update, compile, run-app (runs fine), upgraded Java, changed db-drivers (postgresql:postgresql:9.3-1100.jdbc41), removed test from the source path, changed <code>grails.servlet.version</code> to 3.0, to name a few.</p> <p>My setup is pretty vanilla at the moment, so no mystical plugins.</p> <p>When I try to deploy it using Tomcat or run <code>grails run-war</code> I get the following error:</p> <pre><code>Dec 23, 2013 11:39:10 PM org.apache.catalina.core.ApplicationContext log INFO: No Spring WebApplicationInitializer types detected on classpath Dec 23, 2013 11:39:12 PM org.apache.catalina.core.ApplicationContext log INFO: Initializing Spring root WebApplicationContext Dec 23, 2013 11:39:17 PM org.apache.catalina.core.StandardContext listenerStart SEVERE: Exception sending context initialized event to listener instance of class org.codehaus.groovy.grails.web.context.GrailsContextLoaderListener org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'pluginManager' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Unable to locate constructor with Class parameter for class org.codehaus.groovy.grails.commons.DefaultGrailsControllerClass at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819) at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) Caused by: java.lang.RuntimeException: Unable to locate constructor with Class parameter for class org.codehaus.groovy.grails.commons.DefaultGrailsControllerClass ... 5 more Caused by: java.lang.reflect.InvocationTargetException ... 5 more Caused by: java.lang.NoClassDefFoundError: Lgrails/test/mixin/domain/DomainClassUnitTestMixin; at java.lang.Class.privateGetDeclaredFields(Class.java:2397) at java.lang.Class.getDeclaredFields(Class.java:1806) ... 5 more Caused by: java.lang.ClassNotFoundException: grails.test.mixin.domain.DomainClassUnitTestMixin ... 7 more </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload