2

Play 2.1.0 を使用しています。「play run」を使用して起動すると、正常に動作します。しかし、実行play stage; ./target/start -Dconfig.file=/Users/xxxx/Desktop/application.confするとエラーが発生します。以下はトレースです。

! @6enc6p16c - Internal server error, for (GET) [/] ->

play.api.Application$$anon$1: Execution exception[[RuntimeException: java.lang.NoSuchFieldError: Application]]
    at play.api.Application$class.handleError(Application.scala:289) ~[play_2.10.jar:2.1.0]
    at play.api.DefaultApplication.handleError(Application.scala:383) [play_2.10.jar:2.1.0]
    at play.core.server.netty.PlayDefaultUpstreamHandler$$anon$2$$anonfun$handle$1.apply(PlayDefaultUpstreamHandler.scala:132) [play_2.10.jar:2.1.0]
    at play.core.server.netty.PlayDefaultUpstreamHandler$$anon$2$$anonfun$handle$1.apply(PlayDefaultUpstreamHandler.scala:128) [play_2.10.jar:2.1.0]
    at play.api.libs.concurrent.PlayPromise$$anonfun$extend1$1.apply(Promise.scala:113) [play_2.10.jar:2.1.0]
    at play.api.libs.concurrent.PlayPromise$$anonfun$extend1$1.apply(Promise.scala:113) [play_2.10.jar:2.1.0]
java.lang.RuntimeException: java.lang.NoSuchFieldError: Application
    at play.libs.F$Promise$6.apply(F.java:401) ~[play_2.10.jar:2.1.0]
    at scala.concurrent.Future$$anonfun$map$1.liftedTree2$1(Future.scala:253) ~[scala-library.jar:na]
    at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:249) ~[scala-library.jar:na]
    at scala.concurrent.Future$$anonfun$map$1.apply(Future.scala:249) ~[scala-library.jar:na]
    at scala.concurrent.impl.CallbackRunnable.run(Promise.scala:29) ~[scala-library.jar:na]
    at akka.dispatch.BatchingExecutor$Batch$$anonfun$run$1.liftedTree1$1(BatchingExecutor.scala:67) ~[akka-actor_2.10.jar:na]
Caused by: java.lang.NoSuchFieldError: Application
    at views.html.navbar$.apply(navbar.template.scala:40) ~[endovl_2.10-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
    at views.html.navbar$.render(navbar.template.scala:65) ~[endovl_2.10-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
    at views.html.main$.mainNavbar$1(main.template.scala:35) ~[endovl_2.10-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
    at views.html.main$.apply(main.template.scala:43) ~[endovl_2.10-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
    at views.html.index$.apply(index.template.scala:33) ~[endovl_2.10-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
    at views.html.index$.render(index.template.scala:64) ~[endovl_2.10-1.0.0-SNAPSHOT.jar:1.0.0-SNAPSHOT]
^C[info] application - XXXXXX - Application shutdown...

助けが必要...

以下は、view.html.navbar で NoSuchFieldError 例外を引き起こした行です。

@navItem(routes.Application.index(), "Home")

そして、これは navbar.template.scala のコード行です

"""),_display_(Seq[Any](/*11.8*/navItem(routes.Application.index(), "Home"))),format.raw/*11.51*/("""
4

0 に答える 0