英文:
Can I use java11 with elastic beanstalk and tomcat?
问题
我有一个使用 Scala 2.11 和 Java 11 的 Scala 应用程序,运行在 Tomcat 中。由于某些依赖问题,我不得不从 Java 8 迁移到了 Java 11。
过去,当应用程序还在使用 Java 8 时,我在弹性豆荚(elastic beanstalk)上运行过这个应用程序。然而,似乎没有适用于 Java 11 的弹性豆荚平台。我是否需要找到一种新的部署和运行应用程序的方法,还是有一种简单的方法可以让弹性豆荚运行 Java 11?
我尝试过使用在 https://stackoverflow.com/questions/54088465/java-11-on-aws-beanstalk-for-spring-boot-project 描述的 ebextensions 方法,但它没有起作用,而且似乎是在解决弹性豆荚过时的问题。我觉得是时候放弃弹性豆荚了,但它之前一直运行得很好,所以我不太愿意在没有明确替代方案的情况下放弃它。
根据 https://docs.aws.amazon.com/elasticbeanstalk/latest/platforms/platforms-supported.html#platforms-supported.java 的说明,最新的弹性豆荚平台提供的是带有 Tomcat 8.5 的 Java 8。
根据文档,弹性豆荚的最新 Tomcat 版本是:
平台版本和解决方案堆栈名称
Java 8 with Tomcat 8.5 版本 3.3.4
64 位 Amazon Linux 2018.03 v3.3.4 运行 Tomcat 8.5 Java 8
2018.03.0
Java 1.8.0_242
3.1.0
Tomcat 8.5.51
Apache 2.4.41(默认),Apache 2.2.34,Nginx 1.16.1
英文:
I have a scala application that uses scala 2.11 and Java 11 and runs in tomcat . I had to move to Java 11 from Java 8 due to some dependency issues.
In the past I ran this app on elastic beanstalk (back when the app used to run on java 8). However it doesn't look like there's an elastic beanstalk platform for java 11. Do I need to find a new way to deploy and run my app or is there a simple way to get elastic beanstalk to run java11?
Ive tried using the ebextensions approach described at https://stackoverflow.com/questions/54088465/java-11-on-aws-beanstalk-for-spring-boot-project but its not working, and it seems like its working around a problem with elastic beanstalk being stuck in the past. I feel like its time to forget elastic beaanstalk but its worked well up til now so I'm reluctant to do so without a clear alternative.
According to https://docs.aws.amazon.com/elasticbeanstalk/latest/platforms/platforms-supported.html#platforms-supported.java the latest elastic beanstalk platform offered is java 8 with tomcat 8.5
According to the docs, the latest tomcat version for Elastic Beanstalk is
Platform Version and Solution Stack Name
Java 8 with Tomcat 8.5 version 3.3.4
64bit Amazon Linux 2018.03 v3.3.4 running Tomcat 8.5 Java 8
2018.03.0
Java 1.8.0_242
3.1.0
Tomcat 8.5.51
Apache 2.4.41 (default), Apache 2.2.34, Nginx 1.16.1
专注分享java语言的经验与见解,让所有开发者获益!
评论