开发者

Grails production WAR deploying error with code-coverage plugin

开发者 https://www.devze.com 2023-03-03 19:17 出处:网络
I built WAR of my grails application and tried to deploy it to my local tomcat instance (Tomcat 6.0.26). But application can\'t start, because of this exception (copied from log):

I built WAR of my grails application and tried to deploy it to my local tomcat instance (Tomcat 6.0.26). But application can't start, because of this exception (copied from log):

2011-05-09 17:49:31 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]: Invoca开发者_JS百科tion of init method failed; nested exception is java.lang.ClassNotFoundException: CodeCoverageGrailsPlugin
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
    at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.ClassNotFoundException: CodeCoverageGrailsPlugin
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:316)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    ... 3 more

This is strange, because code-coverage shouldn't be present in production environment. I inspected the \WEB-ING\lib directory where tomcat unpacked my web-app, and I didn't find any cobertura related jars. Any idea how I can get my app running?

EDIT:

Running application in embedded Tomcat instance using grails prod run-war produces same issue.

EDIT 2:

I didn't google well enough: code-coverage plugin issue 36


Problem is only present in version 1.2.2 of code-coverage plugin. Upgrading to version 1.2.4 solves the problem.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号