Questions tagged [play2-mini]

Play-mini is a subset of the Play! Framework that consists of a REST layer sitting on top of the Netty NIO socket server. It offers the ability to deploy Akka applications for service layer jobs that don't need the rest of the Play tools (e.g. the MVC/interface layer).

25 questions
15
votes
3 answers

IOException: Cannot run program "javac": CreateProcess error=2, The system cannot find the file specified

I got the error "IOException: Cannot run program "javac": CreateProcess error=2, The system cannot find the file specified" while running my scala project in play 2. why does this error occur . Please solve this problem.
user2563895
12
votes
1 answer

Akka for REST polling

I'm trying to interface a large Scala + Akka + PlayMini application with an external REST API. The idea is to periodically poll (basically every 1 to 10 minutes) a root URL and then crawl through sub-level URLs to extract data which is then sent to…
user1403269
  • 121
  • 1
  • 4
8
votes
2 answers

Play2-mini and Akka2 for HTTP gateway

I'm evaluating the possibility of using Play2-mini with Scala to develop a service that will sit between a mobile client and existing web service. I'm looking for the simplest possible example of a piece of code where Play2-mini implements a server…
Jack
  • 16,506
  • 19
  • 100
  • 167
6
votes
2 answers

Blending Akka 2, the Play2-mini framework and HTTP

With the release of Akka 2, the Akka HTTP modules have been replaced with the option of using Play2-mini, where Play2-mini looks like Play2 minus model view controller. The line greys out between implementing a REST service and creating an HTTP…
Jack
  • 16,506
  • 19
  • 100
  • 167
3
votes
1 answer

Is Logback Really Inside Play?

Working on an app using Akka 2 deployed with Play-mini. I pulled logback into the project and it works, but its config gets stomped so it was necessary to do a Joran configuration method and have that called at startup. Then I read that play had…
Rob
  • 11,446
  • 7
  • 39
  • 57
3
votes
1 answer

Returning a String from a REST Call Using Akka/Play-mini

Akka seems like a dream come true. Sadly, like so much other software, the documentation and examples are lacking in some major ways. Since the whole point of the thing is to provide non-blocking, parallel io, why would they provide a hello world…
Rob
  • 11,446
  • 7
  • 39
  • 57
2
votes
1 answer

No URL path binder found for type Option[Long]. Try to implement an implicit PathBindable for this type

GET /home/:id/delete controllers.Application.delete(id:Option[Long]) I am working on play 2.1 framework with scala and this error occurs . how to solve it
user2563895
2
votes
1 answer

How to run play2-mini in development mode

As far as I'm aware it should do this by default but whenever I start a play2-mini app it runs in Prod mode (so I get no code reloading etc). How do I specify I want it to run in development mode?
Russell
  • 12,261
  • 4
  • 52
  • 75
2
votes
1 answer

Split play2-mini Routes in several files

I'm pretty new to the whole Scala and Play thing so maybe my way solving this is not the right one. I'm using Scala 2.9.1 and play-mini_2.9.1-2.0.1. I have an App.scala which usually contains the routes. But my intention is not to insert all…
zerni
  • 87
  • 4
2
votes
1 answer

how to do polling in backbone.js?

Hi i am working on a paly2.0 framework application(with java) using backbone.js. In my application i need to get the table data from the database regularly ( for the use case of displaying the upcoming events list and if the crossed the old event…
2
votes
3 answers

How to implement " remember me " functionality in Play 2.0 framework?

Hi i'm working on play20 framework with java application.For that i want to implement "remember me" functionality like gmail or facebook without cookies . i don't know how to start .Can any one help me in that ? Thank you in Advance.
1
vote
2 answers

Play-mini: how to return an image

I'm trying to serve an image from a play-mini application. object App extends Application { def route = { case GET(Path("/image")) => Action { request => Ok( Source.fromInputStream(getClass.getResourceAsStream("image.gif")).toArray…
rompetroll
  • 4,781
  • 2
  • 37
  • 50
1
vote
2 answers

how can we get the result from various actors and then send the result from all the actors to one response in play 2.2.0?

case object getValues case class Data(a: Any, b:Any) class Testing extends Actor { def receive = { case "do something" => { val result2 = { User.getList } sender ! result2 } case _ => println("done") } } class Testing2 extends Actor { def…
Jagveer Singh
  • 584
  • 7
  • 28
1
vote
0 answers

why Nginx is not allowing to display the images from the filesystem?

I am working on play2.0 framework (with java) application. In our application we have file upload and file preview feature (all types of files). we are uploading into an filesystem.I am able to display most of documents like pdf,doc,txt etc file…
1
vote
2 answers

How to use Play-mini within Akka microkernel?

I've read the blog post at letitcrash.com about Play-mini and Akka (this one) and just can't get my head around on how to use Play-mini inside Akka microkernel. Since there is no use of Global object, I need to turn on play-mini manually, right? The…
tokarev
  • 2,575
  • 1
  • 21
  • 26
1
2