简体   繁体   English

无法通过 Eclipse 将 Tomcat 8 部署到 Elastic Beanstalk

[英]Unable to deploy to Elastic Beanstalk for Tomcat 8 via Eclipse

I try to deploy my first app to elastic beanstalk via Eclipse.我尝试通过 Eclipse 将我的第一个应用程序部署到弹性 beanstalk。 However, I encounter an issue: "The server does not support version 4.0 of the J2EE Web module specification."但是,我遇到一个问题:“服务器不支持 J2EE Web 模块规范的 4.0 版。” when trying to deploy to AWS Elastic BeanStalk Tomcat for 8 and 7. There is no issue if it is Tomcat 6. I checked and see that the project is web module 4.0.尝试将 8 和 7 部署到 AWS Elastic BeanStalk Tomcat 时。如果是 Tomcat 6 则没有问题。我检查并看到该项目是 Z2567A5EC9705EB7AC2C984033E06 模块模块。

Any suggestion to fix this problem???有什么建议可以解决这个问题???

Error when trying to deploy to AWS Elastic Beanstalk for Tomcat 7 or 8尝试将 Tomcat 7 或 8 部署到 AWS Elastic Beanstalk 时出错

Dynamic Web module version 4.0动态Web模块4.0版

It's talking about the Java Servlet specification.它正在谈论 Java Servlet 规范。 Tomcat 9 was the first version to support Servlet 4.0, you've designated your project as requiring a server that supports Servlet 4.0, and now it's telling you that older versions like Tomcat 6 won't satisfy that requirement. Tomcat 9 是第一个支持 Servlet 4.0 的版本,您已将项目指定为需要支持 Servlet 4.0 的服务器,现在它告诉您像 Tomcat 6 这样的旧版本将无法满足该要求。

Change the facet version to 3.0.将构面版本更改为 3.0。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM