--
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.
For more options, visit https://groups.google.com/groups/opt_out.
play {
akka {
akka.loggers = ["akka.event.slf4j.Slf4jLogger"]
loglevel = WARNING
actor {
default-dispatcher = {
fork-join-executor {
parallelism-min = 300
parallelism-max = 300
}
}
}
}
}Enter code here...
play.filters.gzip.GzipFilter
class. val appDependencies = Seq(
javaCore
,javaJdbc
,javaJpa
,cache
,filters //PLAY 2.2 to work with GZIP
,"mysql" % "mysql-connector-java" % "5.1.21"
,"org.eclipse.persistence" % "eclipselink" % "2.5.0"
,"com.jolbox" % "bonecp" % "0.8.0-rc1"
,"com.h2database" % "h2" % "1.3.172"
)
val appDependencies = Seq(
// many dependencies not shown "org.webjars" % "bootstrap" % "2.3.2","com.typesafe.play" %% "anorm" % "2.2.0","com.typesafe.play" %% "cache" % "2.2.0","com.typesafe.play" %% "play-json" % "2.2.0","com.typesafe.play" %% "play-jdbc" % "2.2.0" )
resolvers ++= Seq( "webjars" at "http://webjars.github.com/m2",Resolver.url("play-plugin-releases", new URL("http://repo.scala-sbt.org/scalasbt/sbt-plugin-releases/"))(Resolver.ivyStylePatterns)//"Mandubian snapshots" at "https://raw.github.com/mandubian/mandubian-mvn/master/snapshots/",
)
Listening for transport dt_socket at address: 9999
[info] Loading project definition from /Users/corrupt/gomob/cmsapi2/cmsapi/project
[info] Set current project to cmsapi (in build file:/Users/corrupt/gomob/cmsapi2/cmsapi/)
_
_ __ | | __ _ _ _
| '_ \| |/ _' | || |
| __/|_|\____|\__ /
|_| |__/
play 2.2.0 built with Scala 2.10.2 (running Java 1.6.0_51), http://www.playframework.com
> Type "help play" or "license" for more information.
> Type "exit" or use Ctrl+D to leave this console.
[cmsapi] $ compile
[success] Total time: 0 s, completed Sep 23, 2013 9:23:32 PM
[cmsapi] $ test
import sbt._
import Keys._
import play.Project._
import de.johoop.jacoco4sbt._
import JacocoPlugin._
object ApplicationBuild extends Build {
val appName = "cmsapi"
val appVersion = "1.0-SNAPSHOT"
lazy val s = Defaults.defaultSettings ++ Seq(jacoco.settings:_*)
val appDependencies = Seq(
javaCore, javaJdbc, javaEbean, cache,
"mysql" % "mysql-connector-java" % "5.1.18",
"com.typesafe" %% "play-plugins-mailer" % "2.1-RC2",
"commons-collections" % "commons-collections" % "2.1.1",
"org.jdom" % "jdom" % "2.0.2",
"commons-io" % "commons-io" % "2.4",
"commons-lang" % "commons-lang" % "2.6",
"commons-codec" % "commons-codec" % "1.8"
)
val main = play.Project(appName, appVersion, appDependencies, settings = s).settings(
// Add your own project settings here
parallelExecution in jacoco.Config := false
)
}
// Comment to get more information during initialization
logLevel := Level.Warn
// The Typesafe repository
resolvers += "Typesafe repository" at "http://repo.typesafe.com/typesafe/releases/"
// Use the Play sbt plugin for Play projects
addSbtPlugin("com.typesafe.play" % "sbt-plugin" % "2.2.0")
//libraryDependencies ++= Seq(
//"org.jacoco" % "org.jacoco.core" % "0.5.9.201207300726" artifacts(Artifact("org.jacoco.core", "jar", "jar")),
//"org.jacoco" % "org.jacoco.report" % "0.5.9.201207300726" artifacts(Artifact("org.jacoco.report", "jar", "jar"))
//)
addSbtPlugin("de.johoop" % "jacoco4sbt" % "2.1.0")
--
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/jJ1WCsU8O7c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to play-framewor...@googlegroups.com.
--
exclude("org.scala-stm", "scala-stm_2.10.0") exclude("play", "*")
--
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.
$ play.bat new test
Error during sbt execution: Could not find configuration file 'file:///C:/Users/Avell%20G1511/Documents/bin/play/framework/sbt/play.boot.properties'. Searched:
file:/C:/Users/Avell%20G1511/
file:/C:/Users/Avell%20G1511/
file:/C:/Users/Avell%20G1511/Documents/bin/play/framework/sbt/
--
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.
You can get a detailed report on dependencies by opening:target/resolution-cache/reports/yourprojectidetc-compile.xml
never mind, I got it working by deleting the target directory. Have not figured out what to look from the report though.
--
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/jJ1WCsU8O7c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I got everything working with 2.2.0. Needed to wrap SimpleResult in a Future in a few places, and to return Promise.pure in others. The build.sbt format is essentially undocumented for Play Scala.
Also I see this message when I start up Play. Not a big deal, just thought it was something internal to Play that might need attention. I don't think any of my code is responsible for this:[WARN] [09/25/2013 11:22:17.691] [play-internal-execution-context-1] [EventStream(akka://play)] [akka.event-handlers] config is deprecated, use [akka.loggers]
@Jari were you also having the scala-stm problem? Removing my target folder didn't solve the problem
--
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/jJ1WCsU8O7c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
https://github.com/playframework/playframework/issues/1695
which is a real blocker for us.
Thanks,
Manuel
--
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.
Thanks Jari. Is anyone from the core team looking into this?
--
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/jJ1WCsU8O7c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
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.
--
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/jJ1WCsU8O7c/unsubscribe.
To unsubscribe from this group and all its topics, send an email to play-framewor...@googlegroups.com.
The Play team is proud to announce the release of Play 2.2.0!This is a huge release with contributions from 140 people in the Play community. The highlights from this release include:
- New results structure for Java and Scala
- Better control over buffering and keep alive
- New action composition and action builder methods
- Improved Java Promise API
- Iteratee library execution context passing
- SBT 0.13 support
- New stage and dist tasks
- Built in gzip support
For more details on the highlights, visit:For a migration guide for upgrading from Play 2.1 to 2.2, visit:You can download this release from:Or, if you're interested in getting started with new Play projects with templates and tutorials to give you a head start, check out Typesafe Activator:A big thankyou to everyone in the community that made this release happen, particularly the earlier adopters who tested our milestone and RC releases.Enjoy!
Hi,I updated my little play project to play 2.2 from 2.1.4 and noticed that it failed to compile due to out of memory error:java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC overhead limit exceeded
My sbt heap memory setting was 1GB, which is enough for 2.1.4. Of course I could set it to 2GB or more. However, my project is very small, only 11 scala files and 2 dependencies declared in Build.sbt. Draining half of my laptop's ram just for such a small project isn't really a pleasing experience.Is there any trick to reduce the memory footprint to build for play 2.2?
import play.api.mvc._
object LoggingFilter extends Filter {
def apply(next: (RequestHeader) => Result)(rh: RequestHeader) = {
val start = System.currentTimeMillis
def logTime(result: PlainResult): Result = {
val time = System.currentTimeMillis - start
Logger.info(s"${rh.method} ${rh.uri} took ${time}ms and returned ${result.header.status}")
result.withHeaders("Request-Time" -> time.toString)
}
next(rh) match {
case plain: PlainResult => logTime(plain)
case async: AsyncResult => async.transform(logTime)
}
}
}
Play 2.2 Scala in dev mode is absurdly fast loading browser pages, zero lag.
object Global extends WithFilter(MyFilter)
object MyFilter extends Filter {
import play.api.libs.concurrent.Execution.Implicits._
def apply(next: (RequestHeader) => Future[SimpleResult])(rh: RequestHeader): Future[SimpleResult] = {
val isSessionStarted: Boolean = ...
if (isSessionStarted) {
next(rh)
} else {
....
next(rh).map(_.withSession(rh.session + SessionStarted))
}
}
}