0

このアプリケーションはPlay2.0.4から移行されました。2.1-RC1へ。herokuにプッシュすると、herokuログからこのエラーが発生しました。Play 2.1には別のビルドパックを使用する必要がありますか?

2012-12-11T03:04:36+00:00 heroku[web.1]: Starting process with command `target/start -Dhttp.port=${PORT} -Dconfig.resource=prod.conf ${JAVA_OPTS}`
2012-12-11T03:04:38+00:00 app[web.1]: Exception in thread "main" java.lang.NoSuchMethodError: scala.Predef$.augmentString(Ljava/lang/String;)Lscala/collection/immutable/StringOps;
2012-12-11T03:04:38+00:00 app[web.1]:   at play.core.server.NettyServer$.createServer(NettyServer.scala:111)
2012-12-11T03:04:38+00:00 app[web.1]:   at play.core.server.NettyServer$$anonfun$main$5.apply(NettyServer.scala:153)
2012-12-11T03:04:38+00:00 app[web.1]:   at play.core.server.NettyServer$$anonfun$main$5.apply(NettyServer.scala:152)
2012-12-11T03:04:38+00:00 app[web.1]:   at scala.Option.map(Option.scala:145)
2012-12-11T03:04:38+00:00 app[web.1]:   at play.core.server.NettyServer$.main(NettyServer.scala:152)
2012-12-11T03:04:38+00:00 app[web.1]:   at play.core.server.NettyServer.main(NettyServer.scala)

これが私のBuild.scalaです。

val appDependencies = Seq(
      javaCore, javaJdbc, javaEbean,
      "org.webjars" % "bootstrap" % "2.1.1",
      "postgresql" % "postgresql" % "9.1-901-1.jdbc4",
      "rome" % "rome" % "1.0",
      "com.typesafe" %% "play-plugins-mailer" % "2.1-SNAPSHOT",

      "commons-codec" % "commons-codec" % "1.6",
      "commons-io" % "commons-io" % "2.3",
      "com.typesafe" % "play-plugins-inject" % "2.0.2",
      "com.typesafe" %% "play-plugins-mailer" % "2.1-SNAPSHOT",
      "com.typesafe.akka" % "akka-testkit" % "2.0.2",
      "org.imgscalr" % "imgscalr-lib" % "4.2",
      "org.codehaus.jackson" % "jackson-jaxrs" % "1.9.5",
      "org.codehaus.jackson" % "jackson-xc" % "1.9.5",
      "org.codehaus.jackson" % "jackson-mapper-asl" % "1.9.5",
      "org.codehaus.jackson" % "jackson-core-asl" % "1.9.5",
      "org.mindrot" % "jbcrypt" % "0.3m"

    )

val main = play.Project(appName, appVersion, appDependencies).settings(
      resolvers += "webjars" at "http://webjars.github.com/m2",
      resolvers += "Mave2" at "http://repo1.maven.org/maven2",
      resolvers += "jets3t" at "http://www.jets3t.org/maven2",
      resolvers += "Typesafe Releases Repository" at "http://repo.typesafe.com/typesafe/releases/",
      resolvers += "Typesafe Snapshots Repository" at "http://repo.typesafe.com/typesafe/snapshots/",
      resolvers += Resolver.url("Typesafe Ivy Snapshots", url("http://repo.typesafe.com/typesafe/ivy-snapshots/"))(Resolver.ivyStylePatterns),
      resolvers += "Daniel's Repository" at "http://danieldietrich.net/repository/snapshots/"
    )
4

1 に答える 1

0

私の場合、build.scalaからこの依存関係を削除する必要があります

"com.typesafe" % "play-plugins-inject" % "2.0.2"

play.pluginsからプラグインを削除します。

1500:com.typesafe.plugin.inject.ManualInjectionPlugin

このプラグインは、ehcacheに依存するplay_2.9を取り込み、Play 2.1のplay_2.10がすでにキャッシュを初期化している間に、playが2回目にplayのキャッシュを初期化するようにします。

于 2013-02-13T09:26:13.767 に答える