Questions tagged [playframework-1.x]

The Play! Framework is a modern Java and Scala web application open-source framework that provides a clean alternative to bloated Enterprise Java stacks.

The Play! Framework is a modern Java (and Scala) web application open-source framework that provides a clean alternative to bloated Enterprise Java stacks.

736 questions
75
votes
14 answers

Play! framework uses a of statics

Waaah, the Play! framework has so many static methods. Where I go to school, we were told never ever to use any statics, yet Play! uses it like there's no tomorrow. Is that somehow okay? If so, why? We (7 people and I) are planning to use the Play!…
Saew
  • 1,056
  • 1
  • 8
  • 11
62
votes
5 answers

Jenkins + Play 1.2.4 : problems with cobertura lock files / report

We have a Play 1.2.4 application and we got Jenkins (on Ubuntu) for the application. We're having problems with Cobertura. After running the tests (succesfully), every now and then, we get the following…
Touko
  • 10,399
  • 14
  • 71
  • 101
30
votes
1 answer

How to extend the playframework?

Sometime it's necessary to extends a framework. Sometimes it's necessary to hook into the request/response lifecycle, for example for a parameter binding or to write a security module. How could this be done in the playframework 1.x?
niels
  • 7,144
  • 2
  • 33
  • 56
26
votes
2 answers

Play framework/Netty does not release socket

Have already asked similar question, but deleted it, since thought I fixed it, but I was wrong. I'm using Play framework in production for one of my web projects. From time to time Play does not render main page or does not return some of the static…
Anton
  • 5,365
  • 3
  • 28
  • 43
25
votes
2 answers

Playframework route file: Separate Production routes from Dev routes

Is there a way in Play to annotate routes to inform that a certain section/group routes is only available in dev or prod mode
roshan
  • 1,293
  • 16
  • 31
18
votes
5 answers

How do I add Jars to the classpath in Play Framework?

My project needs to use some third-party jars. I assume I drop these in the lib/ directory in my project, but where do I configure Play to add them to the classpath? I'm developing in Eclipse, and I know I can add them to the Eclipse project's…
sanity
  • 33,862
  • 40
  • 131
  • 218
17
votes
7 answers

How can I run Play framework in HTTPS only in the dev mode?

I'd like to run Play Framework over HTTPS only in the development mode and I've done so using the following bit of…
Mridang Agarwalla
  • 38,521
  • 65
  • 199
  • 353
16
votes
1 answer

How can I specify a local jar file as a dependency in Play! Framework 1.x

I have a jar file copied in the lib directory I'd like to run "play deps --sync" without this jar being deleted.. I've already looked at depency file documentation but couldn't figure out how to do it any idea? -- edit I've just found the answer:…
opensas
  • 52,870
  • 69
  • 227
  • 340
16
votes
6 answers

Integration Testing with Redis

I've started using Redis in my project with the help of the Jedis library. All is working fine but now I have a problem that my functional tests requires Redis to be up which I want to avoid in my Continuous Integration. What is the best way to do…
Derek Organ
  • 7,733
  • 16
  • 54
  • 73
13
votes
1 answer

How can I influence the redirect behavior in a play-controller?

In play you always follow the Redirect-After-Post-Pattern if you call from a public-method of a controller. This is in most cases a good behavior, but sometime it could be nasty. So I tried to find out how it works in play 1.1!: The basic is some…
niels
  • 7,144
  • 2
  • 33
  • 56
13
votes
2 answers

Illegal pattern character 'Y' on Ubuntu

I use this pattern SimpleDateFormat format = new SimpleDateFormat("YYYY-MM-dd HH:mm:ss"); in windows and it works, but when try on Ubuntu 10.04 it show an exception play.exceptions.JavaExecutionException: Illegal pattern character 'Y'. I search for…
Crazenezz
  • 3,306
  • 6
  • 27
  • 58
11
votes
1 answer

How to access a resource file using relative path in play framework project?

My play framework project uses resource files like CSV files that I have under resources directory which I created under play project root directly so it is at the same level as other directories like app, public etc. From within Java or Scala…
ace
  • 12,531
  • 35
  • 100
  • 167
11
votes
3 answers

what happens when changing from DEV to PROD mode in "application.conf" file?

I am using play framework 1.2.5, for past two days I had a very big issue on load testing that is for every API call to the sever it takes around 1200-1400ms as average, but today I just changed the following only one line in the file…
Wiki
  • 235
  • 3
  • 13
9
votes
5 answers

Postgresql with Play Framework

Im trying to use Postgresql with Play for their Yabe tutorial and get this error: Cannot connected to the database, Driver not found (org.postgresql.Driver) Here is my connection string: # If you need a full JDBC configuration use the following : …
Todd
  • 1,708
  • 7
  • 31
  • 54
8
votes
1 answer

How do I get incoming request IP address in Java Play 1.2.4

I see in Play! 2.0 there is Http.Context.current() http://www.playframework.org/documentation/api/2.0/java/play/mvc/Http.Context.html#current() But in Play! 1.2.4 how would I go about getting the current HTTP request's IP Address? Thanks.
Marcus Ericsson
  • 1,679
  • 1
  • 11
  • 13
1
2 3
49 50