Hi,

I've slightly modified the User class, added a memeber. In addition I've
added an extra association to the user_role table. Although I don't see how
that relates to this error.

Everything compiles and runs fine, tests etc...

BUT when I try to login using any of the accounts that exist in the DB I get
the following error (I've only copied the most likely important part of the
stacktrace):

java.lang.ClassCastException: org.appfuse.model.User cannot be cast to
org.springframework.security.userdetails.UserDetails
        at
org.appfuse.dao.hibernate.UserDaoHibernate.loadUserByUsername(UserDaoHibernate.java:75)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        at
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy47.loadUserByUsername(Unknown Source)
        at
org.springframework.security.providers.dao.DaoAuthenticationProvider.retrieveUser(DaoAuthenticationProvider.java:83)
        at
org.springframework.security.providers.dao.AbstractUserDetailsAuthenticationProvider.authenticate(AbstractUserDetailsAuthenticationProvider.java:121)

any ideas?
thanks
Stelios
-- 
View this message in context: 
http://www.nabble.com/Login-Error-after-modifying-Appfuse-Core-Classes-tp18153982s2369p18153982.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to