sbt revolver not working using jetty 1.2 branch of the spray template

278 views
Skip to first unread message

ajazam

unread,
Nov 30, 2013, 7:59:15 PM11/30/13
to spray...@googlegroups.com
Hello,

Ive spent a number of hours trying to get the sbt revolver to work with spray template (latest from github) of the jetty 1.2 branch and I get the following error running reStart in sbt

[info] Application trackerserver not yet started

java.util.NoSuchElementException: None.get

at scala.None$.get(Option.scala:313)

at scala.None$.get(Option.scala:311)

at spray.revolver.Actions$.startApp(Actions.scala:37)

at spray.revolver.Actions$.restartApp(Actions.scala:29)

at spray.revolver.RevolverPlugin$Revolver$$anonfun$settings$2$$anonfun$apply$1.apply(RevolverPlugin.scala:36)

at spray.revolver.RevolverPlugin$Revolver$$anonfun$settings$2$$anonfun$apply$1.apply(RevolverPlugin.scala:36)

at scala.Function8$$anonfun$tupled$1.apply(Function8.scala:35)

at scala.Function8$$anonfun$tupled$1.apply(Function8.scala:34)

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$Sync.innerRun(FutureTask.java:334)

at java.util.concurrent.FutureTask.run(FutureTask.java:166)

at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)

at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

at java.util.concurrent.FutureTask.run(FutureTask.java:166)

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:724)

[error] (*:reStart) java.util.NoSuchElementException: None.get



I have made the following changes to

project/plugins.sbt

addSbtPlugin("io.spray" % "sbt-revolver" % "0.7.1")

and the following 

build.sbt

seq(Revolver.settings: _*)

I am using OSX mavericks, java 1.7.0.u25 64 bit and scala 2.10.3. 

Can anybody help?



Jabbar Azam

unread,
Dec 1, 2013, 12:02:43 PM12/1/13
to spray...@googlegroups.com
Found another way of hot redploying

The jetty branch uses the following plugin

addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.4.2")

It has the following to redeploy the application when the source changes
~;container:start; container:reload /

That did the job for me.

Thanks

Jabbar Azam


--
You received this message because you are subscribed to the Google Groups "spray-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spray-user+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Mathias Doenitz

unread,
Dec 4, 2013, 7:17:42 AM12/4/13
to spray...@googlegroups.com
Jabbar,

the on-jetty-… branches of the spray-template project already tie in the xsbt-web-plugin, so you should be able to user `container:start ` and `container:stop` without any further configuration…

Cheers,
Mathias

---
mat...@spray.io
http://spray.io

On 01.12.2013, at 18:02, Jabbar Azam <aja...@gmail.com> wrote:

> Found another way of hot redploying
>
> The jetty branch uses the following plugin
>
> addSbtPlugin("com.earldouglas" % "xsbt-web-plugin" % "0.4.2")
>
> It has the following to redeploy the application when the source changes
> ~;container:start; container:reload /
>
> That did the job for me.
>
> Thanks
>
> Jabbar Azam
>
>
> On 1 December 2013 00:59, ajazam <aja...@gmail.com> wrote:
>
>> Hello,
>>
>> Ive spent a number of hours trying to get the sbt revolver to work with
>> spray template (latest from github) of the jetty 1.2 branch and I get the
>> following error running reStart in sbt
>>
>> [info] Application *trackerserver* not yet started
Reply all
Reply to author
Forward
0 new messages