Jenkins + Play 1.2.4 : problems with cobertura lock files / report

Clearly this is due JVM locking issues either in your JVM implementation, or rather, in the way you are deploying your cobertura JAR. Jenkins can spawn up alot of JVM threads, and if cobetura is on your global classpath, its possible that some weird collisions are happening. I assume, ultimately, that this should be attributed … Read more

any experience with “Play” java web development framework? [closed]

I agree with Jason that Play might just prove to be better than Grails. With four Grails projects under my belt (preceded by two Tapestry projects and one Wicket project), I’m seriously looking at Play next. One of the things I thought was cool about Grails is that “everything’s Groovy.” That is, you use Groovy … Read more

Accessing the application.conf properties from java class with Play! 2.0

Try Play.application().configuration().getString(“your.key”) As noted in the comment (nico_ekito), please use play.Play and not play.api.Play. play.api.Play is for scala controllers (see comment by Marcus biesior Biesioroff) Additionally, play uses https://github.com/typesafehub/config under the hood so it can also provide some insights.

Experiences on free and low-cost hosting for play framework applications? [closed]

I had a bad experience with GAE, as you are forced to work with their API for many things, some components don’t work as GAE blacklists some package they require, etc. Also, moving from GAE to another platform can be painful. Amazon can get expensive depending on the resources you use. I don’t know about … Read more

What are the problems with an ADT encoding that associates types with data constructors? (Such as Scala.)

To the best of my knowledge, there are two reasons why Scala’s idiomatic encoding of case classes can be bad: type inference, and type specificity. The former is a matter of syntactic convenience, while the latter is a matter of increased scope of reasoning. The subtyping issue is relatively easy to illustrate: val x = … Read more

Optimizing JS from WebJars using sbt-rjs in a Play 2.3.x app

I am using Play 2.4.3. Added addSbtPlugin(“com.typesafe.sbt” % “sbt-rjs” % “1.0.7”) to plugins.sbt // rjs = RequireJS, uglifies, shrinks to one file, replaces WebJars with CDN client accepts them pipelineStages := Seq(rjs, digest, gzip) This in my build.sbt does all the shrinking work etc. to bower JS, and webjars.

How to handle optional query parameters in Play framework

Encode your optional parameters as Option[String] (or Option[java.util.Date], but you’ll have to implement your own QueryStringBindable[Date]): def birthdays(from: Option[String], to: Option[String]) = Action { // … } And declare the following route: GET /birthday controllers.Application.birthday(from: Option[String], to: Option[String])

Play! framework uses a of statics

Play uses static methods only when it makes sense: in the controller layer, because controllers are not object oriented. Controllers act as mapper between the HTTP world (that is stateless, and request/response based) and the Model layer that is fully object oriented. in the model layer for factory methods, like findAll(), count(), create() which of … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)