wordnik/swagger-play — pull request #3 by bswatson (2012-03-16 18:42:18+00:00)
Title: JPA conflict with Play 1.2.4 and swagger-play

I ran into an issue where adding the swagger-play module to my application suddenly caused issues with Entities failing. I tracked it down to a conflict with the javax.persistence package. Play 1.2.4 uses v2.0 and swagger-play was pulling in 1.0.2 which was then overriding the original version.

Adding a line in the dependencies.yml to exclude javax.persistence appears to have fixed this issue.

Initial Error is below

```
Oops: NoSuchMethodError
An unexpected error occured caused by exception NoSuchMethodError: javax.persistence.EntityManager.setProperty(Ljava/lang/String;Ljava/lang/Object;)V

play.exceptions.UnexpectedException: Unexpected Error
at play.Invoker$Invocation.onException(Invoker.java:244)
at play.Invoker$Invocation.run(Invoker.java:286)
at Invocation.HTTP Request(Play!)
Caused by: java.lang.NoSuchMethodError: javax.persistence.EntityManager.setProperty(Ljava/lang/String;Ljava/lang/Object;)V
at play.db.jpa.JPAPlugin.startTx(JPAPlugin.java:348)
at play.db.jpa.JPAPlugin.beforeInvocation(JPAPlugin.java:318)
at play.plugins.PluginCollection.beforeInvocation(PluginCollection.java:428)
at play.Invoker$Invocation.before(Invoker.java:217)
at play.Invoker$Invocation.run(Invoker.java:277)
... 1 more
```