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: <[email protected]>
> >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="authenticationManager"><ref
> >bean="authenticationManager"/></property>
> >
> ><property
> >name="authenticationFailureUrl"><value>/app?
> page=Login&service=page</value></property>
> >
> ><property name="defaultTargetUrl"><value>/app</value></property>
> >
> ><property
> >name="filterProcessesUrl"
> ><value>/j_acegi_security_check</value></property>
> >
> ><!-- <property name="rememberMeServices"><ref
> >local="rememberMeServices"/></property> -->
> >
> ></bean>
> >
> ><bean id="authenticationProcessingFilterEntryPoint"
> >
> >class="org.acegisecurity.ui.webapp.
> AuthenticationProcessingFilterEntryPoint">
> >
> ><property
> >name="loginFormUrl"><value>/app?
> page=Login&service=page</value></property>
> >
> ><property name="forceHttps">
> >
> ><value>false</value>
> >
> ></property>
> >
> ></bean>
> >
> >
> >
> ><bean id="anonymousProcessingFilter"
> >
> >class="org.acegisecurity.providers.anonymous.
> AnonymousProcessingFilter">
> >
> ><property name="key">
> >
> ><value>security</value>
> >
> ></property>
> >
> ><property name="userAttribute">
> >
> ><value>anonymousUser,ROLE_ANONYMOUS</value>
> >
> ></property>
> >
> ></bean>
> >
> ><bean id="anonymousAuthenticationProvider"
> >
> >class="org.acegisecurity.providers.anonymous.
> AnonymousAuthenticationProvider">
> >
> ><property name="key">
> >
> ><value>security</value>
> >
> ></property>
> >
> ></bean>
> >
> ><bean id="httpSessionContextIntegrationFilter"
> >
> >class="org.acegisecurity.context.HttpSessionContextIntegrationFilter"
> >
> >
> ><!-- <property name="context">
> >
> ><value>
> >
> >org.acegisecurity.context.security.SecureContextImpl
> >
> ></value>
> >
> ></property> -->
> >
> ></bean>
> >
> ><!-- An access decision voter that reads ROLE_* configuaration
> settings -->
> >
> ><bean id="roleVoter" class="org.acegisecurity.vote.RoleVoter" />
> >
> ><bean id="httpRequestAccessDecisionManager"
> >
> >class="org.acegisecurity.vote.AffirmativeBased">
> >
> ><property name="allowIfAllAbstainDecisions">
> >
> ><value>false</value>
> >
> ></property>
> >
> ><property name="decisionVoters">
> >
> ><list>
> >
> ><ref bean="roleVoter" />
> >
> ></list>
> >
> ></property>
> >
> ></bean>
> >
> ><!-- Note the order that entries are placed against the
> >objectDefinitionSource is critical.
> >
> >The FilterSecurityInterceptor will work from the top of the list down
> to the
> >FIRST pattern that matches the request URL.
> >
> >Accordingly, you should place MOST SPECIFIC (ie a/b/c/d.*)
> expressions
> >first, with LEAST SPECIFIC (ie a/.*) expressions last -->
> >
> ><bean id="filterInvocationInterceptor"
> >
> >class="org.acegisecurity.intercept.web.FilterSecurityInterceptor">
> >
> ><property name="authenticationManager">
> >
> ><ref bean="authenticationManager" />
> >
> ></property>
> >
> ><property name="accessDecisionManager">
> >
> ><ref local="httpRequestAccessDecisionManager" />
> >
> ></property>
> >
> ><property name="objectDefinitionSource">
> >
> ><value>
> >
> >CONVERT_URL_TO_LOWERCASE_BEFORE_COMPARISON
> >
> >PATTERN_TYPE_APACHE_ANT
> >
> >/app?page?login&service?page*=ROLE_ANONYMOUS
> >
> >/**/*.gif=ROLE_ANONYMOUS,ROLE_USER
> >
> >/**/*.css=ROLE_ANONYMOUS,ROLE_USER
> >
> >/**/*.ico=ROLE_ANONYMOUS,ROLE_USER
> >
> >/admin/**=ROLE_MANAGER
> >
> >/**=ROLE_USER
> >
> ></value>
> >
> ></property>
> >
> ></bean>
> >
> ></beans>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >-------------------------------------------------------------------------
> >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=lnk&kid=120709&bid=263057&dat=121642
> >_______________________________________________
> >Home: http://acegisecurity.org
> >Acegisecurity-developer mailing list
> >[email protected]
> >https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
> >
>
>
>
> -------------------------------------------------------------------------
> 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=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Home: http://acegisecurity.org
> Acegisecurity-developer mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer
>

-------------------------------------------------------------------------
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=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Home: http://acegisecurity.org
Acegisecurity-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/acegisecurity-developer

Reply via email to