Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8188917
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T03:04:40+00:00 2026-06-07T03:04:40+00:00

I have problem with my spring-security.xml file. I have wanted to configure some session

  • 0

I have problem with my spring-security.xml file. I have wanted to configure some session settings and first of all create login form to maintain guests and logged in users.

This is my spring-security.xml headline:

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:security="http://www.springframework.org/schema/security"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
      http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
      http://www.springframework.org/schema/security
      http://www.springframework.org/schema/security/spring-security-3.1.xsd">

As you can see I am using Spring Security in latest version – 3.1. When I try to change the schema versione to lower, I have got errors. In terms of 3.1 version I have only yellow warnings in Eclipse.

My http tag looks like:

<security:http auto-config='true'>      
    <security:intercept-url pattern="/wellcome*" access="ROLE_USER"  />
    <security:form-login login-page="/login" default-target-url="/wellcome" authentication-failure-url="/loginfailed"  />
    <security:logout logout-success-url="/logout" />
    <security:session-management invalid-session-url="/invalidsession" />
</security:http>

And at the first line of this tag I have long list of warnings:

Multiple annotations found at this line:
- Method 'setAuthenticationEntryPoint' is marked deprecated [config set: SpringMVC/web-context]
- Method 'setSessionAuthenticationStrategy' is marked deprecated [config set: SpringMVC/web-
 context]
- Method 'setUserAttribute' is marked deprecated [config set: SpringMVC/web-context]
- Method 'setRequestCache' is marked deprecated [config set: SpringMVC/web-context]
- Method 'setKey' is marked deprecated [config set: SpringMVC/web-context]
- Method 'setSecurityContextRepository' is marked deprecated [config set: SpringMVC/web-context]

Additionaly I have also one warning on the third line:

Method 'setLoginFormUrl' is marked deprecated [config set: SpringMVC/web-context]

Could you explain me how I should properly define my spring-security.xml file with http tag in Spring Security 3.1?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T03:04:42+00:00Added an answer on June 7, 2026 at 3:04 am

    EDIT: This issue is now fixed in Spring Security 3.1.2, so if you’re using 3.1 or 3.1.1, please upgrade it to newer version.

    Original answer:

    Your config is fine. It’s a known bug in Spring Security with STS in Eclipse (see also forum topic mentioned there in Reference URL).

    For now you can ignore the warnings, login on https://jira.springsource.org and vote up the issue and wait until it’s fixed (or remove spring nature for your project if you can’t stand those warnings).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this Spring XML: <!-- Configure the authentication --> <security:http auto-config=true use-expressions=true> <security:form-login
I have the following problem with the timeouts in Spring Security with JSF: I've
I have a bean which extends other Java file. When I create a Spring
greetings all, i am using spring security 3.0.2, urlRewrite 3.1.0 , and i have
I have 2 problems with spring my spring-security.xml When I have more than one
I have a problem with Spring Security 3 and probably with i18n. I use
I am using spring 3 + spring security 3 + hibernate. I have some
I have problem with LDAP Spring Security, I'm trying to authorise against the LDAP
I have what seems like a simple problem. I have a Spring web app,
I'm facing following problem actually: I'm using Spring with jQuery. I have Controller: @Controller

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.