Re: [Acegisecurity-developer] Failed to create FilterChainProxy
Hi You should have commons-lang-2.1.jar in your classpath. You should propably check all commons jar versions BR -Teemu- Alkuperäinen viesti Lähettäjä: [EMAIL PROTECTED] Päivämäärä: 08.08.2006 2:13 Vastaanottaja: acegisecurity-developer@lists.sourceforge.net Aihe: [Acegisecurity-developer] Failed to create FilterChainProxy I suspect it is related to upgrating to version 1.0, but I find it very hard to gather anything from the exception output. Did I make an error in the configuration? org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'filterChainProxy' defined in class path resource [acegi-security.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.apache.commons.lang.StringUtils.substringBeforeLast (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; java.lang.NoSuchMethodError: org.apache.commons.lang.StringUtils.substringBeforeLast (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; at org.acegisecurity.intercept.web. FilterInvocationDefinitionSourceEditor.setAsText (FilterInvocationDefinitionSourceEditor.java:132) at org.springframework.beans.BeanWrapperImpl.doTypeConversionIfNecessary (BeanWrapperImpl.java:881) at org.springframework.beans.BeanWrapperImpl.setPropertyValue (BeanWrapperImpl.java:692) at org.springframework.beans.BeanWrapperImpl.setPropertyValue (BeanWrapperImpl.java:572) at org.springframework.beans.BeanWrapperImpl.setPropertyValue (BeanWrapperImpl.java:737) at org.springframework.beans.BeanWrapperImpl.setPropertyValues (BeanWrapperImpl.java:764) at org.springframework.beans.BeanWrapperImpl.setPropertyValues (BeanWrapperImpl.java:753) ?xml version=1.0 encoding=UTF-8? !DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN http://www.springframework.org/dtd/spring-beans.dtd; !-- - Application context definition for Trails Security Through Acegi. -- beans !-- - Authentication. -- bean id=authenticationManager class=org.acegisecurity.providers.ProviderManager property name=providers list ref bean=daoAuthenticationProvider / ref local=anonymousAuthenticationProvider / /list /property /bean bean id=daoAuthenticationProvider class=org.acegisecurity.providers.dao.DaoAuthenticationProvider property name=userDetailsService ref bean=trailsUserDAO / !-- ref bean=inMemoryUserDetailsService /-- /property /bean bean id=trailsUserDAO class=org.trails.security.TrailsUserDAO property name=persistenceService ref bean=persistenceService/ /property /bean bean id=inMemoryUserDetailsService class=org.acegisecurity.userdetails.memory.InMemoryDaoImpl property name=userMap value user=pwd,ROLE_USER admin=admin,ROLE_USER,ROLE_MANAGER /value /property /bean !-- FILTER CHAIN === -- !-- if you wish to use channel security, add channelProcessingFilter, in front of httpSessionContextIntegrationFilter in the list below -- bean id=filterChainProxy class=org.acegisecurity.util.FilterChainProxy property name=filterInvocationDefinitionSource value CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON PATTERN_TYPE_APACHE_ANT /**=httpSessionContextIntegrationFilter, authenticationProcessingFilter,anonymousProcessingFilter, exceptionTranslationFilter /value /property /bean !-- = HTTP REQUEST SECURITY -- bean id=exceptionTranslationFilter class=org.acegisecurity.ui.ExceptionTranslationFilter property name=authenticationEntryPoint ref local=authenticationProcessingFilterEntryPoint / /property /bean bean id=authenticationProcessingFilter class=org.acegisecurity.ui.webapp.AuthenticationProcessingFilter property name=authenticationManagerref bean=authenticationManager//property property name=authenticationFailureUrlvalue/app? page=Loginservice=page/value/property property name=defaultTargetUrlvalue/app/value/property property name=filterProcessesUrl value/j_acegi_security_check/value/property !-- property name=rememberMeServicesref local=rememberMeServices//property -- /bean bean id=authenticationProcessingFilterEntryPoint class=org.acegisecurity.ui.webapp. AuthenticationProcessingFilterEntryPoint property name=loginFormUrlvalue/app? page=Loginservice=page/value/property property name=forceHttps valuefalse/value /property /bean bean id=anonymousProcessingFilter class=org.acegisecurity.providers.anonymous. AnonymousProcessingFilter property name=key valuesecurity/value /property property name=userAttribute valueanonymousUser,ROLE_ANONYMOUS/value /property /bean bean id=anonymousAuthenticationProvider class=org.acegisecurity.providers.anonymous. AnonymousAuthenticationProvider property name=key valuesecurity/value /property /bean bean id=httpSessionContextIntegrationFilter class=org.acegisecurity.context.HttpSessionContextIntegrationFilter !-- property name=context value org.acegisecurity.context.security.SecureContextImpl /value /property --
Re: [Acegisecurity-developer] Failed to create FilterChainProxy
Yeah, its definitely a Classloading problem Basically a Commons class is being loaded, but the wrong version Application servers / servlet containers sometimes bundle their own version of Commons... so depending on what Classloader picked it up.. thats the class it will use their after. Cheers Mark On 8/8/06, Teemu Lehto [EMAIL PROTECTED] wrote: Hi You should have commons-lang-2.1.jar in your classpath. You should propably check all commons jar versions BR -Teemu- Alkuperäinen viesti Lähettäjä: [EMAIL PROTECTED] Päivämäärä: 08.08.2006 2:13 Vastaanottaja: acegisecurity-developer@lists.sourceforge.net Aihe: [Acegisecurity-developer] Failed to create FilterChainProxy I suspect it is related to upgrating to version 1.0, but I find it very hard to gather anything from the exception output. Did I make an error in the configuration? org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'filterChainProxy' defined in class path resource [acegi-security.xml]: Initialization of bean failed; nested exception is java.lang.NoSuchMethodError: org.apache.commons.lang.StringUtils.substringBeforeLast (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; java.lang.NoSuchMethodError: org.apache.commons.lang.StringUtils.substringBeforeLast (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; at org.acegisecurity.intercept.web. FilterInvocationDefinitionSourceEditor.setAsText (FilterInvocationDefinitionSourceEditor.java:132) at org.springframework.beans.BeanWrapperImpl.doTypeConversionIfNecessary (BeanWrapperImpl.java:881) at org.springframework.beans.BeanWrapperImpl.setPropertyValue (BeanWrapperImpl.java:692) at org.springframework.beans.BeanWrapperImpl.setPropertyValue (BeanWrapperImpl.java:572) at org.springframework.beans.BeanWrapperImpl.setPropertyValue (BeanWrapperImpl.java:737) at org.springframework.beans.BeanWrapperImpl.setPropertyValues (BeanWrapperImpl.java:764) at org.springframework.beans.BeanWrapperImpl.setPropertyValues (BeanWrapperImpl.java:753) ?xml version=1.0 encoding=UTF-8? !DOCTYPE beans PUBLIC -//SPRING//DTD BEAN//EN http://www.springframework.org/dtd/spring-beans.dtd; !-- - Application context definition for Trails Security Through Acegi. -- beans !-- - Authentication. -- bean id=authenticationManager class=org.acegisecurity.providers.ProviderManager property name=providers list ref bean=daoAuthenticationProvider / ref local=anonymousAuthenticationProvider / /list /property /bean bean id=daoAuthenticationProvider class=org.acegisecurity.providers.dao.DaoAuthenticationProvider property name=userDetailsService ref bean=trailsUserDAO / !-- ref bean=inMemoryUserDetailsService /-- /property /bean bean id=trailsUserDAO class=org.trails.security.TrailsUserDAO property name=persistenceService ref bean=persistenceService/ /property /bean bean id=inMemoryUserDetailsService class=org.acegisecurity.userdetails.memory.InMemoryDaoImpl property name=userMap value user=pwd,ROLE_USER admin=admin,ROLE_USER,ROLE_MANAGER /value /property /bean !-- FILTER CHAIN === -- !-- if you wish to use channel security, add channelProcessingFilter, in front of httpSessionContextIntegrationFilter in the list below -- bean id=filterChainProxy class=org.acegisecurity.util.FilterChainProxy property name=filterInvocationDefinitionSource value CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON PATTERN_TYPE_APACHE_ANT /**=httpSessionContextIntegrationFilter, authenticationProcessingFilter,anonymousProcessingFilter, exceptionTranslationFilter /value /property /bean !-- = HTTP REQUEST SECURITY -- bean id=exceptionTranslationFilter class=org.acegisecurity.ui.ExceptionTranslationFilter property name=authenticationEntryPoint ref local=authenticationProcessingFilterEntryPoint / /property /bean bean id=authenticationProcessingFilter class=org.acegisecurity.ui.webapp.AuthenticationProcessingFilter property name=authenticationManagerref bean=authenticationManager//property property name=authenticationFailureUrlvalue/app? page=Loginservice=page/value/property property name=defaultTargetUrlvalue/app/value/property property name=filterProcessesUrl value/j_acegi_security_check/value/property !-- property name=rememberMeServicesref local=rememberMeServices//property -- /bean bean id=authenticationProcessingFilterEntryPoint class=org.acegisecurity.ui.webapp. AuthenticationProcessingFilterEntryPoint property name=loginFormUrlvalue/app? page=Loginservice=page/value/property property name=forceHttps valuefalse/value /property /bean bean id=anonymousProcessingFilter
[Acegisecurity-developer] Passing security context from non-Java clients
Hi All, I am working in a project with spring based Server in Java and the clients in different languages including .NET, Cocoa, C++. The clients also include Web Service clients, thin web clients and RMI clients. I need to do Kerberos based authentication and allow calls to my APIs based on the authorization context of the clients. Is this possible to achieve this using Acegi security? If possible, how will non-Java clients pass the security context/ticket/credentials to the Java server? Thanks in Advance, Manish Gulati CONFIDENTIALITY NOTICE This e-mail transmission and any documents, files, or previous e-mail messages appended or attached to it, may contain information that is confidential or legally privileged. If you are not the intended recipient, or a person responsible for delivering it to the intended recipient, you are hereby notified that you must not read this transmission and that any disclosure, copying, printing, distribution, or use of the information contained or attached to this transmission is STRICTLY PROHIBITED. If you have received this transmission in error, please immediately notify the sender by telephone +91.172.229.9438 or return e-mail message [EMAIL PROTECTED] and delete the original transmission, its attachments, and any copies without reading or saving in any manner. Thank you. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Home: http://acegisecurity.org Acegisecurity-developer mailing list Acegisecurity-developer@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer