Questions tagged [playframework-2.3]

Play is based on a lightweight, stateless, web-friendly architecture and features predictable and minimal resource consumption (CPU, memory, threads) for highly-scalable applications.

Play is based on a lightweight, stateless, web-friendly architecture and features predictable and minimal resource consumption (CPU, memory, threads) for highly-scalable applications.

It's possible to learn from some general questions in the Play 2.0 tutorial on StackOverflow

985 questions
37
votes
8 answers

22 fields limit in Scala 2.11 + Play Framework 2.3 Case classes and functions

Scala 2.11 is out and the 22 fields limit for case classes seems to be fixed (Scala Issue, Release Notes). This has been an issue for me for a while because I use case classes to model database entities that have more than 22 fields in Play +…
luis
  • 1,849
  • 3
  • 16
  • 17
29
votes
2 answers

Scala case having 22 fields but having issue with play-json in scala 2.11.5

With Scala 2.11, we are allowed to have more then 22 fields in a case class right?? case class SomeResponse( var compositeKey: String, var id1: String, …
mane
  • 1,149
  • 16
  • 41
25
votes
2 answers

Play application dies in idle state, restart on new request?

I am using HikariCp, Hibernate with my playframework application in java. After few mins of idle state, it seems play application dies, and when it gets new request it starts again. Sometime I have also seen Db persistence error with message that…
21
votes
1 answer

How should routesImport be defined in build.sbt in Play 2.3?

I'm upgrading a project from Play 2.2 to 2.3.0. The following routesImport line in build.sbt stopped resolving and Play says val not found error: lazy val root = (project in file(".")).enablePlugins(PlayScala) routesImport += "binders._" I can't…
bloo
  • 585
  • 1
  • 5
  • 15
20
votes
2 answers

Caching an action in a multi-language website using Play Framework's Cached API

In order to cache actions per label and language for a given number of seconds, I wrote the following helper method (where label, is the name I give to my action): def cacheResponseFor(label: String, duration: Int)(action: EssentialAction) = { …
Peter
  • 7,020
  • 4
  • 31
  • 51
19
votes
5 answers

Restarting Play application Docker container results in 'This application is already running' - RUNNING_PID is not deleted

Edit: There is a related issue being discussed on Github but in another mode of deployment (Typesafe Activator UI and not Docker). I was trying to simulate a system reboot in order to verify the Docker restart policy which declares to be able to…
Steven
  • 1,218
  • 3
  • 18
  • 38
16
votes
3 answers

How to set up asset fingerprinting in Play 2.3.4?

Versions: play 2.3.4 sbt 0.13.1 scala 2.11.2 I've followed the documentation on playframework.com to enable fingerprinting on public assets, but calls to routes.Assets.versioned never produce a versioned filename with a digest hash. Relevant lines…
biegel
  • 570
  • 5
  • 12
15
votes
2 answers

Play framework inconsistent build

I'm getting the following stack trace first time i run activator run [warn] [NOT FOUND ] org.apache.commons#commons-compress;1.7!commons-compress.jar (1ms) [warn] ==== activator-launcher-local: tried [warn] …
Note89
  • 251
  • 1
  • 9
14
votes
2 answers

Play 2.3 implicit json conversion causes null pointer exception

I'm trying to parse json into my case class DealFormMap case class DealFormMap(limit: Option[Int], filter: Option[DealFormFilterMap]) case class DealFormFilterMap(date: Option[String], code: Option[String]) implicit val dealFormMapReads:…
Caballero
  • 11,546
  • 22
  • 103
  • 163
14
votes
2 answers

Why are integration tests in a Play/Scala project not executed when using "sbt it:test"?

I have a Play Framework 2.3 project in which I'd like to separate unit tests and functional tests as follows: running sbt test should run unit tests and exclude integration tests running sbt it:test should run integration tests only The Scala…
Mike
  • 1,176
  • 3
  • 14
  • 26
13
votes
1 answer

Playframework 2.3.0 issue with Scala IDE (Kepler)

Environment: Java 8, Scala 10, play 2.3.0 sbt plugin, scala ide kepler Version: 4.3.0 Issue: 1. Generated classes for "index.scala.html" and my own created new templates is populating properly into…
Ankur Bhargava
  • 131
  • 1
  • 4
13
votes
2 answers

Why are managed css/less assets not processed by sbt-less plugin in Play 2.3?

I upgraded to play 2.3, and followed the instructions described in Using LESS CSS to use the less plugin. However, the less file is not being compiled to css and sent to target. The JS files however are working. All I did was to add the less and…
ferk86
  • 2,325
  • 1
  • 23
  • 27
13
votes
2 answers

Play Framework 2.3 and GAE - Google App Engine

Is there any sample application that uses Play Framework 2.3 and Google App Engine?
Matt Harasymczuk
  • 1,728
  • 2
  • 21
  • 29
12
votes
1 answer

Can't get sbt-web to work with npm for frontend dependencies

I'm trying to use sbt-web and sbt-js-engine in particular to resolve my dependencies with npm instead of webjars. My problem is that the dependencies are not copied in the target/web/public/main/lib folder during the web-stage task as it is the case…
ndeverge
  • 21,378
  • 4
  • 56
  • 85
12
votes
1 answer

How to add query string parameter to FakeRequest in Play Framework 2.3?

Here is the route corresponding to my controller method : GET /my-resources controllers.MyResourceController.list(from: String ?= null, pageSize: Integer ?= null, sort: String ?= null) I have no problem to use from, pageSize and sort parameters in…
c4k
  • 4,270
  • 4
  • 40
  • 65
1
2 3
65 66