简体   繁体   English

grails heroku插件-无法解析类grails.plugin.cloudsupport.AbstractCloudTagLib

[英]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. 对于每个线程 ,我卸载了heroku插件,安装了cloud-support插件,然后重新安装了heroku插件。 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. 我在插件上为此输入了JIRA,但要在此处发布,以便轻松参考grails员工能够提供的任何解决方案,或者需要就问题/解决方案进行对话的情况。

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 [mkdir]创建的目录:/app/.grails/1.3.7/projects/build_36v61myh1movb/plugins/tomcat-1.3.7 [unzip]展开:/app/tmp/repo.git/.cache/cache/org.grails。 plugins / tomcat / zips / tomcat-1.3.7.zip插入

/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- /app/.grails/1.3.7/projects/build_36v61myh1movb/plugins/tomcat-1.3.7将插件tomcat-1.3.7安装到位置/app/.grails/1.3.7/projects/build_36v61myh1movb/plugins/tomcat-

1.3.7. 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- ...执行tomcat-1.3.7插件安装后脚本...已安装tomcat-1.3.7插件已安装插件提供以下新脚本:------------------- ----------------------- grails tomcat [mkdir]创建的目录:/app/.grails/1.3.7/projects/build_36v61myh1movb/plugin-classes [groovyc ]将106个源文件编译到/app/.grails/1.3.7/projects/build_36v61myh1movb/plugin-classes [groovyc] org.codehaus.groovy.control.MultipleCompilationErrorsException:启动失败:[groovyc] /app/.grails/1.3。 7 /项目/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:17:无法解析类grails.plugin.cloudsupport.AbstractCloudTagLib [ groovyc ] @第17行,第1列。[groovyc]导入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- app / taglib / grails / plugin / heroku / HerokuTagLib.groovy:22:无法解析class grails.plugin.cloudsupport.Abstr actCloudTagLib [groovyc] @第22行,第1列。[groovyc]类HerokuTagLib扩展了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 1.0 / src / groovy / grails / plugin / heroku / HerokuBeanPostprocessor.groovy:17:无法解析类

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- grails.plugin.cloudsupport.bstractCloudBeanPostprocessor [groovyc] @第17行,第1列。[groovyc]导入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 1.0 / src / groovy / grails / plugin / heroku / HerokuBeanPostprocessor.groovy:27:无法解析类

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- grails.plugin.cloudsupport.A bstractCloudBeanPostprocessor [groovyc] @第27行,第1列。[groovyc]类HerokuBeanPostprocessor扩展了AbstractCloudBeanPostprocessor {[groovyc] ^ [groovyc] [groovyc] /app/.grails/1.3.7/projects/build_36v61myh1movb/插件/ heroku-

1.0/src/groovy/grails/plugin/heroku/HerokuMongoBeanConfigurer.groovy: 17: unable to resolve class 1.0 / src / groovy / grails / plugin / heroku / HerokuMongoBeanConfigurer.groovy:17:无法解析类

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- grails.plugin.cloudsupport .AbstractMongoBeanConfigurer [groovyc] @第17行,第1列。[groovyc]导入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 1.0 / src / groovy / grails / plugin / heroku / HerokuMongoBeanConfigurer.groovy:24:无法解析类

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 grails.plugin.cloudsupport .AbstractMongoBeanConfigurer [groovyc] @第24行,第1列。[groovyc]类HerokuMongoBeanConfigurer扩展了AbstractMongoBeanConfigurer {[groovyc] ^ [groovyc] [groovyc] 6个错误执行脚本错误编译::编译失败:编译失败.gant的.Gant $ _dispatch_closure5.doCall(Gant.groovy:391).gant的Gant $ _dispatch_closure7.doCall(Gant.groovy:415).gant.Gant $ _dispatch_closure7.doCall(Gant.groovy)在gant.Gant.withBuildListeners(Gant。 groovy:427)at gant.Gant.gant.this $ 2 $ withBuildListeners(Gant.groovy)at gant.Gant $ this $ 2 $ withBuildListeners.callCurrent(未知源)at gant.Gant.dispatch(Gant.groovy:415)at gant.Gant 。此$ 2 $ dispatch(Gant.groovy)在gant.Gant.invokeMethod(Gant.groovy)在gant.Gant.executeTargets(Gant.groovy:590)在gant.Gant.executeTargets(Gant.groovy:589)原因: :编译在org.apache.tools.an上的org.codehaus.groovy.ant.Groovyc.execute(Groovyc.java:607)上的org.codehaus.groovy.ant.Groovyc.compile(Groovyc.java:920)失败 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- org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)处的t.UnknownElement.execute(UnknownElement.java:288)在Compile $ _run_closure4_closure10.doCall(Compile:117)处在Compile $ _run_closure4_closure10.doCall (编译)在Compile $ _run_closure10.doCall(编译:280)在编译$$ run_closure10.call(编译)在Compile $ _run_closure4.doCall(编译:104)在编译$ _run_closure3.doCall(编译:69)在gant.Gant $ _dispatch_closure5.doCall(Gant.groovy:381)...还有10个原因:org.codehaus.groovy.control.MultipleCompilationErrorsException:启动失败:/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 app / taglib / grails / plugin / heroku / HerokuTagLib.groovy:17:无法解析类

grails.plugin.cloudsupport.AbstractCloudTagLib grails.plugin.cloudsupport.AbstractCloudTagLib



Problems before this, note git push gives me no opportunity to respond to the [y,n] prompts: 在此之前的问题,请注意git push没有给我机会来响应[y,n]提示:

   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] actCloudTagLib [groovyc] @第17行,第1列。[groovyc]导入grails.plugin.cloudsupport.AbstractCloudTagLib [groovyc] ^ [groovyc]

I too had this problem with grails 1.3.7. 我也有grails 1.3.7这个问题。

As suggested by Burt, adding the following to your BuildConfig.groovy will resolve the problem: 根据Burt的建议,将以下内容添加到BuildConfig.groovy将解决此问题:

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. 添加了以上内容之后,我一直在这里学习 Burt的基础教程,然后将我的Web应用程序成功编译并部署到Heroku。

Installing the cloud-support plugin is the fix. 解决方法是安装云支持插件。 Try running grails clean and grails compile to get it to resolve the dependencies. 尝试运行grails clean并通过grails compile以解决依赖关系。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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