0

我正在尝试在 Heroku 上部署计算机数据库 java 示例应用程序。部署已完成,但访问页面时出现以下错误:

[32m2012-04-07T09:00:37+00:00 app[web.1]:←[0m  at 
play.core.ActionInvoker$$anonfun$receive$1.apply(Invoker.scala:63) 
[play_2.9.1-2.0.jar:2.0] 
[32m2012-04-07T09:00:37+00:00 app[web.1]:←[0m  at akka.actor.Actor 
$class.apply(Actor.scala:290) [akka-actor-2.0.jar:2.0] 
[32m2012-04-07T09:00:37+00:00 app[web.1]:←[0m play.core.ActionInvoker$ 
$anonfun$receive$1$$anon$1: Execution exception 
[[PersistenceException: models.Computer is NOT an Entity Bean 
registered with this server?]] 
[32m2012-04-07T09:00:37+00:00 app[web.1]:←[0m  at 
play.core.ActionInvoker.apply(Invoker.scala:61) [play_2.9.1-2.0.jar: 
2.0] 
[32m2012-04-07T09:00:37+00:00 app[web.1]:←[0m  at 
akka.actor.ActorCell.invoke(ActorCell.scala:617) [akka-actor-2.0.jar: 
2.0] 
[32m2012-04-07T09:00:37+00:00 app[web.1]:←[0m Caused by: 
javax.persistence.PersistenceException: models.Computer is NOT an 
Entity Bean registered with this server? 
[32m2012-04-07T09:00:37+00:00 app[web.1]:←[0m  at 
akka.dispatch.Mailbox.processMailbox(Mailbox.scala:179) [akka- 
actor-2.0.jar:2.0] 
[32m2012-04-07T09:00:37+00:00 app[web.1]:←[0m  at 
com.avaje.ebeaninternal.server.core.DefaultServer.createQuery(DefaultServer.java: 
1031) ~[ebean-2.7.3.jar:na] 
[32m2012-04-07T09:00:37+00:00 app[web.1]:←[0m  at 
com.avaje.ebeaninternal.server.core.DefaultServer.createQuery(DefaultServer.java: 
988) ~[ebean-2.7.3.jar:na] 
[32m2012-04-07T09:00:37+00:00 app[web.1]:←[0m  at 
com.avaje.ebeaninternal.server.core.DefaultServer.find(DefaultServer.java: 
1024) ~[ebean-2.7.3.jar:na] 
[32m2012-04-07T09:00:37+00:00 app[web.1]:←[0m  at play.db.ebean.Model 
$Finder.query(Model.java:258) ~[play_2.9.1-2.0.jar:2.0] 
[32m2012-04-07T09:00:37+00:00 app[web.1]:←[0m  at play.db.ebean.Model 
$Finder.where(Model.java:706) ~[play_2.9.1-2.0.jar:2.0] 
[32m2012-04-07T09:00:37+00:00 app[web.1]:←[0m  at 
models.Computer.page(Computer.java:48) ~[computer- 
database_2.9.1-1.0.jar:1.0]

你能帮忙吗... 来源与github计算机数据库示例相同

-S

4

1 回答 1

0

我进行了通常的更改以在 Heroku 上运行它,它运行良好:
https ://github.com/jamesward/Play20/commit/636216527b77477bfa1e523df813fa3cf33b15c0

于 2012-04-07T15:55:26.920 回答