Hi Johannes,

On 29.05.12 14:20, [email protected] wrote:
> java.lang.ClassCastException:
> org.apache.turbine.services.security.torque.om.TurbineUser cannot be
> cast to (own User interface class which extends
> org.apache.turbine.om.security.User)

org.apache.turbine.services.security.torque.om.TurbineUser just
implements org.apache.turbine.om.security.User.

> Is it wrong to use
> org.apache.turbine.services.security.torque.om.TurbineUser for User's
> base om classes? Because org.apache.turbine.om.security.User, is not
> mappable with instances of type
> org.apache.turbine.services.security.torque.om.TurbineUser.

I'm not sure that I get you right. If you want to use an extended User
interface, you will need to implement this in the respective TurbineUser
class. You can configure the class to be used by TorqueSecurityService
in TurbineResources.properties. So you may derive your user class from
the above mentioned TurbineUser, implement your interface and configure
the resulting class in TR.properties. That should get you rid of the
ClassCastException.

Bye, Thomas.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to