部署到 Elastic Beanstalk 时出现 JavaAgentDetector 错误

JavaAgentDetector error while deploying to Elastic Beanstalk

我有一个 Java 8, Spring 启动应用程序,它有一个嵌入式 Tomcat (它实际上是一个 JHipster 3.0.0 单体应用程序)。我想将它部署到 AWS Elastic Beanstalk。

我的方法:

  1. 在 Java 环境中,使用 Procfile。
  2. 在 Tomcat 环境中,使用 Procfile。
  3. 在 Java 环境中,没有 Procfile。
  4. 在 Tomcat 环境中,没有 Procfile。

无论采用哪种方法,我总是会遇到此错误。

我从来没有在我的项目中使用过 JavaAgentDetector.class Elastic Beanstalk 无法膨胀的东西。

当然,当我在本地执行 .war 时没有问题。 想法?

您的生产资料和开发资料可能有所不同?

成功原因:我终于在没有 Procfile 的 Tomcat 环境中部署了我的应用程序。错误是数据库名称中我的 pom.xml 和我的应用程序-prod.properties 之间的大写锁定差异。