Skip to content
This repository has been archived by the owner on Jan 27, 2019. It is now read-only.

play-salat doesn't work with activator-1.2.8 (play 2.2, scala 2.11) #60

Open
txntxn opened this issue Aug 20, 2014 · 2 comments
Open

play-salat doesn't work with activator-1.2.8 (play 2.2, scala 2.11) #60

txntxn opened this issue Aug 20, 2014 · 2 comments

Comments

@txntxn
Copy link

txntxn commented Aug 20, 2014

We're using activator-1.2.8, which includes play 2.3.2 and scala 2.11

When I added play-salat, I get the following exception upon the first call that uses Mongo:

Caused by: play.api.PlayException: SalatPlugin is not registered.[You need to register the plugin with "500:se.radley.plugin.salat.SalatPlugin" in conf/play.plugins]
    at se.radley.plugin.salat.package$$anonfun$mongoCollection$2.apply(package.scala:17) ~[play-plugins-salat_2.11-1.5.0.jar:1.5.0]
    at se.radley.plugin.salat.package$$anonfun$mongoCollection$2.apply(package.scala:17) ~[play-plugins-salat_2.11-1.5.0.jar:1.5.0]
    at scala.Option.getOrElse(Option.scala:120) [scala-library-2.11.2.jar:na]
    at se.radley.plugin.salat.package$.mongoCollection(package.scala:17) ~[play-plugins-salat_2.11-1.5.0.jar:1.5.0]
    at models.Application$.collection(Application.scala:27) ~[classes/:na]

However, I already have a conf/play.plugins with that line in it.

How do I get this to work?

@txntxn
Copy link
Author

txntxn commented Aug 20, 2014

Ah, I was missing the following line:

mongodb.default.db = "mongo"

Can you maybe change the error message, so that it is more specific? Right now, it's misleading.

@leon
Copy link
Owner

leon commented Oct 28, 2014

@txntxn I'll have a look :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants