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

  • SEARCH
  • Home
  • 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 8284787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T11:14:17+00:00 2026-06-08T11:14:17+00:00

I had a project that was working ok with Spring 3.0. I’ve now moved

  • 0

I had a project that was working ok with Spring 3.0. I’ve now moved to Maven to control dependencies and moved to Spring 3.1.2 jars and Spring security 3.1.1 jars.

When I attempt to access a JSP that includes use of the security taglib (eg ) I get the error below:

javax.servlet.ServletException: javax.servlet.jsp.JspException: java.io.IOException: No visible WebSecurityExpressionHandler instance could be found in the application context. There must be at least one in order to support expressions in JSP 'authorize' tags.

In my security-context I have:

<http auto-config="true" use-expressions="true" create-session="ifRequired"

From my old project:

<beans:bean id="expressionHandler" class="org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler" />

I couldn’t find that class in the packages I have for my project, so thinking it may just be a move of classes I tried:

<beans:bean id="expressionHandler" class="org.springframework.security.web.access.expression.WebSecurityExpressionHandler" />

This gives me the same error.

Spring-security dependencies I have configured at the moment:
spring-security-core-3.1.1
spring-security-taglibs-3.1.1
spring-security-acl-3.1.1
spring-security-config-3.1.1
spring-security-web-3.1.1

Am I missing a jar that would contain whatever ‘use-expressions=true’ needs?

  • 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-08T11:14:19+00:00Added an answer on June 8, 2026 at 11:14 am

    I have since made a number of changes to my project and I’m not 100% sure which actually fixed this issue but the most likely contenders listed below:

    • There were some 3.0 jars hidden away in a lib folder of my app. Removed them manually.
    • Removed the expressionHandler definition from security-context altogether
    • changed the URL mapping style thus:

      <!-- Spring Security < 3.1
      These were inside the <http... > element
      <intercept-url pattern="/public/**" filters="none"/>
      <intercept-url pattern="/login" filters="none"/>
      <intercept-url pattern="/loggedOut" filters="none"/>
      <intercept-url pattern="/include/css/**" filters="none"/>
      <intercept-url pattern="/include/img/**" filters="none"/>
      -->
      

      Changed to the follow BEFORE the element in security-context:

      <!-- for Spring-security >= 3.1 -->
      <http pattern="/public/**" security="none"/>
      <http pattern="/login" security="none"/>
      <http pattern="/loggedOut" security="none"/>
      <http pattern="/include/css/**" security="none"/>
      <http pattern="/include/img/**" security="none"/>
      

    My element now reads:

            <http use-expressions="true" auto-config="true" create-session="ifRequired" access-denied-page="/accessDenied" >
    

    I hope this helps someone else with similar issues moving from Spring security 3.0 -> 3.1.

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

Sidebar

Related Questions

I had a Spring 3 project that was using LDAP for Authentication and Authorities.
I've got a WinForms project that I've had for quite some time, and now
So I'm working on a class project that uses MFC. I never had to
I'm currently working on a project that uses data access on different databases. Our
I'm working with a project that is setup using the standard Maven directory structure
We had a test project that started out as MbUnit v3 / Gallio but
I have a project that's using git. When I received the repo, it had
When i started my Android project i had a misunderstanding that every screen that's
I had a project and everything was working and then for some reasons I
We are working on a Spring mvc project and are having some performance issues

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.