Quantcast

spring security ui grails plugin - couldn't make it work!

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

spring security ui grails plugin - couldn't make it work!

soumya
This post has NOT been accepted by the mailing list yet.
This post was updated on .
I was using the latest spring security to login/logout and was able to do role management (admin/general user). I wanted to integrate forgot password and new user registration using spring security ui. Since I installed the s2ui plugin, I cannot login and get this error when I click the login link. My RegisterController is empty except that it extends grails.plugins.springsecurity.ui.RegisterController.
 
Any help is greatly appreciated - there must be some thing that I am missing? Sorry if it has been addressed, I am a beginner and there is a great post that lists the steps to integrate and I followed it, still couldn't resolve.  Thanks in advance.

There are the plugins that I have currently, is it a plugin conflict between fullcalendar and s2ui for jquery plugin use? I have seen the documentation states, s2ui requires a different version 1.8.7 where fullcalendar requires 1.8.2 and prompts to modify to 1.8.2 during startup (grails run-app).

email-confirmation  1.0.5            --  Email Confirmation
famfamfam           1.0              --  Silk icons from famfamfam.com
full-calendar       1.5.1.0          --  FullCalendar
hibernate           2.0.3            --  Hibernate for Grails
joda-time           1.4              --  Joda-Time Plugin
jquery              1.7.1            --  JQuery for Grails
jquery-ui           1.8.2.1          --  jQuery UI resources
mail                1.0              --  Provides Mail support to a runninls application
quartz              1.0-RC2          --  Quartz plugin for Grails
resources           1.1.5            --  Resources
spring-security-core1.2              --  Spring Security Core Plugin
spring-security-ui  0.2              --  Spring Security UI

---------------------------------------------------------------------------
org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error applying layout : register
        java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        java.lang.Thread.run(Thread.java:662)

root cause

org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error processing GroovyPageView: Error executing tag <s2ui:resources>: No module found with name [jquery-ui]
        java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        java.lang.Thread.run(Thread.java:662)

root cause

org.codehaus.groovy.grails.web.taglib.exceptions.GrailsTagException: Error executing tag <s2ui:resources>: No module found with name [jquery-ui]
<myproj>_plugins_spring_security_ui_0_2_grails_app_views_layouts_register_gsp$_run_closure1.doCall( <myproj>_plugins_spring_security_ui_0_2_grails_app_views_layouts_register_gsp:27)
<myproj>_plugins_spring_security_ui_0_2_grails_app_views_layouts_register_gsp.run( <myproj>_plugins_spring_security_ui_0_2_grails_app_views_layouts_register_gsp:32)
        java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        java.lang.Thread.run(Thread.java:662)

root cause

java.lang.IllegalArgumentException: No module found with name [jquery-ui]
        org.grails.plugin.resource.ResourceProcessor.getAllModuleNamesRequired(ResourceProcessor.groovy:1083)
        org.grails.plugin.resource.ResourceProcessor.getAllModuleNamesRequired(ResourceProcessor.groovy:1101)
        org.grails.plugin.resource.ResourceTagLib$_closure6.doCall(ResourceTagLib.groovy:375)
        grails.plugins.springsecurity.ui.SecurityUiTagLib$_closure1.doCall(SecurityUiTagLib.groovy:54)<myproj>_plugins_spring_security_ui_0_2_grails_app_views_layouts_register_gsp$_run_closure1.doCall( <myproj>_plugins_spring_security_ui_0_2_grails_app_views_layouts_register_gsp:27)
<myproj>_plugins_spring_security_ui_0_2_grails_app_views_layouts_register_gsp.run( <myproj>_plugins_spring_security_ui_0_2_grails_app_views_layouts_register_gsp:32)
        java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        java.lang.Thread.run(Thread.java:662)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: spring security ui grails plugin - couldn't make it work!

soumya
This post has NOT been accepted by the mailing list yet.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: spring security ui grails plugin - couldn't make it work!

kktec1
In reply to this post by soumya
I am using Spring Security, JQueryUI, and FullCalendar without problems. However, I am NOT using the JQueryUI or FullCalendar Grails plugins. I am also NOT using the s2 ui plugin.

s2ui declares that jquery-ui 1.8.7 is a minimum version.

I find that using Grails plugins that only provide js/css resources and perhaps some convenience taglibs are more trouble than they are worth as they too often lock you into specific versions.I think it's better to simply deploy whatever versions of these resources I want in appropriate web-app folders and reference them as modules declared in ApplicationResources.groovy, i.e.:
modules = {
    application { resource url: 'js/application.js' }

    jtp { resource url: 'css/attachments.css' }
	
    jqui {
	dependsOn 'jquery'
	resource url: 'css/smoothness/jquery-ui-1.9.1.custom.min.css'
	resource url: 'js/jquery-ui-1.9.1.custom.min.js'
    }
	
    jtpUploader {
        resource url: 'js/jtp_uploader.js'
        resource url: 'css/jtp_uploader.css'
    }
	
	dataTables {
		dependsOn 'jqui, jtp'
        resource url: 'js/jquery.dataTables-1.9.3.min.js'
        resource url: 'js/FixedColumns-2.0.3.min.js'
	}
	
	calendar {
		dependsOn 'jqui, jtp'
        resource url: 'js/fullcalendar-1.5.4.min.js'
        resource url: 'css/fullcalendar.css'
	}
}


As you can see, I am using FullCalendar 1.5.4 and jquery-ui 1.9.1.

I hope that helps.

ken
Loading...