playframework-2.0 Questions

1

Solved

After updating to play 2.6 I noticed that the websocket connection gets closed after 85 seconds when it is idle. In play 2.5 however the websocket connection stays open for +15 minutes when idle. W...
Grebe asked 2/7, 2017 at 16:50

2

hi i have some problem with play framework forms public class User extends Model{ public String firstName; @Required public String lastName; @Required public String password; @Required pu...
Psychophysics asked 23/5, 2013 at 13:8

4

Solved

How can I log all requests coming in to a Play 2 application, in a similar way to how Apache logs (i.e. including the URL and client IP)?
Ariellearies asked 24/5, 2013 at 10:48

2

Solved

hi i am trying to display a form and following a proper tutorial.. But i am getting compilation error which is.. missing arguments for method apply in object form; follow this method with `_' if ...
Moidore asked 22/8, 2012 at 9:56

6

Solved

I'm using Play 2.1. I'm using the default logger play.api.Logger. I'm confused about how it works. In my scala code, a line in class "com.myapp.tickets" in the method "getPayment()" like this Log...
Preamble asked 6/3, 2013 at 21:10

5

Solved

I want to use the getInstance method of the Guice Injector class in Play Framework 2.4, how can I access it? I have used the Guice FactoryModuleBuilder for implementing a factory that returns anot...
Balenciaga asked 19/1, 2016 at 5:57

2

I have created an application in Elastic Beanstalk to host a play framework 2 app there using instructions from this project. I have packaged the project exactly like Docker needs but when I uploa...
Smoothie asked 13/9, 2014 at 8:25

5

Solved

I wanted the Play! framework dist command to add some folders and files to the final zip file. They are needed for the application to work. Is there a magic project/Build.scala configuration to ma...
Tidemark asked 1/9, 2012 at 22:19

1

I have divided my application into different projects in PLay 2. But I just realised I do not know how to run multiple play application in the same server. Anyone knows how to do it? Let us suppo...
Breakout asked 20/5, 2017 at 9:0

7

Solved

What’s the preferred way to handle 404 errors with Play 2.0 and show a nice templated view?
Riding asked 3/4, 2012 at 8:10

0

I've got a play framework application and a problematic action. I'm trying to parse a request body using parse.form and then have an ActionFilter run against that parsed body. So far I've got some...

2

I'm hoping someone with more Ebean expertise than myself can help me with an erratic issue I'm troubleshooting now. The environment: Java 1.7.0_17 MySQL 5.5 Play Framework 2.1.1 (however I've ...
Walczak asked 10/12, 2013 at 17:45

2

Solved

I want to use akka's scheduler in my play 2.0(using java) framework application to send email reminders on a particular date and time.I am new to play 2.0. Please tell me the procedure to use the a...
Unwatched asked 11/4, 2012 at 10:54

3

Solved

I am setting up a project using Play 2 and I am already able to debug the webapp using eclipse remote debugging. Though, I'd also like to use breakpoints along my tests. Does anyone know how setup ...
Serendipity asked 4/3, 2013 at 11:57

2

Solved

In play1, we can get the app path by: Play.applicationPath How to do the same in Play2?
Berg asked 15/2, 2012 at 14:0

2

Solved

I have a play framework application which I have migrated to run on play framework 2.4.2. It is providing a RESTful API to a javascript/html frontend. Now I have some problems introducing caching. ...
Atheistic asked 5/8, 2015 at 13:29

3

I often have to serialize/deserialize sum types (like Either[S,T]), and I haven't yet found a general or elegant way to do it. Here's an example type (essentially equivalent to Either) sealed trai...
Smarm asked 26/8, 2013 at 23:35

1

Solved

I tried upgrading to reactive mongo 0.12.1 with play 2.5.12 but when I run the JVM quits on me and I get the following stack trace: Uncaught error from thread [application-akka.actor.default-dispa...

1

Solved

I am using Play 2.5.10, Play-slick 2.0.2, and my activator-generated project comes with scalatest and code like this: class TestSpec extends PlaySpec with OneAppPerSuite {...} I managed to test ...
Sporophore asked 3/2, 2017 at 9:33

1

Solved

Is there a way to avoid recreating the connection pool to an in-memory database when reloading after a code change? [info] - application - Shutting down connection pool. [info] - application - Cre...
Anselme asked 19/7, 2015 at 19:22

9

I'm trying to make a route to a specific static file but everything I'm trying ends with an error. I've made 3 different attempts: 1. GET /file staticFile:/public/html/file.html The error I ge...
Locution asked 20/3, 2012 at 18:36

1

Solved

I have worked with PlayFramework for Scala. Now I am starting with Spring (Spring Boot) for the first time. Is their any way to make HTML templates similar to Play framework. e.g. passing HTML cont...

4

I'm a beginner user of Play Framework 2.1.3 and I have just created a new Java application and I have run play eclipse to generate the eclipse project for it. I have also tested so that it works by...
Seoul asked 2/9, 2013 at 14:22

2

I'm a Play framework & SBT newbie. In my Play for Java project, in one of the class, I need to read property files outside my Play application using ResourceBundle.getBundle(). I'm already ab...
Chatman asked 28/3, 2014 at 11:35

2

I have a Form with a nested list of mappings, but have problems iterating this in the template. The Form looks like this val assignmentForm : Form[AssignmentData] = Form( "acceptedSign" -> non...
Customer asked 14/10, 2012 at 19:46

© 2022 - 2024 — McMap. All rights reserved.