Version 2

     

    You probably need to fix your class path and deployment structure.

     

    Refer to ClassCastException.