grails-plugin

How to easily implement “who is online” in Grails or Java Application?

家住魔仙堡 提交于 2019-11-27 18:53:27
I am building a community website in grails (using Apache Shiro for security and authentication system) and I would like to implement the feature "who is online?". This url http://cksource.com/forums/viewonline.php (see snapshot below if you do not have acess to this Url) gives an example of what I would like to achieve. How can I do that in the most simple way? Is there any existing solution in Grails or in Java ? Thank you. Snapshot : Snapshot of Who is online page http://www.freeimagehosting.net/uploads/th.2de8468a86.png or see here : http://www.freeimagehosting.net/image.php?2de8468a86.png

grails-2.3.7 plugins/repository not found

冷暖自知 提交于 2019-11-27 18:33:58
问题 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

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 use grails.plugin.location?

痴心易碎 提交于 2019-11-27 08:44:50
I have a plugin project which I created as grails create-plugin myPlugin . I also created a 'normal' grails project as grails create-app myPluginDemo . I'm trying to install myPlugin plugin in myPluginDemo but don't understand how to use grails.plugin.location . Where do I put grails.plugin.location inside BuildConfig.groovy ? Inside plugins section? Inside repositories section? What should I append to grails.plugin.location ? Should it be grails.plugin.location.myPlugin ? Or grails.plugin.location.grails-my-plugin ? Something else? dmahapatro grails.plugin.location is not a dependency

Grails Spring Security max concurrent session

雨燕双飞 提交于 2019-11-27 08:13:28
问题 I have grails 2.5.1 app with spring security plugin(2.0-RC5). I would like to block the number of current session per user. I have read some blog and it doesn't work.(http://www.block-consult.com/blog/2012/01/20/restricting-concurrent-user-sessions-in-grails-2-using-spring-security-core-plugin/) my resources.groovy beans = { sessionRegistry(SessionRegistryImpl) concurrencyFilter(ConcurrentSessionFilter,sessionRegistry,'/main/index'){ logoutHandlers = [ref("rememberMeServices"), ref(

Grails 3 and Spring Security Plugin

╄→гoц情女王★ 提交于 2019-11-27 01:19:24
问题 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

How to easily implement “who is online” in Grails or Java Application?

丶灬走出姿态 提交于 2019-11-26 22:44:45
问题 I am building a community website in grails (using Apache Shiro for security and authentication system) and I would like to implement the feature "who is online?". This url http://cksource.com/forums/viewonline.php (see snapshot below if you do not have acess to this Url) gives an example of what I would like to achieve. How can I do that in the most simple way? Is there any existing solution in Grails or in Java ? Thank you. Snapshot : Snapshot of Who is online page http://www

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