The Play team is pleased to announce the first release candidate for Play 2.3.0. This release candidate is a feature complete version of Play 2.3.0, but it may have bugs in it. If it has any serious bugs then we’ll put out another release candidate with fixes. Otherwise this release will become Play 2.3.0.
We encourage the Play community to download this release candidate and test it out. See further down this email for instructions.
What’s new in Play 2.3
Introducing the activator command. You can use activator exactly like you would use play, but Activator brings new features too. (More about the Activator change.)
Better tooling for static assets. Play now uses sbt-web which gives faster asset processing, more features, and better extensibility.
Support for Java 8 (and continued support for Java 6 and 7).
Better Java performance. Simple Java controllers give 40–90% better throughput. (Thanks to YourKit for sponsoring licenses.)
Support for Scala 2.11 (and continued support for Scala 2.10).
Anorm enhancements: SQL string interpolation, multi-value parameters, new types, and more.
Web Services enhancements: separate client, SSL configuration, and more.
Play templates have become Twirl templates: separate project, new sbt plugin, still excellent integration with Play
Actors for WebSockets
Custom SSLEngine for HTTPS
Asset performance: faster serving, better caching.
One Result to rule them all: all the result types which were deprecated in 2.2 are now gone and only Result remains.
Lots of bug fixes. :)
For details see the Play 2.3 Highlights and the Play 2.3 Migration Guide.
Testing out Play 2.3
You can help out by testing this release candidate. Discuss issues on the mailing list—use a subject starting with [2.3.0-RC1]—or report bugs on Github.
Using Play 2.3 in a new project
We will use Activator to create a new project from a Play 2.3 template.
Command line instructions
Download the Activator minimal distribution (1MB).
Run activator new.
Enter one of the following template names:
play-2.3-highlights — an overview of new Play 2.3 features
play-java-preview — a Play 2.3 Java project
play-scala-preview — a Play 2.3. Scala project
Enter a name for your new project.
Change to the the project directory.
Type activator to reach the console. [Known issue: You may not see any activity for several minutes while new dependencies are being downloaded.]
Use the compile, run, test, etc commands to build and run the project.
Activator UI instructions
Most Activator templates include a tutorial that can be viewed from within the Activator UI. The play-2.3-highlights template has a tutorial that showcases the new features of Play 2.3.
Download the Activator minimal distribution (1MB)
Run activator new.
Enter one of the following template names:
play-2.3-highlights — an overview of new Play 2.3 features
play-java-preview — a Play 2.3 Java project
play-scala-preview — a Play 2.3. Scala project
Enter a name for your new project.
Change to the the project directory.
Type activator ui to view the project in a the Activator UI [Known issue: You may not see any activity for several minutes while new dependencies are being downloaded.]
Follow the tutorial on the right of the screen or use the buttons on the left to interact with the project.
Using Play 2.3 in an existing project
See the Play 2.3 Migration Guide for complete instructions on changing your existing project to use Play 2.3.
Known Issues
If there are a large number of assets to be processed by sbt-coffeescript, sbt-less or sbt-jshint then a timeout can occur during asset compilation when using the default JavaScript engine (Trireme). If this occurs then “set JsEngineKeys.parallelism := 1” or use Node instead of Trireme (export SBT_OPTS="$SBT_OPTS -Dsbt.jse.engineType=Node").
Thanks
Play Team--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Command line instructions
Download the Activator minimal distribution (1MB).
Run activator new.
Enter one of the following template names:
play-2.3-highlights — an overview of new Play 2.3 features
play-java-preview — a Play 2.3 Java project
play-scala-preview — a Play 2.3. Scala project
Enter a name for your new project.
Change to the the project directory.
Type activator to reach the console. [Known issue: You may not see any activity for several minutes while new dependencies are being downloaded.]
Use the compile, run, test, etc commands to build and run the project.
--
You received this message because you are subscribed to a topic in the Google Groups "play-framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/play-framework/OJBAdiWMc_A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Unfortunately this looks to be a constraint of JNotify itself. Are you certain that it was working for 2.2? Perhaps our version refresh for 2.3 pulled in a later version that decided not to support FreeBSD?
Play just skips the fallback code.
--
You received this message because you are subscribed to a topic in the Google Groups "play-framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/play-framework/OJBAdiWMc_A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Sebas--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
addSbtPlugin("com.typesafe.sbt" % "sbt-less" % "1.0.0-RC1")
[trace] Stack trace suppressed: run last *:less for the full output.
[error] (*:less::jstaskShellSource) Could not create directory D:\myproject\project\target\less\file:\D:\dev\ivy\cache\scala_2.10\sbt_0.13\com.typesafe.sbt\sbt-less\jars\sbt-less-1.0.0-RC1.jar!
[error] application -
! @6i78m39d1 - Internal server error, for (GET) [/] ->
play.PlayExceptions$UnexpectedException: Unexpected exception[RuntimeException:
Could not create directory D:\myproject\project\target\less\file:\D:\dev\ivy\cache\scala_2.10\sbt_0.13\com.typesafe.sbt\sbt-less\jars\sbt-less-1.0.0-RC1.jar!]
at play.PlayReloader$$anon$1$$anonfun$play$PlayReloader$$anon$$taskFailureHandler$1.apply(PlayReloader.scala:295) ~[na:na]
at play.PlayReloader$$anon$1$$anonfun$play$PlayReloader$$anon$$taskFailureHandler$1.apply(PlayReloader.scala:287) ~[na:na]
at scala.Option.map(Option.scala:145) ~[scala-library.jar:na]
at play.PlayReloader$$anon$1.play$PlayReloader$$anon$$taskFailureHandler(PlayReloader.scala:287) ~[na:na]
at play.PlayReloader$$anon$1$$anonfun$reload$2.apply(PlayReloader.scala:320) ~[na:na]
Caused by: java.lang.RuntimeException: Could not create directory D:\myproject\project\target\less\file:\D:\dev\ivy\cache\scala_2.10\sbt_0.13\com.typesafe.sbt\sbt-less\jars\sbt-less-1.0.0-RC1.jar!
at scala.sys.package$.error(package.scala:27) ~[scala-library.jar:na]
at sbt.IO$.createDirectory(IO.scala:155) ~[na:na]
at sbt.OpenFile$class.open(Using.scala:45) ~[na:na]
at sbt.Using$$anon$2.open(Using.scala:70) ~[na:na]
at sbt.Using$$anon$2.open(Using.scala:70) ~[na:na]
[warn] play - No application found at invoker init
net.contentobjects.jnotify.linux.JNotifyException_linux: Error removing watch 118
at net.contentobjects.jnotify.linux.JNotify_linux.removeWatch(Unknown Source)
at net.contentobjects.jnotify.linux.JNotifyAdapterLinux.unwatch(Unknown Source)
at net.contentobjects.jnotify.linux.JNotifyAdapterLinux.removeWatch(Unknown Source)
at net.contentobjects.jnotify.JNotify.removeWatch(Unknown Source)
at sun.reflect.GeneratedMethodAccessor16.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at play.PlayReloader$$anon$1$$anon$6.removeWatch(PlayReloader.scala:95)
JNotify issues with not just FreeBSD, Fedora bails on ctrl-d out of ~run (starting run is fine but exiting fails)
You mentioned another thread where Play devs talked about the JNotify issue, where is it?
Would be nice to follow the status.
JNotify issues with not just FreeBSD, Fedora bails on ctrl-d out of ~run (starting run is fine but exiting fails)
Issues is plural, meaning that JNotify in general has issues, not just the one affecting you (obviously worse because you can't even run play).
commit 21195c918122dac10cbadd90944f13186a204dca
+++ b/framework/src/sbt-plugin/src/main/scala/PlayReloader.scala
@@ -100,7 +101,7 @@
} catch {
- case e: Throwable => {
+ case NonFatal(e) => {
"""|
Can someone confirm what's the status of play-slick module, as it was supposed to be integrated into Play 2.3, but I understand that's no longer the case? I'm trying to upgrade one of my projects to Play 2.3 / Scala 2.11 / Slick 2.1, but absence of Scala 2.11 compatible play-slick module is a total showstopper.
The Play team is pleased to announce the first release candidate for Play 2.3.0. This release candidate is a feature complete version of Play 2.3.0, but it may have bugs in it. If it has any serious bugs then we’ll put out another release candidate with fixes. Otherwise this release will become Play 2.3.0.
We encourage the Play community to download this release candidate and test it out. See further down this email for instructions.
What’s new in Play 2.3
Introducing the activator command. You can use activator exactly like you would use play, but Activator brings new features too. (More about the Activator change.)
Better tooling for static assets. Play now uses sbt-web which gives faster asset processing, more features, and better extensibility.
Support for Java 8 (and continued support for Java 6 and 7).
Better Java performance. Simple Java controllers give 40–90% better throughput. (Thanks to YourKit for sponsoring licenses.)
Support for Scala 2.11 (and continued support for Scala 2.10).
Anorm enhancements: SQL string interpolation, multi-value parameters, new types, and more.
Web Services enhancements: separate client, SSL configuration, and more.
Play templates have become Twirl templates: separate project, new sbt plugin, still excellent integration with Play
Actors for WebSockets
Custom SSLEngine for HTTPS
Asset performance: faster serving, better caching.
One Result to rule them all: all the result types which were deprecated in 2.2 are now gone and only Result remains.
Lots of bug fixes. :)
For details see the Play 2.3 Highlights and the Play 2.3 Migration Guide.
Testing out Play 2.3
You can help out by testing this release candidate. Discuss issues on the mailing list—use a subject starting with [2.3.0-RC1]—or report bugs on Github.
Using Play 2.3 in a new project
We will use Activator to create a new project from a Play 2.3 template.
Command line instructions
Download the Activator minimal distribution (1MB).
Run activator new.
Enter one of the following template names:
play-2.3-highlights — an overview of new Play 2.3 features
play-java-preview — a Play 2.3 Java project
play-scala-preview — a Play 2.3. Scala project
Enter a name for your new project.
Change to the the project directory.
Type activator to reach the console. [Known issue: You may not see any activity for several minutes while new dependencies are being downloaded.]
Use the compile, run, test, etc commands to build and run the project.
Activator UI instructions
Most Activator templates include a tutorial that can be viewed from within the Activator UI. The play-2.3-highlights template has a tutorial that showcases the new features of Play 2.3.
Download the Activator minimal distribution (1MB)
Run activator new.
Enter one of the following template names:
play-2.3-highlights — an overview of new Play 2.3 features
play-java-preview — a Play 2.3 Java project
play-scala-preview — a Play 2.3. Scala project
Enter a name for your new project.
Change to the the project directory.
Type activator ui to view the project in a the Activator UI [Known issue: You may not see any activity for several minutes while new dependencies are being downloaded.]
Follow the tutorial on the right of the screen or use the buttons on the left to interact with the project.
Using Play 2.3 in an existing project
See the Play 2.3 Migration Guide for complete instructions on changing your existing project to use Play 2.3.
Known Issues
If there are a large number of assets to be processed by sbt-coffeescript, sbt-less or sbt-jshint then a timeout can occur during asset compilation when using the default JavaScript engine (Trireme). If this occurs then “set JsEngineKeys.parallelism := 1” or use Node instead of Trireme (export SBT_OPTS="$SBT_OPTS -Dsbt.jse.engineType=Node").
Thanks
Play Team
--James Roper
Software Engineer
./activator -Dsbt.task.forcegc=false
That seems to do the trick. Many thanks.It's interesting to note that the problem occurs when I run ~run; but, not when I run run, which led me to suspect a problem with JNotify. But, your suggestion works.
How can i download activator with play 2.3 and all the dependencies (not the minimal)
I didn't see anything about this in the release notes: has JPA made the default ORM now as was planned or did you stick with EBean?
I read somewhere that in 2.3 JPA will be the default (for example here https://groups.google.com/forum/#!searchin/play-framework/2.3/play-framework/7pL-Gq_pj7M/UykJdAC6wyYJ). For some reason I thought that this would mean that the play Model base class would be JPA, not ebean, making projects like https://github.com/jensjaeger/play4jpa/ obsolete. But that doesn't seem to actually be in the roadmap (https://docs.google.com/a/cantamen.de/document/d/11sVi1-REAIDFVHvwBrfRt1uXkBzROHQYgmcZNGJtDnA/pub), there it just mentioned documentation as you have written.
So will the play Model base class derive from JPA in 2.4?
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Where is scalaws lib now?
"import play.api.libs.ws.WS" is invalid now. I could not find any dependency for it.
<script type='text/javascript' src='@routes.Assets.at("lib/angularjs/angular.js")'></script>
became:
<script type='text/javascript' src='@routes.Assets.at("//cdn.jsdelivr.net/lib/angularjs/angular.js")'></script>
And in the HTML I see this:
<script type='text/javascript' src='/assets///cdn.jsdelivr.net/lib/angularjs/angular.js'></script>
Any ideas?
Thanks!
-sean
The WS client library has been refactored into its own library which can be used outside of Play.
<dependency>
<groupId>com.typesafe.play</groupId>
<artifactId>play_2.10</artifactId>
<version>2.3.0-RC1</version>
</dependency>
--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "play-framework" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/play-framework/OJBAdiWMc_A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to play-framewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
! @6i9ipp5fg - Internal server error, for (GET) [/] ->
play.PlayExceptions$UnexpectedException: Unexpected exception[IndexOutOfBoundsException: 28]
at play.PlayReloader$$anon$1$$anonfun$play$PlayReloader$$anon$$taskFailureHandler$1.apply(PlayReloader.scala:295) ~[na:na]
at play.PlayReloader$$anon$1$$anonfun$play$PlayReloader$$anon$$taskFailureHandler$1.apply(PlayReloader.scala:287) ~[na:na]
at scala.Option.map(Option.scala:145) ~[scala-library-2.11.0.jar:na]
at play.PlayReloader$$anon$1.play$PlayReloader$$anon$$taskFailureHandler(PlayReloader.scala:287) ~[na:na]
at play.PlayReloader$$anon$1$$anonfun$reload$2.apply(PlayReloader.scala:320) ~[na:na]
Caused by: java.lang.IndexOutOfBoundsException: 28
at scala.collection.LinearSeqOptimized$class.apply(LinearSeqOptimized.scala:52) ~[scala-library-2.11.0.jar:na]
at scala.collection.immutable.List.apply(List.scala:84) ~[scala-library-2.11.0.jar:na]
at play.twirl.sbt.TemplateProblem$TemplatePosition$.apply(TemplateProblem.scala:37) ~[na:na]
at play.twirl.sbt.TemplateProblem$.exception(TemplateProblem.scala:19) ~[na:na]
at play.twirl.sbt.TemplateCompiler$$anonfun$handleError$1.applyOrElse(TemplateCompiler.scala:57) ~[na:na]
java.lang.IndexOutOfBoundsException: 28
at scala.collection.LinearSeqOptimized$class.apply(LinearSeqOptimized.scala:52)
at scala.collection.immutable.List.apply(List.scala:84)
at play.twirl.sbt.TemplateProblem$TemplatePosition$.apply(TemplateProblem.scala:37)
at play.twirl.sbt.TemplateProblem$.exception(TemplateProblem.scala:19)
at play.twirl.sbt.TemplateCompiler$$anonfun$handleError$1.applyOrElse(TemplateCompiler.scala:57)
at play.twirl.sbt.TemplateCompiler$$anonfun$handleError$1.applyOrElse(TemplateCompiler.scala:55)
at scala.runtime.AbstractPartialFunction.apply(AbstractPartialFunction.scala:33)
at play.twirl.sbt.TemplateCompiler$.compile(TemplateCompiler.scala:28)
at play.twirl.sbt.SbtTwirl$$anonfun$compileTemplatesTask$1.apply(SbtTwirl.scala:77)
at play.twirl.sbt.SbtTwirl$$anonfun$compileTemplatesTask$1.apply(SbtTwirl.scala:76)
at scala.Function1$$anonfun$compose$1.apply(Function1.scala:47)
at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:42)
at sbt.std.Transform$$anon$4.work(System.scala:64)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:237)
at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
at sbt.Execute.work(Execute.scala:244)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:237)
at sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:160)
at sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:744)
[error] (root/compile:twirlCompileTemplates) java.lang.IndexOutOfBoundsException: 28
[error] application -
<link rel='stylesheet' href='@routes.Assets.at("stylesheets/less/main.css'>
Should have been
<link rel='stylesheet' href='@routes.Assets.at("stylesheets/less/main.css")'>
Didn't 2.2 give you a better error?
Thanks!
-sean
...
<a href="https://typesafe.com/activator/template/play-2.3-highlights" style="text-decoration:none" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Ftypesafe.com%2Factivator%2Ftemplate%2Fplay-2.3-highlights\46sa\75D\46sntz\0751\46usg\75AFQjCNHzGZfgw3tjLBdHT41-a32NWyCniA';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Ftypesafe.com%2Factivator%2Ftemplate%2Fplay-2.3-highlights\46sa\75D\46sntz\0751\46usg\75AFQjCNHzGZfgw3tjL
--
On Tue, May 13, 2014 at 1:13 PM, alex s <iwt...@gmail.com> wrote:
If you read carefully last 5 messages in https://groups.google.com/forum/#!msg/play-framework/4vII9sQc6kk/Swr2rOaYaRQJ , it seems, that block of code was introduced to handle UnsatisfiedLinkError which is subclass of LinkageError, i.e. doesn't match NonFatal(e).
The FreeBSD case (https://gist.github.com/anonymous/1aa680f2a68cf2f67b8c) should be handled too.Thanks for the explanation. I created a new issue since I couldn't see an existing issue.
Hi AlexI've implemented a fix for this. Would you mind testing it when the next RC comes out? Or you can test directly off master if you like. :)
I've implemented a fix for this. Would you mind testing it when the next RC comes out? Or you can test directly off master if you like. :)
Yes, this is indeed a non-issue in RC2. Thanks for the fix.