grails-plugin

grails-2.3.7 plugins/repository not found

此生再无相见时 提交于 2019-11-29 04:35:52
Suddenly my Grails application having error by causing of some plugins are not found. I think the repository has been removed or move somewhere. Code on my BuildConfig.groovy: log "warn" checksums true legacyResolve false ..... compile ":db-reverse-engineer:0.5" compile ":cache:1.0.1" compile ":jaxrs:0.10" compile ":jasper:1.8.0" ..... Having Error on my Grails Apps from today: Error | Resolve error obtaining dependencies: Failed to resolve dependencies (Set log level to 'warn' in BuildConfig.groovy for more information): - org.grails.plugins:db-reverse-engineer:0.5 - org.grails.plugins:jaxrs

Error Failed to resolve dependencies grails

↘锁芯ラ 提交于 2019-11-29 02:10:59
问题 I get Error Failed to resolve dependencies error when I try to run, clean, or compile. My BuildConfig.groovy file is as follows: grails.servlet.version = "2.5" // Change depending on target container compliance (2.5 or 3.0) grails.project.class.dir = "target/classes" grails.project.test.class.dir = "target/test-classes" grails.project.test.reports.dir = "target/test-reports" grails.project.target.level = 1.6 grails.project.source.level = 1.6 //grails.project.war.file = "target/${appName}-$

“Error loading plugin manager: TomcatGrailsPlugin” on Grails 2.3 Database Migration

我是研究僧i 提交于 2019-11-28 18:59:47
I use Grails 2.3 and the Grails database migration plugin (1.3.6). When I do grails dbm-update I get the following error. How can I solve this error? Error Error loading plugin manager: TomcatGrailsPlugin (NOTE: Stack trace has been filtered. Use --verbose to see entire trace.) java.lang.ClassNotFoundException: TomcatGrailsPlugin at _GrailsBootstrap_groovy$_run_closure2.doCall(_GrailsBootstrap_groovy:40) at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) at org.codehaus.gant.GantBinding$_initializeGantBinding_closure5_closure16_closure18.doCall(GantBinding.groovy:185) at

Grails Spring Security: redirect after login success/failure

南笙酒味 提交于 2019-11-28 18:25:40
I'm using version 1.2 of the Spring Security plugin in a Grails application. I want login attempts to be handled in the following way: Success if the login was triggered by an attempt to access a protected page, send them to that page if the user logged in "directly" redirect them back to the home page Failure Send them to a "try again" login page and populate the form thereon with the invalid login details they entered (except for the password fields). This "try again" login page is not the same page that they use to login the first time I've had a look at the Events section of the plugin's

GRAILS: how to get the number of currently signed in users via spring security core plugin?

假装没事ソ 提交于 2019-11-28 08:50:26
my problem is, that i want to limit the number of users that can simultaneously be logged in my application (this value is stored in the database). first i tried to do that with some configuration in tomcat or other web containers - but there´s the problem, that a session is used also if a user is not logged in (displaying the login page also needs a session in tomcat)... so i need to check how many users are "really" logged in. i´ve found quite a lot code examples for the acegi plugin, but nothing really helpful about the springsecurity core plugin. my snippets so far: in resources.groovy i

How do I configure logging for a grails plugin?

若如初见. 提交于 2019-11-28 07:23:20
问题 I'm creating my first grails plugin and I don't know where the logging should be configured. In a normal grails app, there is a conf/Config.groovy file for that, but for a plugin there is none. Is there another way to achieve this ? I would like to see debug messages when I launch my plugin unit and integration tests... Thanks in advance. Philippe 回答1: The create-plugin script doesn't create a Config.groovy but if you create one yourself it will be used. Don't copy one from an existing app

Grails 3 and Spring Security Plugin

ⅰ亾dé卋堺 提交于 2019-11-28 06:23:05
I've just recently started working with Grails, and I'd like to test out the Spring Security Plugin. I'm using Grails v3.0.0RC2, and I'm finding it difficult to come across accurate documentation for it with a lot of things. I'm looking at the Grails page for the Spring Security Plugin, located at http://grails.org/plugin/spring-security-core , and it tells me to add the following to grails-app/conf/BuildConfig plugins { … compile ':spring-security-core:2.0-RC4' … } Now, Grails 3 has done away with the BuildConfig, and moved over to using Gradle. So I figured I could just that compile line to

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

jquery-ui autocomplete in grails

喜你入骨 提交于 2019-11-28 01:47:06
问题 Can anyone give me the complete steps to work with jquery-ui autocomplete. I am using grails 2.0.1. I need a complete example including code for controller and views. Thanks in advance. 回答1: At first you need to add in your main.gsp (in head) this to lines <g:javascript library="jquery"/> <g:javascript library="jquery-ui"/> the plugin will downloaded automatically. and for complete example you can use this link http://jay-chandran.blogspot.com/2011/09/using-grails-with-jquery-autocomplete

Quartz job triggering from Config.groovy

本小妞迷上赌 提交于 2019-11-27 22:47:02
问题 I have the following Quartz job running in my application: class ScraperJob { def scraperService static triggers = { cron name: 'scraperTrigger', cronExpression: "0 0 * * * ?" // run every minute } def execute(){ try { scraperService.storing() log.info "${new Date()} - Scraping went smoothly." } catch(IOException) { // Connexion problem log.error "${new Date()} - Method: parsing >> Connexion down or interrupted while parsing !" } catch(SAXException) { // Any SAXParser exception log.error "$