Who can provide the process of building play2.0 on windows platform

393 views
Skip to first unread message

hotstong

unread,
Sep 14, 2011, 12:05:24 PM9/14/11
to play-fr...@googlegroups.com
It takes me three days to try,but failed on various reason. The last one is:(by sbt 2.9.0-0.10.1)

> compile
[info] Updating {file:/F:/Play20/framework/}Root...
java.lang.ExceptionInInitializerError
        at play.templates.ScalaTemplateCompiler$TemplateAsFunctionCompiler$.getF
unctionMapping(ScalaTemplates.scala:547)
        at play.templates.ScalaTemplateCompiler$.generateFinalTemplate(ScalaTemp
lates.scala:492)
        at play.templates.ScalaTemplateCompiler$.compile(ScalaTemplates.scala:19
1)
        at play.templates.ScalaTemplateCompiler.compile(ScalaTemplates.scala)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at PlayBuild$Tasks$$anonfun$40$$anonfun$apply$22.apply(Build.scala:279)
        at PlayBuild$Tasks$$anonfun$40$$anonfun$apply$22.apply(Build.scala:276)
        at scala.collection.mutable.ResizableArray$class.foreach(ResizableArray.
scala:60)
        at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:44)
        at PlayBuild$Tasks$$anonfun$40.apply(Build.scala:276)
        at PlayBuild$Tasks$$anonfun$40.apply(Build.scala:256)
        at sbt.Scoped$$anonfun$hf4$1.apply(Structure.scala:508)
        at sbt.Scoped$$anonfun$hf4$1.apply(Structure.scala:508)
        at scala.Function1$$anonfun$compose$1.apply(Function1.scala:41)
        at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$9.apply(Structur
e.scala:304)
        at sbt.Scoped$Reduced$$anonfun$combine$1$$anonfun$apply$9.apply(Structur
e.scala:304)
        at sbt.$tilde$greater$$anonfun$$u2219$1.apply(TypeFunctions.scala:40)
        at sbt.std.Transform$$anon$5.work(System.scala:67)
        at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:22
1)
        at sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:22
1)
        at sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:13)
        at sbt.Execute.work(Execute.scala:227)
        at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:221)
        at sbt.Execute$$anonfun$submit$1.apply(Execute.scala:221)
        at sbt.CompletionService$$anon$1$$anon$2.call(CompletionService.scala:26
)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source
)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
Caused by: scala.tools.nsc.MissingRequirementError: object scala not found.
        at scala.tools.nsc.symtab.Definitions$definitions$.getModuleOrClass(Defi
nitions.scala:653)
        at scala.tools.nsc.symtab.Definitions$definitions$.getModule(Definitions
.scala:603)
        at scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackage(Definiti
ons.scala:145)
        at scala.tools.nsc.symtab.Definitions$definitions$.ScalaPackageClass(Def
initions.scala:146)
        at scala.tools.nsc.symtab.Definitions$definitions$.AnyClass(Definitions.
scala:176)
        at scala.tools.nsc.symtab.Definitions$definitions$.init(Definitions.scal
a:811)
        at scala.tools.nsc.Global$Run.<init>(Global.scala:693)
        at scala.tools.nsc.interactive.Global$TyperRun.<init>(Global.scala:927)
        at scala.tools.nsc.interactive.Global.newTyperRun(Global.scala:953)
        at scala.tools.nsc.interactive.Global.<init>(Global.scala:166)
        at play.templates.ScalaTemplateCompiler$TemplateAsFunctionCompiler$Compi
lerInstance.compiler(ScalaTemplates.scala:600)
        at play.templates.ScalaTemplateCompiler$TemplateAsFunctionCompiler$Prese
ntationCompiler$.<init>(ScalaTemplates.scala:644)
        at play.templates.ScalaTemplateCompiler$TemplateAsFunctionCompiler$Prese
ntationCompiler$.<clinit>(ScalaTemplates.scala)
        ... 36 more
[info] Done updating.
[error] {file:/F:/Play20/framework/}Play/sources: java.lang.ExceptionInInitializ
erError
[error] Total time: 11 s, completed 2011-9-15 0:04:04


who can provide successful process on windows?
thanks

T.J. Crowder

unread,
Sep 14, 2011, 12:08:07 PM9/14/11
to play-framework
Hi,

Did you see this thread? May be of help:
http://groups.google.com/group/play-framework/browse_thread/thread/e44f6c5397ed7fcc

Best,
--
T.J. Crowder
Independent Software Engineer
tj / crowder software / com
www / crowder software / com

Guillaume Bort

unread,
Sep 14, 2011, 3:42:21 PM9/14/11
to play-fr...@googlegroups.com
Just convert the build script as build.bat and it should be ok.

> --
> You received this message because you are subscribed to the Google Groups
> "play-framework" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/play-framework/-/QLlWibirxXkJ.
> To post to this group, send email to play-fr...@googlegroups.com.
> To unsubscribe from this group, send email to
> play-framewor...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/play-framework?hl=en.
>

--
Guillaume Bort, http://guillaume.bort.fr

Brian Nesbitt

unread,
Sep 14, 2011, 5:21:30 PM9/14/11
to play-fr...@googlegroups.com
Ya I blogged about it and was able to rebuild no problem.

Follow the instructions here to get windows support:

Follow the instructions here if you want ANSI colour support:

Then you can build using:

$ cd framework
$ ./build.bat
> build-repository

Xuefeng Wu

unread,
Sep 14, 2011, 9:24:28 PM9/14/11
to play-fr...@googlegroups.com
It works, thanks Brian.

hotstong

unread,
Sep 14, 2011, 11:14:26 PM9/14/11
to play-framework
Thanks a lot!
I download the play2 pack provided on your site,It's OK!
But,It's failed on the last source of play2.0,the error is same! when
i copied source provided by you under framework folder to override the
last play2.0 source! it's work good!
so, something wrong in the newly source of play2.0(compiled
successfully under linux)

Can you take some time to find what's the problem?
thanks!


On 9月15日, 上午5时21分, Brian Nesbitt <br...@nesbot.com> wrote:
> Ya I blogged about it and was able to rebuild no problem.
>
> Follow the instructions here to get windows support:http://nesbot.com/2011/9/8/windows-support-for-play-framework-2-preview
>
> Follow the instructions here if you want ANSI colour support:http://nesbot.com/2011/9/9/ansi-colour-support-for-play-framework-2-p...

hotstong

unread,
Sep 23, 2011, 5:40:59 AM9/23/11
to play-fr...@googlegroups.com
I find interest things about this.
the last frame work 2.0 can be successfully built on linux,but failed on windows.
The problem is occurred on same location, When creating scala.tools.nsc.interactive.Global used by the process of template compile ! 
But when I run the template compile tool class(i used to generate the scala class from template file separately)  from scala command,It's OK! It's failed only under sbt enviroment and idea execute configuration!
Some difference exist between linux and window platform when use sbt?

hotstong

unread,
Sep 30, 2011, 2:27:31 AM9/30/11
to play-fr...@googlegroups.com
Fixed it!
play.templates.ScalaTemplateCompiler.TemplateAsFunctionCompiler.CompilerInstance
val compiler = new Global(settings, new ConsoleReporter(settings) {.....}
On windows platform, settings.bootclasspath.value is "file:/f:/../boot/..jar".
The Global can't recognize this format, must erase "file:/"

Reply all
Reply to author
Forward
0 new messages