0

I tried using Kundera method but I have no idea where to put the persistence.xml, i tried putting it in conf/WEB-INF/ but when I tried running it said that "Exception in thread "main" javax.persistence.PersistenceException: No Persistence provider for EntityManager named cassandra_pu".

Can somebody show mw where i were wrong? Is there any other way to connect Cassandra to Play 2.0.4?
Thank you very much

Xitrum
  • 7,765
  • 26
  • 90
  • 126

4 Answers4

1

For Kundera the persistence.xml should typically be in $PROJECT_ROOT/src/META-INF/persistence.xml

moodywoody
  • 2,149
  • 1
  • 17
  • 21
  • As per this issue, it is not able to found any persistence provider, which means either your persistence.xml is missing it or you may defined it incorrectly. – vivek mishra Oct 10 '12 at 10:42
1

Another option is PlayOrm for cassandra is nearly done with it's playframework plugin. Still need to do a playframework module AND it has the in-memory version as well for rapid development. It should be done by the end of next week.

Documentation on playorm with playframework can be found here

https://github.com/deanhiller/playorm/wiki/PlayFramework-1.2.x-Support

Dean Hiller
  • 19,235
  • 25
  • 129
  • 212
0

Please have a look on: https://github.com/downloads/impetus-opensource/Kundera-Examples/project%20(1).zip for reference.

And

https://github.com/impetus-opensource/Kundera/wiki/Getting-Started-in-5-minutes

should help you on how to use it.

-Vivek

vivek mishra
  • 1,162
  • 8
  • 16
0

It should be put under conf/META-INF folder. Below link should help you getting kundera work with Play!

http://techrecipes.in/2013/07/06/play-nosql-building-nosql-applications-with-play-framework/

Amresh
  • 478
  • 1
  • 6
  • 28