Project facet Dynamic Web Module 4.0 is not supported by this server

只谈情不闲聊 提交于 2020-08-26 07:12:51

问题


When, in Spring Tool Suite, I try to run my project with Weblogic 12 I get this error: Project facet Dynamic Web Module 4.0 is not supported by this server

  1. Inside org.eclipse.wst.common.project.facet.core.xml I turned <installed facet="jst.web" version="4.0"/> into <installed facet="jst.web" version="3.1"/> but after doing maven->update project the version came back to 4.

  2. I tried also to change the version here, but I get the error: Cannot change version of project facet Dynamic Web Module to 3.1

  3. I even tried to uncheck Dynamic Web Module (as suggested in another post) but I get the error: Dynamic Web Module 4.0 cannot be uninstalled

Does anybody know how to solde the problem?


回答1:


I just recently had the same problem. The Dynamic Web Module is set by Maven according to your version of javax.servlet-api. Since Spring Boot 2.1.x imports Servlet-API version 4.0, Maven changes the project facet to match it.

Set Spring Boot's version to 2.0.8 or newer, which uses Servlet-API 3.1, and you'll be able to deploy your app to Weblogic 12c via Eclipse.



来源:https://stackoverflow.com/questions/54233669/project-facet-dynamic-web-module-4-0-is-not-supported-by-this-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!