It's not a secret anymore!*
The moose likes Spring and the fly likes Spring Secuirty updation error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring Secuirty updation error " Watch "Spring Secuirty updation error " New topic
Author

Spring Secuirty updation error

Narsimlu Jakku
Greenhorn

Joined: Dec 24, 2009
Posts: 8
Hi we are updating from spring security 2.0.4 to 3.0.3.I am getting the following exception

java.lang.ClassNotFoundException: org.springframework.security.util.FilterToBeanProx y
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:496)
at com.ibm.ws.bootstrap.ExtClassLoader.findClass(ExtC lassLoader.java:132)
at java.lang.ClassLoader.loadClass(ClassLoader.java:6 31)
at com.ibm.ws.bootstrap.ExtClassLoader.loadClass(ExtC lassLoader.java:87)
at java.lang.ClassLoader.loadClass(ClassLoader.java:5 97)
at com.ibm.ws.classloader.ProtectionClassLoader.loadC lass(ProtectionClassLoader.java:58)
at com.ibm.ws.classloader.ProtectionClassLoader.loadC lass(ProtectionClassLoader.java:54)
at com.ibm.ws.classloader.CompoundClassLoader.loadCla ss(CompoundClassLoader.java:394)
at java.lang.ClassLoader.loadClass(ClassLoader.java:5 97)
at java.beans.Beans.instantiate(Beans.java:202)
at java.beans.Beans.instantiate(Beans.java:63)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager ._loadFilter(WebAppFilterManager.java:427)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager .loadFilter(WebAppFilterManager.java:385)


we are using following jars
spring-core-3.0.4.RELEASE.jar
spring-context-3.0.4.RELEASE.jar
spring-beans-3.0.4.RELEASE.jar

as FilterToBeanProxy deprecated , i am using DelegatingFilterProxy instead.I have changed security filter tag as below

<filter>
<filter-name>securityFilter</filter-name>
<filter-class>org.springframework.security.util.FilterToBe anProxy</filter-class>
<init-param>
<param-name>targetClass</param-name>
<param-value>org.springframework.security.util.FilterChai nProxy</param-value>
</init-param>
</filter>

to

<filter>
<filter-name>securityFilter</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFil terProxy</filter-class>
<init-param>
<param-name>targetBeanName</param-name>
<param-value>filterChainProxy</param-value>
</init-param>
</filter>

Can anyone help on this?

Thanks & Regards,
Narsimlu Jakku
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Spring Secuirty updation error
 
Similar Threads
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
404 in using acegi security with Spring
context-param in web.xml
GZipFilter inside JSP and WSAD 5.1.1
Configuring WSAD 51.1 to use filters--Help!