0

Play framework 1.2.5 was already setup on an ubuntu 11 server. I stopped the process, ran play clean and then deployed the new app (I have since then ran play clean a few times as well without any luck). I keep getting LinkageErrors and the application is throwing classcast exceptions for objects for different classes. Any suggestions to help pinpoint what's causing the issue and how best to resolve it - thanks in advance.

Oops: LinkageError
An unexpected error occured caused by exception LinkageError: loader (instance of  play/classloading/ApplicationClassloader): attempted  duplicate class definition for name: "models/testModel/TestClass"

Reference to play framework is still set up in the system path. I am using "play start" to run the application.

4

1 回答 1

0

Try using Prod mode in application.conf and check if you receive more verbose error messages during pre-compilation. Also, replacing your deployment or even the play directory might help (though that did not resolve the issue in my case). Hope it helps.

于 2013-05-08T22:17:56.307 回答