在Grails中加载UrlMappingsPlugin时出错 [英] Error loading UrlMappingsPlugin in Grails
问题描述
当加载插件管理器时出错:无法创建类
的新实例[org.codehaus.groovy.grails.plugins.web.mapping.UrlMappingsGrailsPlugin]!
(使用--stacktrace查看完整跟踪)
Grails 2.4.3版本
这个问题的解决方案是添加tomcat插件(不知道为什么):
将此添加到BuildConfig.groovy:
$ p $ build:tomcat:7.0.55
然后,您可能需要使用 grails create-pom
来重新生成pom.xml文件。
这似乎与这个bug 。
When creating a basic grails plugin and compiling with Maven, I get this error message:
Error loading plugin manager: Could not create a new instance of class [org.codehaus.groovy.grails.plugins.web.mapping.UrlMappingsGrailsPlugin]! (Use --stacktrace to see the full trace)
Grails version 2.4.3
The solution to this issue is to add the tomcat plugin (no idea why):
Add this to BuildConfig.groovy:
build ":tomcat:7.0.55"
Then you may need to regenerate the pom.xml file using grails create-pom
.
This appears to be related to this bug.
这篇关于在Grails中加载UrlMappingsPlugin时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!