grails-2.0

com.amazonaws.services.s3.model.AmazonS3Exception: Forbidden (Service: Amazon S3; Status Code: 403; Error Code: 403 Forbidden; Request ID: XXXXXXXX)

雨燕双飞 提交于 2019-11-28 04:07:39
问题 From few days back i am receiving this exception when i try to push files to my S3Bucket. Ealier everything seems to work and i am sure there is no code changes from my side. com.amazonaws.services.s3.model.AmazonS3Exception: Forbidden (Service: Amazon S3; Status Code: 403; Error Code: 403 Forbidden; Request ID: XXXXXXXXXXXX), S3 Extended Request ID: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1077) at

Avoid cyclic reference inheritance in grails

感情迁移 提交于 2019-11-28 03:39:52
问题 I have a big project written in Grails 2.3.8. Sometimes when I deploy it using my CI I got this message: Unable to complete the scan for annotations for web application [/ProjectName##1152] due to a StackOverflowError. Possible root causes include a too low setting for -Xss and illegal cyclic inheritance dependencies. The class hierarchy being processed was [org.bouncycastle.asn1.ASN1EncodableVector->org.bouncycastle.asn1.DEREncodableVector->org.bouncycastle.asn1.ASN1EncodableVector] I have

Grails 2.x service injection in Groovy/src

南楼画角 提交于 2019-11-27 22:16:47
问题 I'd like to inject my service in Groovy/src class. The normaln dependency injection doesn't work: ... def myService ... I'm able to use this (it works): def appCtx = ApplicationHolder.application.getMainContext() def myService = appCtx.getBean("myService"); but the ApplicationHolder is deprecated. Is there any better solution? Thanks for any suggestion 回答1: Check following Grails FAQ to get access to the application context from sources in src/groovy - http://grails.org/FAQ#Q: How do I get

How to run a local plugin in Grails 2.0?

半腔热情 提交于 2019-11-27 14:01:28
In Grails, there is a variant how to include local plugin from sources. According to docs, one may type in BuildConfig.groovy : // Useful to test plugins you are developing. grails.plugin.location.shiro = "/home/dilbert/dev/plugins/grails-shiro" // Useful for modular applications where all plugins and // applications are in the same directory. grails.plugin.location.'grails-ui' = "../grails-grails-ui" The problem is that it doesn't work in Grails 2.0.RC1. I've tried to do grails clean , to install plugin with grails install-plugin and to place it to BuildConfig.groovy . Still unable to resolve

How to access Grails configuration in Grails 2.0?

China☆狼群 提交于 2019-11-27 06:10:08
I have obtained the latest Grails 2.0 milestone, and I am seeing a deprecation warning for the ConfigurationHolder class: org.codehaus.groovy.grails.commons.ConfigurationHolder The deprecation message simply says "Use dependency injection instead" which is not very helpful to me. I understand dependency injection, but how can I wire up a bean with the proper Grails configuration so I can access it at runtime? I need to access the configuration from places other than my Controllers and Tags (such as BootStrap ). Rob Hruska If you need it in an artifact that supports dependency injection, simply

How to run a local plugin in Grails 2.0?

非 Y 不嫁゛ 提交于 2019-11-26 18:21:45
问题 In Grails, there is a variant how to include local plugin from sources. According to docs, one may type in BuildConfig.groovy : // Useful to test plugins you are developing. grails.plugin.location.shiro = "/home/dilbert/dev/plugins/grails-shiro" // Useful for modular applications where all plugins and // applications are in the same directory. grails.plugin.location.'grails-ui' = "../grails-grails-ui" The problem is that it doesn't work in Grails 2.0.RC1. I've tried to do grails clean , to

How to access Grails configuration in Grails 2.0?

强颜欢笑 提交于 2019-11-26 11:55:19
问题 I have obtained the latest Grails 2.0 milestone, and I am seeing a deprecation warning for the ConfigurationHolder class: org.codehaus.groovy.grails.commons.ConfigurationHolder The deprecation message simply says \"Use dependency injection instead\" which is not very helpful to me. I understand dependency injection, but how can I wire up a bean with the proper Grails configuration so I can access it at runtime? I need to access the configuration from places other than my Controllers and Tags