aspose file tools*
The moose likes Spring and the fly likes Migrating from spring security 2.x to spring security 3.x Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Migrating from spring security 2.x to spring security 3.x" Watch "Migrating from spring security 2.x to spring security 3.x" New topic
Author

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

ashu Suri
Greenhorn

Joined: Oct 22, 2008
Posts: 18
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 .
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
ashu Suri
Greenhorn

Joined: Oct 22, 2008
Posts: 18
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Migrating from spring security 2.x to spring security 3.x
 
Similar Threads
spring security form based login using database not responding
force https in spring security 3
"Spring Security Application" Initiated by Apache
“j_spring_security_check” not found after configuring spring security without http namespace
Spring security multiple login pages