facebook

Error while scaffolding spring security

  1. MyEclipse IDE
  2.  > 
  3. Spring Development
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #312187 Reply

    paletisuresh
    Member

    Hello,

    Here are the steps i followed

    1. created a web project
    2. scaffold spring crud application (derby database)
    Every thing worked fine (Ran the application on server worked perfect!)

    Later decided to add spring security

    3. Scaffold Spring security and then got the error in the generated code

    SpringSecurityTest-generated-security-context.xml

    Error:
    spring-security-web classes are not available. You need these to use <filter-chain-map>
    SpringSecurityTest-generated-security-context.xml /SpringSecurityTest/resources line 18 Spring Beans Problem

    Here is the piece of code that is generated

    18<http auto-config=”true” >
    19 <intercept-url pattern=’/pages/login.jsp’ filters=’none’/>
    20 <intercept-url pattern=”/*” access=”IS_AUTHENTICATED_REMEMBERED” />
    21 <form-login login-page=”/pages/login.jsp” authentication-failure-url=”/pages/login.jsp?login_error=true” />
    22 <logout logout-success-url=”/pages/logout-redirect.jsp” invalidate-session=”true” />
    23 <remember-me key=”SpringSecurityTestRMKey” user-service-ref=”userDetailsService” />
    24 </http>

    Note: But when i run the application its working fine (but curios about the error I googled the error and found that I have to add the following in manifest

    Import-Library: org.springframework.spring;version=”[3.0.0.RELEASE,3.0.2.RELEASE]”

    Adding this in the manifest did not solved my problem, can any one please help me

    #312252 Reply

    davemeurer
    Member

    Hello,

    We are trying to reproduce this error. Would you confirm the following:
    – Are you using version 8.6.1?
    – Are you using Spring 3.0?
    – Is this an error or a warning?

    Kind regards,
    Dave

    #312332 Reply

    paletisuresh
    Member

    Hello Dave

    1. used 8.6.0
    2. used spring 3.0
    3. it was an error

    I will update to 8.6.1 and let you know if i am still getting the error.

    Thanks,
    Suresh Paleti

    #314207 Reply

    wlaprise
    Member

    I am having the same error following an attempt to (security) scaffold a simple new project. Was there any resolution? Thanks.

    Bill

    #314208 Reply

    wlaprise
    Member

    I am having the same error following an attempt to (security) scaffold a simple new project. Was there any resolution? Thanks.

    Bill

    #314305 Reply

    jayperkins
    Member

    Hi,

    Are you seeing this error in the Problems tab or is this error part of a stack trace that you get when you start your server? At first glance, it looks like the spring security jars are either not in your java build path or they are not getting deployed to the server.

    Thanks,

    Jay

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Error while scaffolding spring security

You must be logged in to post in the forum log in