Hi Anton, I think this comes from the classloader policy of your server. I know it from Websphere that you can define one ClassLoader per Application and if we do not set this we had a similar Exception.
Maybe this articel will help you http://stackoverflow.com/questions/826319/classcastexception-when-casting-to-the-same-class greest claus
