Results 1 to 9 of 9

Thread: spring-security-ui on 2.0.0.RC3 transitive-metadata warning and webxml error

  1. #1
    Join Date
    Dec 2011
    Posts
    9

    Default spring-security-ui on 2.0.0.RC3 transitive-metadata warning and webxml error

    While testing 2.0.0.RC3, I'm not able to install and use spring-security-ui plugin.
    During installation into a fresh grails-2.0.0.RC3 project, I receive:

    Code:
    grails install-plugin spring-security-ui
    | Resolving plugin JAR dependencies
    | Warning 
                Plugin declares a runtime dependency on plugin [mail: 0.9 > *] but does not define the plugin within its transitive metadata. Contact the plugin author to fix this problem or declare the plugin yourself inside BuildConfig.groovy. Example:
                ...
                plugins {
                   compile ":mail:0.9 > *"
                }
    | Warning 
                Plugin declares a runtime dependency on plugin [jquery-ui: 1.8.2.3 > *] but does not define the plugin within its transitive metadata. Contact the plugin author to fix this problem or declare the plugin yourself inside BuildConfig.groovy. Example:
                ...
                plugins {
                   compile ":jquery-ui:1.8.2.3 > *"
                }
    | Warning 
                Plugin declares a runtime dependency on plugin [famfamfam: 1.0 > *] but does not define the plugin within its transitive metadata. Contact the plugin author to fix this problem or declare the plugin yourself inside BuildConfig.groovy. Example:
                ...
                plugins {
                   compile ":famfamfam:1.0 > *"
                }
    | Plugin installed.
    Afterwards on run-app I receive:

    Code:
    grails run-app
    | Resolving plugin JAR dependencies...
    > You currently already have a version of the plugin installed [webxml-1.4]. Do you want to update to [webxml-1.3.1]? [y,n] y
    | Resolving plugin JAR dependencies.....
    | Error Fatal error during compilation org.apache.tools.ant.BuildException: srcdir "/Users/test/.grails/2.0.0.RC3/projects/foo-test/plugins/webxml-1.4/grails-app/conf" does not exist! (Use --stacktrace to see the full trace)
    Another try of running:

    Code:
    grails run-app
    | Packaging Grails application
    > You currently already have a version of the plugin installed [webxml-1.3.1]. Do you want to update to [webxml-1.4]? [y,n] y
    | Resolving plugin JAR dependencies.....
    > You currently already have a version of the plugin installed [webxml-1.4]. Do you want to update to [webxml-1.3.1]? [y,n] n
    | Compiling 2 source files...
    | Error Fatal error during compilation org.apache.tools.ant.BuildException: srcdir "/Users/test/.grails/2.0.0.RC3/projects/foo-test/plugins/webxml-1.3.1/src/groovy" does not exist! (Use --stacktrace to see the full trace)
    So it seems like a dependency collision on webxml, also.

    Any idea how to fix this?

  2. #2
    Join Date
    Jun 2010
    Location
    London
    Posts
    304

    Default

    In your BuildConfig.groovy, use:

    Code:
    plugins {
        runtime ":resources:1.1.3", {
            excludes "webxml"
        }
    }
    We're looking into this issue and will have it fixed by the final release of Grails 2.

  3. #3
    Join Date
    Jun 2010
    Location
    London
    Posts
    304

    Default

    Actually, we're struggling to reproduce this, even though one committer has encountered it. What exactly do you do after installing the Spring Security UI plugin and receive those warnings/errors? Do you just execute
    Code:
    grails run-app
    straight away?

  4. #4
    Join Date
    Dec 2011
    Posts
    9

    Default

    Thanks for the quick reply.

    I added the workaround as mentioned and installed spring-security-core into the project without an issue.

    But the spring-security-ui plugin still complains:

    > grails install-plugin spring-security-ui
    | Resolving plugin JAR dependencies
    | Warning
    Plugin declares a runtime dependency on plugin [mail: 0.9 > *] but does not define the plugin within its transitive metadata. Contact the plugin author to fix this problem or declare the plugin yourself inside BuildConfig.groovy. Example:
    ...
    plugins {
    compile ":mail:0.9 > *"
    }

    | Warning
    Plugin declares a runtime dependency on plugin [jquery-ui: 1.8.2.3 > *] but does not define the plugin within its transitive metadata. Contact the plugin author to fix this problem or declare the plugin yourself inside BuildConfig.groovy. Example:
    ...
    plugins {
    compile ":jquery-ui:1.8.2.3 > *"
    }

    | Warning
    Plugin declares a runtime dependency on plugin [famfamfam: 1.0 > *] but does not define the plugin within its transitive metadata. Contact the plugin author to fix this problem or declare the plugin yourself inside BuildConfig.groovy. Example:
    ...
    plugins {
    compile ":famfamfam:1.0 > *"
    }

    | Plugin installed.

  5. #5
    Join Date
    Dec 2011
    Posts
    9

    Default

    Well, the warnings occur during installation of spring-security-ui and the errors during "grails run-app".

    I'm on OSX Lion 10.7.2, Java 1.6.0_29.

    Installing on shell, not in STS.

  6. #6
    Join Date
    Jun 2010
    Location
    London
    Posts
    304

    Default

    The Spring Security UI plugin needs updating. Those warning messages explain how to get your application working, i.e. by explicitly declaring the dependencies in your application.

    Thanks for the extra info. We have managed to reproduce the problem and it seems it's already been fixed in Grails HEAD. Still doing some verification, but it will be working for the 2.0 final release.

  7. #7
    Join Date
    Dec 2011
    Posts
    9

    Default

    Managed to get it working by explicitly installing the 3 plugins manually.

    One additional question:
    When installing spring-security-ui, spring-security-core is not installed as a dependent plugin, here.
    Shouldn't it be installed automatically?

  8. #8
    Join Date
    Jan 2011
    Posts
    10

    Default

    Hi all,

    I am trying to get the spring-security-ui plugin working with grails 2.0. I installed the required plugins manually but when I try to run the app famfamfam, mail and spring-security-ui plugins get uninstalled.

    Is anybody else having the same problem?
    Last edited by Admir; Dec 21st, 2011 at 06:41 AM.

  9. #9

    Default Caused by IllegalArgumentException: No module found with name [jquery-ui]

    I'm starting to test spring-security-ui and I've got the following error.

    org.codehaus.groovy.grails.web.pages.exceptions.Gr oovyPagesException: Error applying layout : springSecurityUI
    java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:886)
    java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:908)
    java.lang.Thread.run(Thread.java:619)

    root cause

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

    root cause

    org.codehaus.groovy.grails.web.taglib.exceptions.G railsTagException: Error executing tag <s2ui:resources>: No module found with name [jquery-ui]
    C__Users_eduardo__grails_2_0_0_projects_Intranet_p lugins_spring_security_ui_0_2_grails_app_views_lay outs_springSecurityUI_gsp$_run_closure1.doCall(spr ingSecurityUI.gsp:16)
    C__Users_eduardo__grails_2_0_0_projects_Intranet_p lugins_spring_security_ui_0_2_grails_app_views_lay outs_springSecurityUI_gsp.run(springSecurityUI.gsp :25)
    java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:886)
    java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:908)
    java.lang.Thread.run(Thread.java:619)

    root cause

    java.lang.IllegalArgumentException: No module found with name [jquery-ui]
    org.grails.plugin.resource.ResourceProcessor.getAl lModuleNamesRequired(ResourceProcessor.groovy:1083 )
    org.grails.plugin.resource.ResourceProcessor.getAl lModuleNamesRequired(ResourceProcessor.groovy:1101 )
    org.grails.plugin.resource.ResourceTagLib$_closure 6.doCall(ResourceTagLib.groovy:375)
    grails.plugins.springsecurity.ui.SecurityUiTagLib$ _closure1.doCall(SecurityUiTagLib.groovy:32)
    C__Users_eduardo__grails_2_0_0_projects_Intranet_p lugins_spring_security_ui_0_2_grails_app_views_lay outs_springSecurityUI_gsp$_run_closure1.doCall(spr ingSecurityUI.gsp:16)
    C__Users_eduardo__grails_2_0_0_projects_Intranet_p lugins_spring_security_ui_0_2_grails_app_views_lay outs_springSecurityUI_gsp.run(springSecurityUI.gsp :25)
    java.util.concurrent.ThreadPoolExecutor$Worker.run Task(ThreadPoolExecutor.java:886)
    java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:908)
    java.lang.Thread.run(Thread.java:619)

    note The full stack trace of the root cause is available in the Apache Tomcat/7.0.16 logs.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •