简体   繁体   中英

grails heroku plugin - unable to resolve class grails.plugin.cloudsupport.AbstractCloudTagLib

When I run the

git push heroku master

command, I get the following error (below). Per one this thread , I uninstalled the heroku plugin, installed the cloud-support plugin, and re-installed the heroku plugin. That didn't change the error. I entered a JIRA on this at the plugin, but am posting here so that there is an easy reference to whatever solution the grails folks are able to provide or in case dialogue on the problem/solution is required.

Thanks

Error is:

[mkdir] Created dir: /app/.grails/1.3.7/projects/build_36v61myh1movb/plugins/tomcat-1.3.7 [unzip] Expanding: /app/tmp/repo.git/.cache/cache/org.grails.plugins/tomcat/zips/tomcat-1.3.7.zip into

/app/.grails/1.3.7/projects/build_36v61myh1movb/plugins/tomcat-1.3.7 Installed plugin tomcat-1.3.7 to location /app/.grails/1.3.7/projects/build_36v61myh1movb/plugins/tomcat-

1.3.7. ... Executing tomcat-1.3.7 plugin post-install script ... Plugin tomcat-1.3.7 installed Plugin provides the following new scripts: ------------------------------------------ grails tomcat [mkdir] Created dir: /app/.grails/1.3.7/projects/build_36v61myh1movb/plugin-classes [groovyc] Compiling 106 source files to /app/.grails/1.3.7/projects/build_36v61myh1movb/plugin-classes [groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: [groovyc] /app/.grails/1.3.7/projects/build_36v61myh1movb/plugins/heroku-1.0/grails-

app/taglib/grails/plugin/heroku/HerokuTagLib.groovy: 17: unable to resolve class grails.plugin.cloudsupport.AbstractCloudTagLib [groovyc] @ line 17, column 1. [groovyc] import grails.plugin.cloudsupport.AbstractCloudTagLib [groovyc] ^ [groovyc] [groovyc] /app/.grails/1.3.7/projects/build_36v61myh1movb/plugins/heroku-1.0/grails-

app/taglib/grails/plugin/heroku/HerokuTagLib.groovy: 22: unable to resolve class grails.plugin.cloudsupport.Abstr actCloudTagLib [groovyc] @ line 22, column 1. [groovyc] class HerokuTagLib extends AbstractCloudTagLib { [groovyc] ^ [groovyc] [groovyc] /app/.grails/1.3.7/projects/build_36v61myh1movb/plugins/heroku-

1.0/src/groovy/grails/plugin/heroku/HerokuBeanPostprocessor.groovy: 17: unable to resolve class

grails.plugin.cloudsupport.A bstractCloudBeanPostprocessor [groovyc] @ line 17, column 1. [groovyc] import grails.plugin.cloudsupport.AbstractCloudBeanPostprocessor [groovyc] ^ [groovyc] [groovyc] /app/.grails/1.3.7/projects/build_36v61myh1movb/plugins/heroku-

1.0/src/groovy/grails/plugin/heroku/HerokuBeanPostprocessor.groovy: 27: unable to resolve class

grails.plugin.cloudsupport.A bstractCloudBeanPostprocessor [groovyc] @ line 27, column 1. [groovyc] class HerokuBeanPostprocessor extends AbstractCloudBeanPostprocessor { [groovyc] ^ [groovyc] [groovyc] /app/.grails/1.3.7/projects/build_36v61myh1movb/plugins/heroku-

1.0/src/groovy/grails/plugin/heroku/HerokuMongoBeanConfigurer.groovy: 17: unable to resolve class

grails.plugin.cloudsupport .AbstractMongoBeanConfigurer [groovyc] @ line 17, column 1. [groovyc] import grails.plugin.cloudsupport.AbstractMongoBeanConfigurer [groovyc] ^ [groovyc] [groovyc] /app/.grails/1.3.7/projects/build_36v61myh1movb/plugins/heroku-

1.0/src/groovy/grails/plugin/heroku/HerokuMongoBeanConfigurer.groovy: 24: unable to resolve class

grails.plugin.cloudsupport .AbstractMongoBeanConfigurer [groovyc] @ line 24, column 1. [groovyc] class HerokuMongoBeanConfigurer extends AbstractMongoBeanConfigurer { [groovyc] ^ [groovyc] [groovyc] 6 errors Error executing script Compile: : Compilation Failed : Compilation Failed at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:391) at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415) at gant.Gant$_dispatch_closure7.doCall(Gant.groovy) at gant.Gant.withBuildListeners(Gant.groovy:427) at gant.Gant.this$2$withBuildListeners(Gant.groovy) at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source) at gant.Gant.dispatch(Gant.groovy:415) at gant.Gant.this$2$dispatch(Gant.groovy) at gant.Gant.invokeMethod(Gant.groovy) at gant.Gant.executeTargets(Gant.groovy:590) at gant.Gant.executeTargets(Gant.groovy:589) Caused by: : Compilation Failed at org.codehaus.groovy.ant.Groovyc.compile(Groovyc.java:920) at org.codehaus.groovy.ant.Groovyc.execute(Groovyc.java:607) at org.apache.tools.an t.UnknownElement.execute(UnknownElement.java:288) at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) at Compile$_run_closure4_closure10.doCall(Compile:117) at Compile$_run_closure4_closure10.doCall(Compile) at Compile$_run_closure10.doCall(Compile:280) at Compile$_run_closure10.call(Compile) at Compile$_run_closure4.doCall(Compile:104) at Compile$_run_closure3.doCall(Compile:69) at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381) ... 10 more Caused by: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: /app/.grails/1.3.7/projects/build_36v61myh1movb/plugins/heroku-1.0/grails-

app/taglib/grails/plugin/heroku/HerokuTagLib.groovy: 17: unable to resolve class

grails.plugin.cloudsupport.AbstractCloudTagLib



Problems before this, note git push gives me no opportunity to respond to the [y,n] prompts:

   Plugin mail-1.0 installed
   Resolving plugin JAR dependencies ...
   Executing spring-security-ui-0.1.2 plugin post-install script ...
   Plugin spring-security-ui-0.1.2 installed
   Plugin provides the following new scripts:
   ------------------------------------------
   grails s2ui-override
   You currently already have a version of the plugin installed [mail-1.0]. Do you want to upgrade this version? [y,n]
   Invalid option 'null' - must be one of: [y,n]

   You currently already have a version of the plugin installed [mail-1.0]. Do you want to upgrade this version? [y,n]
   Invalid option 'null' - must be one of: [y,n]

   You currently already have a version of the plugin installed [mail-1.0]. Do you want to upgrade this version? [y,n]
   Invalid option 'null' - must be one of: [y,n]

   No valid response entered - giving up asking.
   Plugin mail-1.0-SNAPSHOT install aborted ...
   You currently already have a version of the plugin installed [spring-security-core-1.2.7.1]. Do you want to upgrade this version? [y,n]
   Invalid option 'null' - must be one of: [y,n]

   You currently already have a version of the plugin installed [spring-security-core-1.2.7.1]. Do you want to upgrade this version? [y,n]
   Invalid option 'null' - must be one of: [y,n]

   You currently already have a version of the plugin installed [spring-security-core-1.2.7.1]. Do you want to upgrade this version? [y,n]
   Invalid option 'null' - must be one of: [y,n]

   No valid response entered - giving up asking.
   Plugin spring-security-core-1.2.1 install aborted ...
   You currently already have a version of the plugin installed [jquery-1.7.1]. Do you want to upgrade this version? [y,n]
   Invalid option 'null' - must be one of: [y,n]

   You currently already have a version of the plugin installed [jquery-1.7.1]. Do you want to upgrade this version? [y,n]
   Invalid option 'null' - must be one of: [y,n]

   You currently already have a version of the plugin installed [jquery-1.7.1]. Do you want to upgrade this version? [y,n]
   Invalid option 'null' - must be one of: [y,n]

   No valid response entered - giving up asking.
   Plugin jquery-1.6.1.1 install aborted ...
       [mkdir] Created dir: /app/.grails/1.3.7/projects/build_28p9jo3vo48wb/plugin-classes
     [groovyc] Compiling 106 source files to /app/.grails/1.3.7/projects/build_28p9jo3vo48wb/plugin-classes
     [groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
     [groovyc] /app/.grails/1.3.7/projects/build_28p9jo3vo48wb/plugins/heroku-1.0/grails-app/taglib/grails/plugin/heroku/HerokuTagLib.groovy: 17: unable to resolve class grails.plugin.cloudsupport.Abstr

actCloudTagLib [groovyc] @ line 17, column 1. [groovyc] import grails.plugin.cloudsupport.AbstractCloudTagLib [groovyc] ^ [groovyc]

I too had this problem with grails 1.3.7.

As suggested by Burt, adding the following to your BuildConfig.groovy will resolve the problem:

compile ':cloud-support:1.0.8'

I've followed the Basic Tutorial of Burt's here , after the above was added, my web-app compiled and deployed to Heroku successfully.

Installing the cloud-support plugin is the fix. Try running grails clean and grails compile to get it to resolve the dependencies.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM