【问题标题】:'Application Error' when Im deploying one of my services on Heroku当我在 Heroku 上部署我的一项服务时出现“应用程序错误”
【发布时间】:2020-06-12 09:33:26
【问题描述】:

有一个问题,我真的需要帮助来解决它。
我没有太多使用 Heroku 的经验,但我曾经成功部署过一些应用程序。现在部署成功后,我尝试在浏览器中启动应用程序并收到此错误:

Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details. You can do this from the Heroku CLI with the command
heroku logs --tail

我在我在 Heroku CLI 中检查的日志下方附加了附件,但我仍然不明白我的应用程序 java 代码中的问题到底是什么。有什么想法或自己的经验吗?谢谢

我得到的日志

【问题讨论】:

  • 避免将日志共享为快照,而是粘贴日志并适当格式化。

标签: java windows rest heroku deployment


【解决方案1】:

这是您的错误文本:
"no main manifest attribute, in target /ProPetsAccountingService-0.0.1-SNAPSHOT.jar"

注意这个问题的答案:
Can't execute jar- file: "no main manifest attribute"

或者查看“Procfile”中列出的内容。

【讨论】:

  • 非常感谢,这个注释确实有问题:只是忘了把它放到配置类之一。它解决了问题
猜你喜欢
  • 1970-01-01
  • 2018-11-20
  • 1970-01-01
  • 2020-10-30
  • 2020-05-07
  • 2021-03-25
  • 2021-06-05
  • 1970-01-01
  • 2018-05-30
相关资源
最近更新 更多