Deployment 将Play Framework 2.0应用程序部署为Windows服务时,如何修复服务器Oops错误?

Deployment 将Play Framework 2.0应用程序部署为Windows服务时,如何修复服务器Oops错误?,deployment,playframework,windows-services,Deployment,Playframework,Windows Services,我在这篇非常有用的文章中遵循了以下过程: 当我在第9步遇到麻烦时。当我执行runConsole.bat时,运行和重新启动状态之间的服务周期。完整日志如下: 但在日志中我看到的是: INFO|7268/0|play.core.server.NettyServer|13-12-28 13:07:28|Oops, cannot start the server. INFO|7268/0|play.core.server.NettyServer|13-12-28 13:07:28|Configura

我在这篇非常有用的文章中遵循了以下过程:

当我在第9步遇到麻烦时。当我执行
runConsole.bat
时,运行重新启动状态之间的服务周期。完整日志如下:

但在日志中我看到的是:

INFO|7268/0|play.core.server.NettyServer|13-12-28 13:07:28|Oops, cannot start the server.
INFO|7268/0|play.core.server.NettyServer|13-12-28 13:07:28|Configuration error: Configuration error[Cannot connect to database [default]]


重复几次…

在写这篇文章的中途,我意识到在第9步之前,你应该终止在第6步启动的start.bat脚本。当我这样做时,
runConsole.bat
将正常执行,不会出现上面列出的所有错误

INFO|7268/0|play.core.server.NettyServer|13-12-28 13:07:28|Caused by: org.h2.jdbc.JdbcSQLException: Database may be already in use: "Locked by another process". Possible solutions: close all other connection(s); use the server mode [90020-168]
INFO|wrapper|play.core.server.NettyServer|13-12-28 13:07:28|restart process due to default exit code rule
INFO|wrapper|play.core.server.NettyServer|13-12-28 13:07:28|restart internal RUNNING
INFO|wrapper|play.core.server.NettyServer|13-12-28 13:07:28|stopping process with pid/timeout 7268 45000
INFO|wrapper|play.core.server.NettyServer|13-12-28 13:07:30|process exit code: -1
INFO|7812/1|play.core.server.NettyServer|13-12-28 13:07:45|[error] c.j.b.h.AbstractConnectionHook - Failed to obtain initial connection Sleeping for 0ms and trying again. Attempts left: 0. Exception: null
INFO|7812/1|play.core.server.NettyServer|13-12-28 13:07:45|Oops, cannot start the server.
INFO|7812/1|play.core.server.NettyServer|13-12-28 13:07:45|Configuration error: Configuration error[Cannot connect to database [default]]