Slick 3 sample do not work with last Play 2 (computer-database)

112 views
Skip to first unread message

Миша Мархаин

unread,
Jul 30, 2015, 4:09:45 PM7/30/15
to play-framework
code on git - https://github.com/playframework/play-slick/tree/master/samples/computer-database
Use last play 2 version.
My error



Help run samples.
11.png

Mirco Dotta

unread,
Jul 31, 2015, 4:12:50 AM7/31/15
to play-fr...@googlegroups.com
play-slick is a sbt multi-module project, hence you need to run it from the root.

Mircos-MacBook-Pro-2:~/Projects/oos/play-slick$ sbt
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=384m; support was removed in 8.0
[info] Loading global plugins from /Users/mirco/.sbt/0.13/plugins
[info] Loading project definition from /Users/mirco/Projects/oos/play-slick/project
[info] Compiling 1 Scala source to /Users/mirco/Projects/oos/play-slick/project/target/scala-2.10/sbt-0.13/classes...
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/Users/mirco/.ivy2/cache/org.slf4j/slf4j-simple/jars/slf4j-simple-1.7.12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/Users/mirco/.ivy2/cache/org.slf4j/slf4j-nop/jars/slf4j-nop-1.7.7.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Actual binding is of type [org.slf4j.impl.SimpleLoggerFactory]
[info] Set current project to play-slick-root (in build file:/Users/mirco/Projects/oos/play-slick/)
> projects
[info] In file:/Users/mirco/Projects/oos/play-slick/
[info]    basic-sample
[info]    computer-database-sample
[info]    dao-sample
[info]    di-sample
[info]    docs
[info]    iteratee-sample
[info]    json-sample
[info]    play-slick
[info]    play-slick-evolutions
[info]  * play-slick-root
[info]    samples
> project computer-database-sample
[info] Set current project to computer-database-sample (in build file:/Users/mirco/Projects/oos/play-slick/)
[computer-database-sample] $ run
[info] Updating {file:/Users/mirco/Projects/oos/play-slick/}play-slick...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Updating {file:/Users/mirco/Projects/oos/play-slick/}play-slick-evolutions...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Updating {file:/Users/mirco/Projects/oos/play-slick/}computer-database-sample...
[info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[warn] Scala version was updated by one of library dependencies:
[warn] * org.scala-lang:scala-library:(2.10.4, 2.10.0) -> 2.10.5
[warn] To force scalaVersion, add the following:
[warn] ivyScala := ivyScala.value map { _.copy(overrideScalaVersion = true) }
[warn] Run 'evicted' to see detailed eviction warnings
[info] Compiling 1 Scala source to /Users/mirco/Projects/oos/play-slick/src/evolutions/target/scala-2.10/classes...
[warn] /Users/mirco/Projects/oos/play-slick/src/evolutions/src/main/scala/play/api/db/slick/evolutions/internal/DBApiAdapter.scala:51: method withSession in trait DatabaseDef is deprecated: Use the new Action-based API instead
[warn]     def url: String = dbConfig.db.withSession { _.metaData.getURL }
[warn]                                   ^
[warn] /Users/mirco/Projects/oos/play-slick/src/evolutions/src/main/scala/play/api/db/slick/evolutions/internal/DBApiAdapter.scala:55: method withSession in trait DatabaseDef is deprecated: Use the new Action-based API instead
[warn]       dbConfig.db.withSession { session =>
[warn]                   ^
[warn] /Users/mirco/Projects/oos/play-slick/src/evolutions/src/main/scala/play/api/db/slick/evolutions/internal/DBApiAdapter.scala:62: method withTransaction in trait DatabaseDef is deprecated: Use the new Action-based API instead
[warn]       dbConfig.db.withTransaction { session =>
[warn]                   ^
[warn] three warnings found

--- (Running the application, auto-reloading is enabled) ---

[info] p.a.l.c.ActorSystemProvider - Starting application default Akka system: application
[info] p.c.s.NettyServer$ - Listening for HTTP on /0:0:0:0:0:0:0:0:9000

(Server started, use Ctrl+D to stop and go back to the console…)----------------
Mirco Dotta - @mircodotta

Typesafe – Build reactive apps!

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/5dd862c0-306e-4817-a882-f167f6bb9715%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<11.png>

signature.asc

Миша Мархаин

unread,
Jul 31, 2015, 8:51:15 AM7/31/15
to play-fr...@googlegroups.com
HI Mirco Your answer is greate, thanks for the help

--
You received this message because you are subscribed to a topic in the Google Groups "play-framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/play-framework/O8kdNtEWF5U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/AAD9EBC9-13D2-49AA-9701-5412C008752D%40typesafe.com.
Reply all
Reply to author
Forward
0 new messages