Announcement Announcement Module
Collapse
No announcement yet.
Unable to install Spring Security plug-in Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Unable to install Spring Security plug-in

    Hi,

    I tried to install the security plug-in but its failing at the point where it tries to grab the dependencies.

    I'm not sure if this is a configuration issue on my machine or that the URLs listed are not accurate. Does Grails use Maven or Ivy? If it's Ivy, do I need to configure the proxy somewhere? Maven is working perfectly on my machine.

    The error output is below.


    <SOME FOLDER>\eclipse-workspaces\sts-2.3.2\OCM>grails install-plugin d:\grails-spring-secur
    ity-core-1.0.1.zip
    Welcome to Grails 1.3.4 - http://grails.org/
    Licensed under Apache Standard License 2.0
    Grails home is set to: D:\Programs\grails-1.3.4

    Base Directory: <SOME FOLDER>\eclipse-workspaces\sts-2.3.2\OCM
    Resolving dependencies...
    Dependencies resolved in 3875ms.
    Running script D:\Programs\grails-1.3.4\scripts\InstallPlugin.groovy
    Environment set to development
    Installing zip d:\grails-spring-security-core-1.0.1.zip... ...
    [mkdir] Created dir: <SOME FOLDER>\.grails\1.3.4\projects\OCM\plugins\spring-security-c
    ore-1.0.1
    [unzip] Expanding: d:\grails-spring-security-core-1.0.1.zip into <SOME FOLDER>\.grails\
    1.3.4\projects\OCM\plugins\spring-security-core-1.0.1
    Installed plugin spring-security-core-1.0.1 to location <SOME FOLDER>\.grails\1.3.4\project
    s\OCM\plugins/spring-security-core-1.0.1. ...
    Resolving plugin JAR dependencies ...
    :: problems summary ::
    :::: WARNINGS
    module not found: org.springframework.security#org.springframework.s ecurity.core;3.0.3.RELEASE

    ==== grailsHome: tried

    D:\Programs\grails-1.3.4\lib/org.springframework.security.core-3.0.3.RELEASE.xml

    -- artifact org.springframework.security#org.springframework.s ecurity.core;3.0.3.RELEASE!org.springframew
    ork.security.core.jar:

    D:\Programs\grails-1.3.4\lib/org.springframework.security.core-3.0.3.RELEASE.jar

    ==== grailsHome: tried

    D:\Programs\grails-1.3.4\dist/org.springframework.security.core-3.0.3.RELEASE.xml

    -- artifact org.springframework.security#org.springframework.s ecurity.core;3.0.3.RELEASE!org.springframew
    ork.security.core.jar:

    D:\Programs\grails-1.3.4\dist/org.springframework.security.core-3.0.3.RELEASE.jar

    ==== grailsHome: tried

    -- artifact org.springframework.security#org.springframework.s ecurity.core;3.0.3.RELEASE!org.springframew
    ork.security.core.jar:

    D:\Programs\grails-1.3.4/plugins/grails-org.springframework.security.core-3.0.3.RELEASE.jar

    ==== grailsCentral: tried

    -- artifact org.springframework.security#org.springframework.s ecurity.core;3.0.3.RELEASE!org.springframew
    ork.security.core.jar:

    http://svn.codehaus.org/grails-plugi...E_3_0_3_RELEAS
    E/grails-org.springframework.security.core-3.0.3.RELEASE.jar

    ==== grailsCore: tried

    -- artifact org.springframework.security#org.springframework.s ecurity.core;3.0.3.RELEASE!org.springframew
    ork.security.core.jar:

    http://svn.codehaus.org/grails/trunk...e/tags/RELEASE
    _3_0_3_RELEASE/grails-org.springframework.security.core-3.0.3.RELEASE.jar

    ==== ebrRelease: tried

    http://repository.springsource.com/m...pringframework
    .security.core/3.0.3.RELEASE/org.springframework.security.core-3.0.3.RELEASE.pom

    -- artifact org.springframework.security#org.springframework.s ecurity.core;3.0.3.RELEASE!org.springframew
    ork.security.core.jar:

    http://repository.springsource.com/m...pringframework
    .security.core/3.0.3.RELEASE/org.springframework.security.core-3.0.3.RELEASE.jar

    ==== ebrExternal: tried

    http://repository.springsource.com/m...springframewor
    k.security.core/3.0.3.RELEASE/org.springframework.security.core-3.0.3.RELEASE.pom

    -- artifact org.springframework.security#org.springframework.s ecurity.core;3.0.3.RELEASE!org.springframew
    ork.security.core.jar:

    http://repository.springsource.com/m...springframewor
    k.security.core/3.0.3.RELEASE/org.springframework.security.core-3.0.3.RELEASE.jar

    ==== grailsPlugins: tried

    -- artifact org.springframework.security#org.springframework.s ecurity.core;3.0.3.RELEASE!org.springframew
    ork.security.core.jar:

    <SOME FOLDER>\eclipse-workspaces\sts-2.3.2\OCM/lib/org.springframework.security.c
    ore-3.0.3.RELEASE.jar

    <SOME FOLDER>\.grails\1.3.4\projects\OCM\plugins\hiberna te-1.3.4/lib/org.springfr
    amework.security.core-3.0.3.RELEASE.jar

    <SOME FOLDER>\.grails\1.3.4\projects\OCM\plugins\spring-security-core-1.0.1/lib/o
    rg.springframework.security.core-3.0.3.RELEASE.jar

    <SOME FOLDER>\.grails\1.3.4\projects\OCM\plugins\tomcat-1.3.4/lib/org.springframe
    work.security.core-3.0.3.RELEASE.jar

    module not found: org.springframework.security#org.springframework.s ecurity.web;3.0.3.RELEASE

    ==== grailsHome: tried

    D:\Programs\grails-1.3.4\lib/org.springframework.security.web-3.0.3.RELEASE.xml

    -- artifact org.springframework.security#org.springframework.s ecurity.web;3.0.3.RELEASE!org.springframewo
    rk.security.web.jar:
    .
    .
    .
    Similar messages here (removed to shorten post)
    .
    .

    ::::::::::::::::::::::::::::::::::::::::::::::

    :: UNRESOLVED DEPENDENCIES ::

    ::::::::::::::::::::::::::::::::::::::::::::::

    :: org.springframework.security#org.springframework.s ecurity.core;3.0.3.RELEASE: not found

    :: org.springframework.security#org.springframework.s ecurity.web;3.0.3.RELEASE: not found

    ::::::::::::::::::::::::::::::::::::::::::::::


    :::: ERRORS
    Server access Error: Connection reset url=http://svn.codehaus.org/grails-plugins/grails-org.springframework
    .security.core/tags/RELEASE_3_0_3_RELEASE/grails-org.springframework.security.core-3.0.3.RELEASE.jar

    Server access Error: Connection reset url=http://svn.codehaus.org/grails/trunk/grails-plugins/grails-org.sp
    ringframework.security.core/tags/RELEASE_3_0_3_RELEASE/grails-org.springframework.security.core-3.0.3.RELEASE.jar

    Server access Error: Connection reset url=http://repository.springsource.com/maven/bundles/release/org/spri
    ngframework/security/org.springframework.security.core/3.0.3.RELEASE/org.springframework.security.core-3.0.3.RELEAS
    E.pom

    Server access Error: Connection reset url=http://repository.springsource.com/maven/bundles/release/org/spri
    ngframework/security/org.springframework.security.core/3.0.3.RELEASE/org.springframework.security.core-3.0.3.RELEAS
    E.jar

    Server access Error: Connection reset url=http://repository.springsource.com/maven/bundles/external/org/spr
    ingframework/security/org.springframework.security.core/3.0.3.RELEASE/org.springframework.security.core-3.0.3.RELEA
    SE.pom

    Server access Error: Connection reset url=http://repository.springsource.com/maven/bundles/external/org/spr
    ingframework/security/org.springframework.security.core/3.0.3.RELEASE/org.springframework.security.core-3.0.3.RELEA
    SE.jar

    Server access Error: Connection reset url=http://svn.codehaus.org/grails-plugins/grails-org.springframework
    .security.web/tags/RELEASE_3_0_3_RELEASE/grails-org.springframework.security.web-3.0.3.RELEASE.jar

    Server access Error: Connection reset url=http://svn.codehaus.org/grails/trunk/grails-plugins/grails-org.sp
    ringframework.security.web/tags/RELEASE_3_0_3_RELEASE/grails-org.springframework.security.web-3.0.3.RELEASE.jar

    Server access Error: Connection reset url=http://repository.springsource.com/maven/bundles/release/org/spri
    ngframework/security/org.springframework.security.web/3.0.3.RELEASE/org.springframework.security.web-3.0.3.RELEASE.
    pom

    Server access Error: Connection reset url=http://repository.springsource.com/maven/bundles/release/org/spri
    ngframework/security/org.springframework.security.web/3.0.3.RELEASE/org.springframework.security.web-3.0.3.RELEASE.
    jar

    Server access Error: Connection reset url=http://repository.springsource.com/maven/bundles/external/org/spr
    ingframework/security/org.springframework.security.web/3.0.3.RELEASE/org.springframework.security.web-3.0.3.RELEASE
    .pom

    Server access Error: Connection reset url=http://repository.springsource.com/maven/bundles/external/org/spr
    ingframework/security/org.springframework.security.web/3.0.3.RELEASE/org.springframework.security.web-3.0.3.RELEASE
    .jar

    Failed to install plugin [spring-security-core-1.0.1]. Plugin has missing JAR dependencies.
    [delete] Deleting directory <SOME FOLDER>\.grails\1.3.4\projects\OCM\plugins\spring-secu
    rity-core-1.0.1

  • #2
    Reposting.

    Comment


    • #3
      If you're behind a proxy, you need to configure it. Grails supports multiple named proxies, so the process goes:
      Code:
      grails add-proxy myProxy --host=proxy1 --port=3333
      grails set-proxy myProxy
      If you then move to a location that has no proxy:
      Code:
      grails clear-proxy
      Once you've added a proxy, you don't need to add it again. You can just pass the name of it to set-proxy.

      If you're on Windows, you will need to put "--host..." and "---port=..." in quotes.

      Hope that helps.

      Comment


      • #4
        Thanks Peter.

        Actually, I had spent some time on it later that day and was able to figure that out and finally install the plug-in.

        The proxy thing isn't perfect, though, because:
        1- It stores the password in clear text.
        2- It doesn't work if the username contains a backslash which is comnon for windows domain names e.g. "DOMAIN\User". I worked around that by using a double backslash, i.e. "DOMAIN\\User", but whenever I run the command "set-proxy" it updates the file to remove the extra backslash, so I have to again update it manually the next time!

        Anyway, nice article on the plug-in; I enjoyed it.

        Regards,
        Tarek

        Comment

        Working...
        X