I have tried using play 1.2.3 & 1.2.5 with the same code that was working on play 1.2.3 at a previous installation of ubuntu (using JDK7). Now, I am getting class cast exceptions in my code (both with classes I wrote and third party libraries). Should I switch to JDK6 or try something else? I have already ran play clean (and the tmp directory was removed) but the issue is still outstanding. I am using Sun JDK 7.
Update: I reverted to JDK 6 but the class cast exceptions are still there (I used play clean as well – not sure if I am missing any further steps). I have tried the application.conf with and without the 1.6 JDK reference.
Thank in advance.
It was a classloader/multiple JDK issue – Eclipse was referencing JDK7 while I had switched over to JDK6 on the OS (without removing JDK 7). Ensuring that eclipse (IDE) was referencing the default JDK (v6) fixed the issue. Hope this helps others.