• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Migrating from spring security 2.x to spring security 3.x

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
i am tryign to migrate from spring security 2.x t0 3.x. please suggest any guide for the same.
I am getting nullpointerException in org.springframework.security.web.FilterChainProxy. filterChainMap is coming null in FilterChainProxy.getFilters()
filterchain proxy has been defined as this

<bean id="filterChainProxy" class="org.springframework.security.web.FilterChainProxy">
<security:filter-chain-map path-type="ant">
<security:filter-chain pattern="/login.jsp" filters="none"/>
<security:filter-chain pattern="/css/**" filters="none"/>
<security:filter-chain pattern="/images/**" filters="none"/>
<security:filter-chain pattern="/*.jsp*/**" filters="httpSessionContextIntegrationFilter,logoutFilter,formAuthenticationProcessingFilter,exceptionTranslationFilter,filterSecurityInterceptor,userBeanFilter"/>
<security:filter-chain pattern="/**" filters="httpSessionContextIntegrationFilter,logoutFilter,formAuthenticationProcessingFilter,exceptionTranslationFilter,filterSecurityInterceptor,userBeanFilter"/>
</security:filter-chain-map>
</bean>

Please help me .
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are using the latest Spring Security, why aren't you setting it up simply with

<security:http> tag. Instead of defining a bean for each and every Spring Security class.

From the looks of what you posted, it looks like the old days when you had 300 lines of xml to setup Security. Instead of that one tag.

Thanks

Mark
 
ashu Suri
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mark,
Thanks for the reply. but I did not follow you completely.
How will adding this tag <security:http> in security xml solve the issue of filter chain and login.
Could you please elaborate. Thanks for your time .
regards,
Gagan Suri
 
reply
    Bookmark Topic Watch Topic
  • New Topic