"Parse error. XML runtime not available" with Play's javascript compiler

206 views
Skip to first unread message

Martin Studer

unread,
Nov 20, 2013, 10:28:30 AM11/20/13
to play-fr...@googlegroups.com, yves....@mirai-solutions.com
Hi,

I try to use Play's Javascript asset compiler but run into the "Parse error. XML runtime not available" issue, even with extremely simple examples. The example I've tried:

@(s: String)


var weconfig = {
 
"wsurl": 1
}



The exception I get:

! @6gb7i34j5 - Internal server error, for (GET) [/runWorkflow?id=147] ->

play.PlayExceptions$AssetCompilationException: Compilation error[Parse error. XML runtime not available]
        at play.core.jscompile.JavascriptCompiler$.compile(JavascriptCompiler.scala:59) ~[na:na]
        at play.PlayAssetsCompiler$$anonfun$JavascriptCompiler$3.apply(PlayAssetsCompiler.scala:96) ~[na:na]
        at play.PlayAssetsCompiler$$anonfun$JavascriptCompiler$3.apply(PlayAssetsCompiler.scala:96) ~[na:na]
        at play.PlayAssetsCompiler$$anonfun$AssetsCompiler$1$$anonfun$3.liftedTree1$1(PlayAssetsCompiler.scala:52) ~[na:na]
        at play.PlayAssetsCompiler$$anonfun$AssetsCompiler$1$$anonfun$3.apply(PlayAssetsCompiler.scala:51) ~[na:na]
        at play.PlayAssetsCompiler$$anonfun$AssetsCompiler$1$$anonfun$3.apply(PlayAssetsCompiler.scala:48) ~[na:na]


What I find strange, is, that certain examples may compile if I hit refresh a number of times... So, the compilation does not seem fully deterministic.

Did someone else experience the same issue and can shed some light on what is going on here?

Thanks & Best regards,
Martin

Martin Studer

unread,
Nov 20, 2013, 11:22:18 AM11/20/13
to play-fr...@googlegroups.com, yves....@mirai-solutions.com
This happens with both Play 2.2.0 and 2.2.1

Martin Studer

unread,
Dec 3, 2013, 7:01:53 AM12/3/13
to play-fr...@googlegroups.com, yves....@mirai-solutions.com
I'm still struggling with the same issue - has anybody else been experiencing the same issue or am I doing something fundamentally wrong?
Reply all
Reply to author
Forward
0 new messages