在Grails中加载UrlMappingsPlugin时出错 [英] Error loading UrlMappingsPlugin in Grails

查看:95
本文介绍了在Grails中加载UrlMappingsPlugin时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


当加载插件管理器时出错:无法创建类
的新实例[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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆