Git Product home page Git Product logo

Comments (13)

mikenikles avatar mikenikles commented on June 8, 2024

I had the same issue and upgraded the module so it works with Play 2.2.1. See https://github.com/vanniksoftware/play2-morphia-plugin

In your Build.scala, use

"leodagdag" %% "play2-morphia-plugin" % "0.0.17"

as the dependency and add the following resolver

resolvers += "Vannik Software repository" at "http://vanniksoftware.github.io/repository/"

Let me know if that helps.

Cheers,

Mike

from play2-morphia-plugin.

cmoro-deusto avatar cmoro-deusto commented on June 8, 2024

Looks like Mike changed the personal page name. Use this:

resolvers += "Mike Nikles repository" at "http://mikenikles.github.io/repository/"

Kudos to Mike for the repo

from play2-morphia-plugin.

mikenikles avatar mikenikles commented on June 8, 2024

Omg... My apologies! You're right @cmoro-deusto, I did change my Github username and had to update the repository URL. Sorry for the inconvenience that caused!

from play2-morphia-plugin.

cmoro-deusto avatar cmoro-deusto commented on June 8, 2024

No problem at all @mikenikles Thanks a lot for your repo and the module upgrade! 👍

from play2-morphia-plugin.

r3versed avatar r3versed commented on June 8, 2024

Thanks Mike for the repo.

I'm upgrading one of my projects to Play 2.2.2.
I noticed that I couldn't connect if I used the db.seeds, db.name, db.username and db.password variables in my config file. I kept getting the following error:
play.api.UnexpectedException: Unexpected exception[RuntimeException: com.mongodb.CommandFailureException: { "serverUsed" : "xxx:xxxx" , "ok" : 0.0 , "errmsg" : "unauthorized"}]

Then I went though the source and noticed the mongoURI variable, which does work.
(e.g. morphia.db.mongoURI="mongodb://username:password@ipaddress:port/databasename")

from play2-morphia-plugin.

agnibha avatar agnibha commented on June 8, 2024

http://mikenikles.github.io/repository/ and http://vanniksoftware.github.io/repository/ both give me 404. :(

from play2-morphia-plugin.

cmoro-deusto avatar cmoro-deusto commented on June 8, 2024

@agnibha you just need to add resolvers

resolvers += "Mike Nikles repository" at "http://mikenikles.github.io/repository/"

and

"leodagdag" %% "play2-morphia-plugin" % "0.0.17"

That will lead sbt to the proper pom file at:

http://mikenikles.github.io/repository/leodagdag/play2-morphia-plugin_2.10/0.0.17/play2-morphia-plugin_2.10-0.0.17.pom

from play2-morphia-plugin.

agnibha avatar agnibha commented on June 8, 2024

Thanks @cmoro-deusto ! Works for me :)

from play2-morphia-plugin.

cmoro-deusto avatar cmoro-deusto commented on June 8, 2024

No prob @agnibha :)

from play2-morphia-plugin.

invasionofsmallcubes avatar invasionofsmallcubes commented on June 8, 2024

[warn] Note: Some unresolved dependencies have extra attributes. Check that these dependencies exist with the requested attributes.
[warn] leodagdag:play2-morphia-plugin:0.0.17 (sbtVersion=0.13, scalaVersion=2.10)
[warn]

[warn] ==== Mike Nikles repository: tried
[warn] http://mikenikles.github.io/repository/leodagdag/play2-morphia-plugin_2.10_0.13/0.0.17/play2-morphia-plugin-0.0.17.pom

from play2-morphia-plugin.

ivpusic avatar ivpusic commented on June 8, 2024

these things should be in readme. Library without good readme/documentation is like car without keys.

from play2-morphia-plugin.

Dimss avatar Dimss commented on June 8, 2024

Hi, I'm using play 2.3.8, I added this
resolvers += "Mike Nikles repository" at "http://mikenikles.github.io/repository/"
and this
"leodagdag" %% "play2-morphia-plugin" % "0.0.17"

but still getting the sbt.ResolveException: unresolved dependency: leodagdag#play2-morphia-plugin_2.11;0.0.17: not found
What I did wrong?

from play2-morphia-plugin.

neilnamoro avatar neilnamoro commented on June 8, 2024

hi guys,

i was able to make my Play! project run using the above mentioned procedures, but i have noticed that the version of Morphia being pulled by the plugin to my project is 0.105 instead of the latest 0.108

from play2-morphia-plugin.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.