我有一个Grails 2.2.4项目,我正在升级到Grails 2.4.3。我认为,我大部分时间都在处理依赖项的更改,只是我们的本地jars再也没有解决问题了。
具体来说,我们的项目依赖于lib目录中的几个jars -例如,newrelic-api-2.18.0.jar。每当我试图编译该项目时,都会得到以下错误:
| Error Resolve error obtaining dependencies: The following artifacts could not be resolved: newrelic:newrelic-api:jar:2.18.0 in grailsCentr
我使用的是来自grails平台核心的导航api。我正在尝试获取一个会话变量,该变量将用于其中一个链接的标题(人名)。根据可见性和状态部分中的文档:
The closures receive a delegate which resolves the following standard Grails properties:
grailsApplication
pageScope
session
request
controllerName
actionName
flash
params
这似乎表明我将在navigation.groovy中拥有可用的会话。在我的navigation.groov
我有一个测试,其中gsp使用了Asset Pipeline标签assetPath,在grails 2中我没有问题,但在grails 3中我得到了一个org.grails.taglib.GrailsTagException: [SOME_GSP.gsp:184] Error executing tag <g:form>: Error evaluating expression [assetPath(src: 'SOME_PDF.pdf')] on line [60]: No signature of method: SOME_GSP_gsp.assetPath() i
我正在制作一个Grails插件和几个Grails应用程序来使用这个插件。
我想定义一些属性,并在插件中给它们默认设置,但允许应用程序覆盖它们的值(可选)。这个问题围绕着如何以这种方式连接插件和子应用程序的机械细节。
假设我希望插件(grails-myplugin)在其Config.groovy中定义以下属性
myplugin {
fizz {
whistles = true // Default for all child apps using this plugin
buzz = 3 // Default for all child
我正在尝试将我的grails项目从grails 1.1.1升级到grails 1.2.1。当我尝试运行我的应用程序时,我得到以下错误消息:
I am using java 1.7._09 and GGTS 3.6.4.
这是我的application.properties文件:
when I am trying to add tomcat 1.2.1 in my application.properties file I am getting below error:
我的GGTS使用的是默认的groovy编译器2.3。我需要更换groovy编译器吗?
我在谷歌上搜索过,但我不明白:
问题
我正在尝试升级一个grails应用程序,从2.3.4升级到2.4.3,方法是按照这个链接上的说明进行。
我似乎无法做到这一点。我在编译时得到一个找不到GrailsResourceLoaderFactoryBean初始化错误。据我所知,这在Grails2.4中不再存在,但它仍然想要它。我确保我的applicationContext.xml与从全新项目中生成的完全相同,而且错误仍然发生。
我已经尝试过的
1/ grails set-grails-version 2.4.3更新了应用程序属性
2然后将以下内容添加到我的BuildConfig中
// plugins for the bu
我刚刚安装了Grails 3.2.9,这里是grails -version的输出
Grails Version: 3.2.9
Groovy Version: 2.4.10
JVM Version: 1.8.0_131
尝试从Eclipse Luna 4.4.2生成New Grails project,但出现此错误
Command terminated with an exception:
org.grails.ide.eclipse.longrunning.client.GrailsProcessDiedException: Grails
process died (see det
我正在尝试从grails 1.2.2迁移到1.3.6,在尝试访问页面时遇到以下错误:
Error creating bean with name 'com.example.domain.UserAccount': Requested bean is currently in creation: Is there an unresolvable circular reference?
似乎grails试图将UserAccount实例化为spring bean (可能是为了能够注入一些依赖项)。
是否有一些出现在grails 1.3.x上的约束与1.2.x无关?
感谢并致敬,
大卫
Grails2.4.3,spring-security-core:2.0-RC4和hibernate4:4.3.6.1(或者hibernate4:4.3.5.5):Config.groovy
// Added by the Spring Security Core plugin:
grails.plugin.springsecurity.userLookup.userDomainClassName = 'org.myapp.secure.SecUser'
grails.plugin.springsecurity.userLookup.authorityJoinClassName
我有grails申请。它是用grails1.3.7编写的,后来升级为grails2.2.4。每次第一次运行它时(例如,在另一台计算机上清除安装之后或在删除.grails dir中的项目文件夹后),都会收到以下错误:
Caused by IllegalArgumentException: [Assertion failed] - this expression must be true
->> 340 | newInstance in org.grails.plugin.config.AbstractConfigHelper$ConfigObjectProxy
- - - - -