playframework-2.0 Questions

3

Solved

My play project is massive and the routes file is approx 1Mb. Now, when scala compiles, I have the exception "Method code too large" because of the routing and the reverse routing scala files creat...
Nordau asked 26/11, 2013 at 8:19

4

Solved

I have a large legacy Java application with a Grails front end, and I'm working on replacing the Grails front end with a new one written in Play. Some of the (Maven) module dependencies in the lega...
Escurial asked 22/3, 2013 at 0:22

5

Solved

I have Playframework 2 project with Scala (very small one). It uses Scala Anorm library. I have the code like this: package models .. import anorm.SqlParser._ ... val rowParser = scalar[Long] ...
Majestic asked 22/11, 2012 at 21:59

8

Solved

I found the following question/answer: Test MultipartFormData in Play 2.0 FakeRequest But it seems things have changed in Play 2.1. I've tried adapting the example like so: "Application" should ...
Diaconate asked 28/2, 2013 at 11:0

3

Solved

Recently, I tried to use java-image-scaling library to resize the image files. So, I set java-image-scaling jar file through Eclipse as a way that usual Eclipse project sets its external jar file. ...
Gyno asked 13/1, 2013 at 8:42

3

Solved

I'm currently using the following with Play2/Scala using the FileUploader Javascript utility to upload a file to my server: def fileUploader = Action(parse.multipartFormData) { request => requ...
Flimsy asked 23/2, 2013 at 1:52

3

Solved

Documentation suggests testing API client based on WSClient using a mock web service, that is, create a play.server.Server which will respond to real HTTP requests. I would prefer to create WSResp...
Congreve asked 12/1, 2016 at 20:50

4

I am using Play with Scala and I am trying to create a singleton, and i want to inject it from its trait and not directly. for example: @ImplementedBy(classOf[S3RepositoryImpl]) trait S3Repositor...
Hulse asked 17/2, 2016 at 12:50

3

We have a huge legacy code with complex flow having sync and async operations. So we need to log an unique id for a specific request in all the log messages, where operations performed are running ...
Leninism asked 7/4, 2016 at 5:40

3

Solved

I try to send an HTTP POST request to a service endpoint using Play2/Scala WS API. Since there is no parameters to be sent in the HTTP POST body, how can I send it using WS.url("http://service...
Photoemission asked 6/3, 2013 at 18:40

9

Solved

I have a Play Framework application and I was using Hibernate 4.2.5.Final (which is retrieved via the Maven dependency manager). I decided to upgrade to Hibernate 4.3.0.Final, recompile my applicat...
Holbrook asked 22/12, 2013 at 22:6

5

I have written logback configuration file for my application, but when I was doing maven clean install(mvn clean install), it generated a catalina.home_IS_UNDEFINED directory with log file in the p...
Evangelineevangelism asked 12/6, 2014 at 12:31

13

Solved

I want to add an object to the Global scope, and in order to construct it I need to pass it a path to a file. I don't want to hard code the file path in the source, and so I want to get that path f...
Mohn asked 23/3, 2012 at 18:24

3

I'm using Scala in Play 2.0, and I'm getting a 413 error whenever large data (over 100KB) is POSTed to a particular endpoint. It's using the anyContent parser, and it's not reasonable to use any ot...
Smog asked 27/7, 2012 at 23:4

3

Solved

It's probably a very easy question but I'm having trouble finding a clean/working solution. I just want to remove a field from a json object I have. Let's say I have : val body:Option[JsValue] =...
After asked 31/7, 2014 at 18:10

5

Solved

When I try to send a mail from scala Playmework, I got following error, [ERROR] [10/10/2013 13:31:16.263] [play-akka.actor.default-dispatcher-75] [TaskInvocation] Sending the email to the followin...
Montpelier asked 10/10, 2013 at 10:6

4

Solved

I try to compile a scala example in the book: "Play for Scala" but get a following compilation error on Play console: C:\Play\exp\ch6_implicits>activator run [info] Loading project definition f...
Gravettian asked 30/5, 2015 at 8:22

14

Solved

Previously in Play! v1 it was really easy to define configuration variables in application.conf and then access them like so: play.configuration("db.driver") However now I can't find anything in...
Fosterling asked 25/3, 2012 at 4:23

4

I am having the same problem as this. I will try and provide more information. I am using Play Framework, writing in Java. I wrote a plugin called PushNotificationQueue. PushNotificationQueue run...
Indecipherable asked 12/9, 2014 at 19:14

2

Solved

When I run Play Framework using https port, application starts on two ports - default (9000) and https (443). How to disabled default 9000 port and run the Play application ONLY on https port? I r...
Profane asked 21/7, 2014 at 11:37

5

When I upload large files (greater than 1 MB) in play framework 2.0 I get "413 Request Entity Too Large" error. Could you please anybody suggest how to get rid of this? Thanks, UPDATE I h...
Subminiature asked 4/7, 2012 at 10:43

2

Solved

What is the difference between Play activator and using just sbt with play plugin? As I can see many operations are already supported by sbt and activator only re-route call to sbt. So, i was tryin...
Thach asked 14/8, 2014 at 21:51

5

Solved

Is there a shorter/better way to do the following : mySeq.map { elmt => // do stuff } if (mySeq.isEmpty) { // some other stuff } Ps : I'm using PlayFramework and this is meant to be use...
Barrett asked 21/8, 2012 at 8:31

5

Solved

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 D...

2

When Play restarts after a file change, I occasionally get this error: play.PlayExceptions$UnexpectedException: Unexpected exception[BootException: Cannot redefine component. ID: compiler-interfac...
Disherison asked 21/5, 2015 at 7:12

© 2022 - 2024 — McMap. All rights reserved.