Thanks for your reply Nenad, :)
Anyway, your suggestion is pretty good, probably some class stills in JBoss memory or similar and when I redeploy the application and use the process engine the ClassCastException is thrown.
I'll continue searching more fore ClassCastException on this forum, I've found similar problems but not exactly the same.