[play-2.3 java] activator-1.2.2 - Error on "starting" angular-play-seed project

155 views
Skip to first unread message

Peter Önneby

unread,
Jun 26, 2014, 4:48:49 AM6/26/14
to play-fr...@googlegroups.com
Hello

I am evaluating the angular-seed-play template.
I can "run" a project I have generated but when I try to "start" it I get the following error:

D:\blob\angular>activator start
[info] Loading global plugins from C:\Users\ponneby\.sbt\0.13\plugins
[info] Loading project definition from D:\blob\angular\project
[info] Set current project to angular (in build file:/D:/blob/angular/)
[info] Packaging D:\blob\angular\target\scala-2.10\angular_2.10-1.0-SNAPSHOT-sources.jar ...
[info] Done packaging.
[info] Updating {file:/D:/blob/angular/}root...
[info] Resolving org.scala-lang#scala-library;2.10.4 ...
  [info] Resolving com.typesafe.play#twirl-api_2.10;1.0.0 ...
  [info] Resolving org.apache.commons#commons-lang3;3.1 ...
  [info] Resolving com.typesafe.play#play_2.10;2.3.0 ...
  [info] Resolving com.typesafe.play#build-link;2.3.0 ...
  [info] Resolving com.typesafe.play#play-exceptions;2.3.0 ...
  [info] Resolving org.javassist#javassist;3.18.2-GA ...
  [info] Resolving com.typesafe.play#play-iteratees_2.10;2.3.0 ...
  [info] Resolving org.scala-stm#scala-stm_2.10;0.7 ...
  [info] Resolving com.typesafe#config;1.2.0 ...
  [info] Resolving com.typesafe.play#play-json_2.10;2.3.0 ...
  [info] Resolving com.typesafe.play#play-functional_2.10;2.3.0 ...
  [info] Resolving com.typesafe.play#play-datacommons_2.10;2.3.0 ...
  [info] Resolving joda-time#joda-time;2.3 ...
  [info] Resolving org.joda#joda-convert;1.6 ...
  [info] Resolving com.fasterxml.jackson.core#jackson-annotations;2.3.2 ...
  [info] Resolving com.fasterxml.jackson.core#jackson-core;2.3.2 ...
  [info] Resolving com.fasterxml.jackson.core#jackson-databind;2.3.2 ...
  [info] Resolving org.scala-lang#scala-reflect;2.10.4 ...
  [info] Resolving io.netty#netty;3.9.1.Final ...
  [info] Resolving com.typesafe.netty#netty-http-pipelining;1.1.2 ...
  [info] Resolving org.slf4j#slf4j-api;1.7.6 ...
  [info] Resolving org.slf4j#jul-to-slf4j;1.7.6 ...
  [info] Resolving org.slf4j#jcl-over-slf4j;1.7.6 ...
  [info] Resolving ch.qos.logback#logback-core;1.1.1 ...
  [info] Resolving ch.qos.logback#logback-classic;1.1.1 ...
  [info] Resolving com.typesafe.akka#akka-actor_2.10;2.3.3 ...
  [info] Resolving com.typesafe#config;1.2.1 ...
  [info] Resolving com.typesafe.akka#akka-slf4j_2.10;2.3.3 ...
  [info] Resolving commons-codec#commons-codec;1.9 ...
  [info] Resolving xerces#xercesImpl;2.11.0 ...
  [info] Resolving xml-apis#xml-apis;1.4.01 ...
  [info] Resolving javax.transaction#jta;1.1 ...
  [info] Resolving org.webjars#angularjs;1.3.0-beta.2 ...
  [info] Resolving org.webjars#requirejs;2.1.11-1 ...
  [info] Resolving com.typesafe.play#play-test_2.10;2.3.0 ...
  [info] Resolving junit#junit;4.11 ...
  [info] Resolving org.hamcrest#hamcrest-core;1.3 ...
  [info] Resolving org.specs2#specs2-core_2.10;2.3.12 ...
  [info] Resolving org.specs2#specs2-matcher_2.10;2.3.12 ...
  [info] Resolving org.specs2#specs2-common_2.10;2.3.12 ...
  [info] Resolving org.scalaz#scalaz-core_2.10;7.0.6 ...
  [info] Resolving org.scalaz#scalaz-concurrent_2.10;7.0.6 ...
  [info] Resolving org.scalaz#scalaz-effect_2.10;7.0.6 ...
  [info] Resolving org.specs2#specs2-junit_2.10;2.3.12 ...
  [info] Resolving org.specs2#specs2-mock_2.10;2.3.12 ...
  [info] Resolving org.mockito#mockito-core;1.9.5 ...
  [info] Resolving org.objenesis#objenesis;1.0 ...
  [info] Resolving org.specs2#specs2-matcher-extra_2.10;2.3.12 ...
  [info] Resolving org.specs2#specs2-analysis_2.10;2.3.12 ...
  [info] Resolving org.scala-lang#scala-compiler;2.10.4 ...
  [info] Resolving org.specs2#classycle;1.4.3 ...
  [info] Resolving org.scalamacros#quasiquotes_2.10;2.0.0-M7 ...
  [info] Resolving com.novocode#junit-interface;0.11-RC1 ...
  [info] Resolving org.scala-sbt#test-interface;1.0 ...
  [info] Resolving com.google.guava#guava;16.0.1 ...
  [info] Resolving com.google.code.findbugs#jsr305;2.0.3 ...
  [info] Resolving org.fluentlenium#fluentlenium-festassert;0.9.2 ...
  [info] Resolving org.fluentlenium#fluentlenium-core;0.9.2 ...
  [info] Resolving org.seleniumhq.selenium#selenium-java;2.39.0 ...
  [info] Resolving org.seleniumhq.selenium#selenium-android-driver;2.39.0 ...
  [info] Resolving org.seleniumhq.selenium#selenium-remote-driver;2.39.0 ...
  [info] Resolving cglib#cglib-nodep;2.1_3 ...
  [info] Resolving org.json#json;20080701 ...
  [info] Resolving org.seleniumhq.selenium#selenium-api;2.39.0 ...
  [info] Resolving com.google.guava#guava;15.0 ...
  [info] Resolving org.apache.httpcomponents#httpclient;4.3.1 ...
  [info] Resolving org.apache.httpcomponents#httpcore;4.3 ...
  [info] Resolving commons-logging#commons-logging;1.1.3 ...
  [info] Resolving org.apache.commons#commons-exec;1.1 ...
  [info] Resolving net.java.dev.jna#jna;3.4.0 ...
  [info] Resolving net.java.dev.jna#platform;3.4.0 ...
  [info] Resolving org.seleniumhq.selenium#selenium-chrome-driver;2.39.0 ...
  [info] Resolving org.seleniumhq.selenium#selenium-htmlunit-driver;2.39.0 ...
  [info] Resolving net.sourceforge.htmlunit#htmlunit;2.13 ...
  [info] Resolving xalan#xalan;2.7.1 ...
  [info] Resolving xalan#serializer;2.7.1 ...
  [info] Resolving commons-collections#commons-collections;3.2.1 ...
  [info] Resolving org.apache.httpcomponents#httpmime;4.3.1 ...
  [info] Resolving net.sourceforge.htmlunit#htmlunit-core-js;2.13 ...
  [info] Resolving net.sourceforge.nekohtml#nekohtml;1.9.19 ...
  [info] Resolving net.sourceforge.cssparser#cssparser;0.9.11 ...
  [info] Resolving org.w3c.css#sac;1.3 ...
  [info] Resolving commons-io#commons-io;2.2 ...
  [info] Resolving org.eclipse.jetty#jetty-websocket;8.1.12.v20130726 ...
  [info] Resolving org.eclipse.jetty#jetty-util;8.1.12.v20130726 ...
  [info] Resolving org.eclipse.jetty#jetty-io;8.1.12.v20130726 ...
  [info] Resolving org.eclipse.jetty#jetty-http;8.1.12.v20130726 ...
  [info] Resolving org.seleniumhq.selenium#selenium-firefox-driver;2.39.0 ...
  [info] Resolving org.seleniumhq.selenium#selenium-ie-driver;2.39.0 ...
  [info] Resolving org.seleniumhq.selenium#selenium-iphone-driver;2.39.0 ...
  [info] Resolving org.seleniumhq.selenium#selenium-safari-driver;2.39.0 ...
  [info] Resolving org.webbitserver#webbit;0.4.14 ...
  [info] Resolving org.seleniumhq.selenium#selenium-support;2.39.0 ...
  [info] Resolving org.easytesting#fest-assert;1.4 ...
  [info] Resolving org.easytesting#fest-util;1.1.6 ...
  [info] Resolving com.typesafe.play#play-docs_2.10;2.3.0 ...
  [info] Resolving com.typesafe.play#play-doc_2.10;1.1.0 ...
  [info] Resolving org.pegdown#pegdown;1.4.0 ...
  [info] Resolving org.parboiled#parboiled-java;1.1.5 ...
  [info] Resolving org.parboiled#parboiled-core;1.1.5 ...
  [info] Resolving org.ow2.asm#asm;4.1 ...
  [info] Resolving org.ow2.asm#asm-tree;4.1 ...
  [info] Resolving org.ow2.asm#asm-analysis;4.1 ...
  [info] Resolving org.ow2.asm#asm-util;4.1 ...
  [info] Resolving commons-io#commons-io;2.4 ...
  [info] Resolving org.scala-lang#jline;2.10.4 ...
  [info] Resolving org.fusesource.jansi#jansi;1.4 ...
[info] Done updating.
[info] Wrote D:\blob\angular\target\scala-2.10\angular_2.10-1.0-SNAPSHOT.pom
[info] Main Scala API documentation to D:\blob\angular\target\scala-2.10\api...
[info] Compiling 4 Scala sources and 1 Java source to D:\blob\angular\target\scala-2.10\classes...
model contains 16 documentable templates
[info] Main Scala API documentation successful.
[info] Packaging D:\blob\angular\target\scala-2.10\angular_2.10-1.0-SNAPSHOT-javadoc.jar ...
[info] Done packaging.
[info] Packaging D:\blob\angular\target\scala-2.10\angular_2.10-1.0-SNAPSHOT.jar ...
[info] Done packaging.
java.util.regex.PatternSyntaxException: Unmatched closing ')' near index 47
['"]?([^\s'"]*)['"]?\s*:\s*[\[]?.*['"].*/lib\(.*)['"]
                                               ^
        at java.util.regex.Pattern.error(Pattern.java:1924)
        at java.util.regex.Pattern.compile(Pattern.java:1669)
        at java.util.regex.Pattern.<init>(Pattern.java:1337)
        at java.util.regex.Pattern.compile(Pattern.java:1022)
        at scala.util.matching.Regex.<init>(Regex.scala:153)
        at scala.collection.immutable.StringLike$class.r(StringLike.scala:224)
        at scala.collection.immutable.StringOps.r(StringOps.scala:31)
        at scala.collection.immutable.StringLike$class.r(StringLike.scala:213)
        at scala.collection.immutable.StringOps.r(StringOps.scala:31)
        at com.typesafe.sbt.rjs.SbtRjs$$anonfun$getWebJarPaths$1$$anonfun$apply$5.apply(SbtRjs.scala:136)
        at com.typesafe.sbt.rjs.SbtRjs$$anonfun$getWebJarPaths$1$$anonfun$apply$5.apply(SbtRjs.scala:132)
        at scala.Option.fold(Option.scala:157)
        at com.typesafe.sbt.rjs.SbtRjs$$anonfun$getWebJarPaths$1.apply(SbtRjs.scala:132)
        at com.typesafe.sbt.rjs.SbtRjs$$anonfun$getWebJarPaths$1.apply(SbtRjs.scala:124)
        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:262)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:744)
[error] (*:rjsPaths) java.util.regex.PatternSyntaxException: Unmatched closing ')' near index 47
[error] ['"]?([^\s'"]*)['"]?\s*:\s*[\[]?.*['"].*/lib\(.*)['"]
[error]                                                ^

Cannot start with errors.

Anyone ran into this issue?

Thanks
Peter

Havoc Pennington

unread,
Jun 26, 2014, 5:36:24 PM6/26/14
to play-framework
It bet this fixed it:
https://github.com/sbt/sbt-rjs/commit/829e01045c42acc232534cdbd0ec1af745589a2e
If so the solution is to upgrade sbt-rjs

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

Peter Önneby

unread,
Jun 28, 2014, 5:23:35 PM6/28/14
to play-fr...@googlegroups.com
Thanks Havoc.

As this code is not in the latest published sbt-rjs release (1.0.1) I had to clone and publish-local the plugin.
This allowed me to reference the plugin 1.0.2-SNAPSHOT version in plugins.sbt.

(Surely there must be a smarter way of doing this?)

Now at "activator start" I get:
Bad application path: -Dhttp.port=9000

This is not the case when I start from target\universal\stage\bin\<proc> ...

However, is it to be expected that resources are not found in this mode? (pages display ok though...)


[info] play - Listening for HTTP on /0:0:0:0:0:0:0:0:9000
[debug] application - Unforseen error for lib/requirejs/require.js at /public
java.lang.RuntimeException: no resource
        at controllers.Assets$$anonfun$controllers$Assets$$assetInfoFromResource$1$$anonfun$10.apply(Assets.scala:214) ~[com.typesafe.play.play_2.10-2.3.0.jar:1.0-SNAPSHOT]
        at controllers.Assets$$anonfun$controllers$Assets$$assetInfoFromResource$1$$anonfun$10.apply(Assets.scala:214) ~[com.typesafe.play.play_2.10-2.3.0.jar:1.0-SNAPSHOT]
        at scala.Option.getOrElse(Option.scala:120) [org.scala-lang.scala-library-2.10.4.jar:na]
        at controllers.Assets$$anonfun$controllers$Assets$$assetInfoFromResource$1.apply(Assets.scala:214) ~[com.typesafe.play.play_2.10-2.3.0.jar:1.0-SNAPSHOT]
        at controllers.Assets$$anonfun$controllers$Assets$$assetInfoFromResource$1.apply(Assets.scala:213) ~[com.typesafe.play.play_2.10-2.3.0.jar:1.0-SNAPSHOT]
[debug] application - Unforseen error for css/app.css at /public
java.lang.RuntimeException: no resource
        at controllers.Assets$$anonfun$controllers$Assets$$assetInfoFromResource$1$$anonfun$10.apply(Assets.scala:214) ~[com.typesafe.play.play_2.10-2.3.0.jar:1.0-SNAPSHOT]
        at controllers.Assets$$anonfun$controllers$Assets$$assetInfoFromResource$1$$anonfun$10.apply(Assets.scala:214) ~[com.typesafe.play.play_2.10-2.3.0.jar:1.0-SNAPSHOT]
        at scala.Option.getOrElse(Option.scala:120) [org.scala-lang.scala-library-2.10.4.jar:na]
        at controllers.Assets$$anonfun$controllers$Assets$$assetInfoFromResource$1.apply(Assets.scala:214) ~[com.typesafe.play.play_2.10-2.3.0.jar:1.0-SNAPSHOT]
        at controllers.Assets$$anonfun$controllers$Assets$$assetInfoFromResource$1.apply(Assets.scala:213) ~[com.typesafe.play.play_2.10-2.3.0.jar:1.0-SNAPSHOT]




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/YYbv1Kbnt-g/unsubscribe.
To unsubscribe from this group and all its topics, send an email to play-framewor...@googlegroups.com.

Havoc Pennington

unread,
Jun 29, 2014, 8:08:50 PM6/29/14
to play-framework
On Sat, Jun 28, 2014 at 5:23 PM, Peter Önneby <pe...@onneby.com> wrote:
> (Surely there must be a smarter way of doing this?)
>

That's all I know to do, if the fix isn't published yet.

> Now at "activator start" I get:
> Bad application path: -Dhttp.port=9000
>

This may be because the -D should be before rather than after "start"
or something like that? depends on when you get this exactly

> However, is it to be expected that resources are not found in this mode?

I don't think so, but you're outside what I'm familiar with at this
point. Hopefully someone else can chime in.

Havoc
Reply all
Reply to author
Forward
0 new messages