the application upgraded grails 2.0.4 2.5.6
when running grails war
or grails run-app
, fails message
| environment set development..... | packaging grails application..... | error error executing script runapp: grails/plugins/plugin
grails compile
works fine. grails clean
, clean-all
have no effect. delete scriptcache , whole %home%\.grails
directory have no effect.
a new helloworld app compiles , runs fine in same environment after experiencing error in main application.
i know plugins changed. there on imports or other configuration might impacting this?
stacktrace below
| loading grails 2.5.6 | configuring classpath | configuring classpath. | environment set development | environment set development. | environment set development.. | environment set development... | environment set development.... | environment set development..... | packaging grails application | packaging grails application. | packaging grails application.. | packaging grails application... | packaging grails application.... | packaging grails application..... | error error executing script runapp: grails/plugins/plugin (note: stack trace has been filtered. use --verbose see entire trace.) java.lang.noclassdeffounderror: grails/plugins/plugin @ _plugindependencies$_run_closure2.docall(_plugindependencies.groovy:48) @ org.codehaus.gant.gantmetaclass.invokemethod(gantmetaclass.java:133) @ org.codehaus.gant.gantbinding$_initializegantbinding_closure5_closure16_closure18.docall(gantbinding.groovy:185) @ org.codehaus.gant.gantbinding$_initializegantbinding_closure5_closure16_closure18.docall(gantbinding.groovy) @ org.codehaus.gant.gantbinding.withtargetevent(gantbinding.groovy:90) @ org.codehaus.gant.gantbinding.this$4$withtargetevent(gantbinding.groovy) @ org.codehaus.gant.gantbinding$_initializegantbinding_closure5_closure16.docall(gantbinding.groovy:185) @ org.codehaus.gant.gantbinding$_initializegantbinding_closure5_closure16.docall(gantbinding.groovy) @ org.codehaus.gant.gantmetaclass.invokemethod(gantmetaclass.java:133) @ _grailspackage$_run_closure2.docall(_grailspackage.groovy:57) @ org.codehaus.gant.gantmetaclass.invokemethod(gantmetaclass.java:133) @ org.codehaus.gant.gantbinding$_initializegantbinding_closure5_closure16_closure18.docall(gantbinding.groovy:185) @ org.codehaus.gant.gantbinding$_initializegantbinding_closure5_closure16_closure18.docall(gantbinding.groovy) @ org.codehaus.gant.gantbinding.withtargetevent(gantbinding.groovy:90) @ org.codehaus.gant.gantbinding.this$4$withtargetevent(gantbinding.groovy) @ org.codehaus.gant.gantbinding$_initializegantbinding_closure5_closure16.docall(gantbinding.groovy:185) @ org.codehaus.gant.gantbinding$_initializegantbinding_closure5_closure16.docall(gantbinding.groovy) @ org.codehaus.gant.gantmetaclass.processclosure(gantmetaclass.java:81) @ org.codehaus.gant.gantmetaclass.processargument(gantmetaclass.java:95) @ org.codehaus.gant.gantmetaclass.invokemethod(gantmetaclass.java:128) @ runapp$_run_closure1.docall(runapp.groovy:28) @ org.codehaus.gant.gantmetaclass.invokemethod(gantmetaclass.java:133) @ org.codehaus.gant.gantbinding$_initializegantbinding_closure5_closure16_closure18.docall(gantbinding.groovy:185) @ org.codehaus.gant.gantbinding$_initializegantbinding_closure5_closure16_closure18.docall(gantbinding.groovy) @ org.codehaus.gant.gantbinding.withtargetevent(gantbinding.groovy:90) @ org.codehaus.gant.gantbinding.this$4$withtargetevent(gantbinding.groovy) @ org.codehaus.gant.gantbinding$_initializegantbinding_closure5_closure16.docall(gantbinding.groovy:185) @ org.codehaus.gant.gantbinding$_initializegantbinding_closure5_closure16.docall(gantbinding.groovy) @ gant.gant$_dispatch_closure5.docall(gant.groovy:381) @ gant.gant$_dispatch_closure7.docall(gant.groovy:415) @ gant.gant$_dispatch_closure7.docall(gant.groovy) @ gant.gant.withbuildlisteners(gant.groovy:427) @ gant.gant.this$2$withbuildlisteners(gant.groovy) @ gant.gant.dispatch(gant.groovy:415) @ gant.gant.this$2$dispatch(gant.groovy) @ gant.gant.invokemethod(gant.groovy) @ gant.gant.executetargets(gant.groovy:591) @ gant.gant.executetargets(gant.groovy:590) caused by: java.lang.classnotfoundexception: grails.plugins.plugin ... 38 more | error error executing script runapp: grails/plugins/plugin
grails.plugins.plugin not class in grails 2.5.6 in grails 3 (as evidence checking api http://docs.grails.org/2.5.6/api/ vs http://docs.grails.org/latest/api/grails/plugins/plugin.html).
appears have somehow pulled in grails 3 plugin grails 2.5.6 project. have resolve checking buildconfig.groovy , changing version of offending plugin(s) or removing them.
Comments
Post a Comment