Questions tagged [playframework-2.0]

Play Framework 2.0 is a major revision of Play, a Ruby on Rails-like framework for the Java platform. Version 2.0 introduces features such as the use of Scala language, Akka actors, Scala templates and a build system (SBT).

-1
votes
0answers
15 views

Yarn application has already ended! It might have been killed or unable to launch app

I am trying to create a play scala application to create a SparkSession in yarn mode with the below code:val sparkSession=SparkSession.builder.master("yarn").appName("Spark Yarn Mode Testing"...
0
votes
0answers
13 views

Testing request cached with Play

In my application i want to cache the http requests so i followed this documentation: https://www.playframework.com/documentation/2.6.x/ScalaCache#Caching-HTTP-responsesBy this way to caching ...
0
votes
1answer
25 views

play 2.6.x environment dependency injection

I am trying to find the mode (Dev vs Prod) of my play application. I have injected Environment as below:public class Sample{@Injectprivate play.Environment environment;and I am invoking ...
0
votes
1answer
25 views

Java EBean Play Framework. findOne() not working ? how to return one object instead of findList()?

//Below code is Not Working//Here, my query just returns one object, So I am trying to use findOne() //method. Query<Topic> query=Ebean.find(Topic.class);Topic topic=new Topic();Topic ...
0
votes
0answers
21 views

Common route pattern in PlayScala

Is there any possibilities to define a common route pattern in PlayScala something similar to the one in asp.net mvc. As of now i have to define route for each and every page and ajax request.
0
votes
0answers
21 views

how to deploy playframework with mongodb on kubernetes

I want to deploy our project built with nginx, playframework,and mongodb etc. to Kubernetes. However, i couldn't find any tutorials on internet how to do that. Could anyone advise where i can find ...
0
votes
2answers
31 views

Service class and logging design Scala with Futures

I have a service class that gets some data from a database (for context, I'm using Play! Framework). Here's an example method:def getAccessToken(id: BSONObjectID): Future[Option[String]]={...
0
votes
0answers
33 views

cant configure ensime on a play 2.1.0 project

I have a play 2.1.0 project. I'm using atom to edit files, and I want to configure the ensime plugin, but cant run sbt ensimeConfig to create the .ensime fileI followed this guide: http://ensime....
1
vote
0answers
44 views

Fontawesome loading but not displaying properly Play Framework Firefox

To start, I am new to Play framework and Scala, but not Java. I have confirmed that this is not an issue in Google Chrome. first just tried copy-pasting the cdn, then realized I needed to serve the ...
0
votes
0answers
14 views

Play2.5.x Java : Unable to modify the RequestHeader

I have a scenario wherein we are trying to modify the RequestHeader before it reaches the Controller. I tried doing it in Filter, RequestHandler and also by creating an Action, but though I was able ...
0
votes
0answers
13 views

How to perform SQL IN in slick where values for IN are retrieved from a Map?

I have a Map[Rep[Int], List[String]] and I want the VALUES(...) for the IN clause to be retrieved from the Mapval myMap: Map[Rep[Int], List[String]]=Map( (10: Rep[Int]) -> List("one", "two"))...
0
votes
0answers
31 views

Reassigning variable in loop, Scala Play framework

I have a problem with reassigning variables..@myVar={<a href="http://stackoverflow.com.mevn.net/uno">Uno</a>}@for (item <- LOOP ) {@myVar={<a href="http://stackoverflow.com.mevn.net/@item.url">@item.value</a>} //This part is not ...
0
votes
0answers
15 views

Should Play automatically resolve route? [duplicate]

I have two routes POST /users/:userId/policies/:policyId controllers.PolicyController.attach(policyId: java.util.UUID, userId: java.util.UUID)POST /user/:userId/policies/:policyName ...
0
votes
0answers
31 views

How to use ScalaTest to test multiple simultaneous requests to db?

If you have some GET dao call, for instance:def getPersonById(perId: Long): Future[Person]={val getQuery=quote {query[Person].filter(_.personId==lift(perId))}context.run(...
0
votes
0answers
15 views

Joins - mix Ebean Query and Native SQL

I can´t belive thats not possible to mix normal ebean.queries and native-sql in the "from and join"-part of a query (seems to work in the where part with where().raw(...)) - so I wanted to ask if I´m ...

153050per page
angop.ao, elkhabar.com, noa.al, afghanpaper.com, bbc.com, time.com, cdc.gov, nih.gov, xnxx.com, github.com,