Hello
I've been trying to fight this problem for 3 days now.
I created a custom implementation of UserDetailsService employing SessionBean. Below my application-security.xml config.
Bean is injected to LoginBeanWrapper instance, and LoginBeanWrapper implements UserDetailsService. Nothing thrilling so far.Code:<bean id="loginBean" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName" value="ejb/LoginBean/local" /> <property name="resourceRef" value="false" /> <property name="expectedType" value="backend.auth.manager.LoginManager" /> </bean> <bean id="daoAuthenticationProvider" class="org.springframework.security.providers.dao.DaoAuthenticationProvider"> <property name="userDetailsService"> <bean class="backend.auth.util.LoginBeanWrapper"> <property name="manager" ref="loginBean" /> </bean> </property> </bean>
Implementation of LoginBeanWrapper is also very simple
Now, when I try to deploy my application, I get:Code:public class LoginBeanWrapper implements UserDetailsService { private LoginManager manager; public UserDetails loadUserByUsername(String userName) throws UsernameNotFoundException, DataAccessException { return manager.loadUserByUsername(userName); } public void setManager(LoginManager manager) { this.manager = manager; } }
Cannot convert value of type [backend.auth.util.LoginBeanWrapper] to required type [org.springframework.security.userdetails.UserDetai lsService] for property 'userDetailsService': no matching editors or conversion strategy found
Here, after 3 days of struggling, I would like to ask You for help with my problem.
I'm out of ideas. I've tried to implement my own Authentication provider by extending AbstractUserDetailsAuthenticationProvider, but result was more or less the same - I've got message, that AuthenticationProvider must implement org.springframework.security.providers.Authenticat ionProvider.
I am using Jboss 4.2.3 with java 1.5.0_14. Application uses Spring 2.0.8 and Spring-Security 2.0.4
Best Regards
Piotr Falenczyk


