播放框架application.conf

时间:2016-05-23 08:10:55

标签: scala playframework openshift

我正在尝试使用此磁带在OpenShift上部署PlayFramework应用程序:https://github.com/tyrcho/openshift-cartridge-play2

但是当我开始装备时,我得到了这个错误:

Oops, cannot start the server.
Configuration error: Configuration error[ @ file:/var/lib/openshift/573efff0e299d9096f000bd0/app-root/data/deploy/junk-1.0-SNAPSHOT/conf/: 2: Key 'application.conf' may not be followed by token: 'logback.xml' (if you intended 'logback.xml' to be part of a key or string value, try enclosing the key or value in double quotes)]
    at play.api.Configuration$.configError(Configuration.scala:154)
    at play.api.Configuration$.load(Configuration.scala:101)
    at play.core.server.ProdServerStart$.readServerConfigSettings(ProdServerStart.scala:76)
    at play.core.server.ProdServerStart$.start(ProdServerStart.scala:37)
    at play.core.server.ProdServerStart$.main(ProdServerStart.scala:22)
    at play.core.server.ProdServerStart.main(ProdServerStart.scala)
Caused by: com.typesafe.config.ConfigException$Parse:  @ file:/var/lib/openshift/573efff0e299d9096f000bd0/app-root/data/deploy/junk-1.0-SNAPSHOT/conf/: 2: Key 'application.conf' may not be followed by token: 'logback.xml' (if you intended 'logback.xml' to be part of a key or string value, try enclosing the key or value in double quotes)
    at com.typesafe.config.impl.ConfigDocumentParser$ParseContext.parseError(ConfigDocumentParser.java:201)
    at com.typesafe.config.impl.ConfigDocumentParser$ParseContext.parseError(ConfigDocumentParser.java:197)
    at com.typesafe.config.impl.ConfigDocumentParser$ParseContext.parseObject(ConfigDocumentParser.java:408)
    at com.typesafe.config.impl.ConfigDocumentParser$ParseContext.parse(ConfigDocumentParser.java:595)
    at com.typesafe.config.impl.ConfigDocumentParser.parse(ConfigDocumentParser.java:14)
    at com.typesafe.config.impl.Parseable.rawParseValue(Parseable.java:260)
    at com.typesafe.config.impl.Parseable.rawParseValue(Parseable.java:248)
    at com.typesafe.config.impl.Parseable.parseValue(Parseable.java:180)
    at com.typesafe.config.impl.Parseable.parseValue(Parseable.java:174)
    at com.typesafe.config.impl.Parseable.parseValue(Parseable.java:307)
    at com.typesafe.config.impl.Parseable$ParseableResources.rawParseValue(Parseable.java:747)
    at com.typesafe.config.impl.Parseable$ParseableResources.rawParseValue(Parseable.java:710)
    at com.typesafe.config.impl.Parseable.parseValue(Parseable.java:180)
    at com.typesafe.config.impl.Parseable.parseValue(Parseable.java:174)
    at com.typesafe.config.impl.Parseable.parse(Parseable.java:299)
    at com.typesafe.config.ConfigFactory.parseResources(ConfigFactory.java:1002)
    at com.typesafe.config.ConfigFactory.parseResources(ConfigFactory.java:930)
    at com.typesafe.config.ConfigFactory.parseResources(ConfigFactory.java:944)
    at play.api.Configuration$$anonfun$1.apply(Configuration.scala:66)
    at play.api.Configuration$$anonfun$1.apply(Configuration.scala:66)
    at scala.Option.map(Option.scala:146)
    at play.api.Configuration$.load(Configuration.scala:66)
    ... 4 more

当我使用默认的激活器模板(激活器new my-appliaction play-scala)时,甚至会发生这种情况。

如何解决?

0 个答案:

没有答案