该服务器不支持Project Facet Dynamic Web Module 4.0 [英] Project facet Dynamic Web Module 4.0 is not supported by this server

查看:56
本文介绍了该服务器不支持Project Facet Dynamic Web Module 4.0的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Spring Tool Suite 中,当我尝试使用 Weblogic 12 运行我的项目时,出现以下错误:此服务器不支持Project Facet Dynamic Web Module 4.0

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. 内部 org.eclipse.wst.common.project.facet.core.xml 我转过<已安装的facet ="jst.web" version ="4.0"/> <已安装的facet ="jst.web" version ="3.1"/> 中,但是在执行 maven-> update project 之后,该版本就出现了回到4.

  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.

我也尝试在此处更改版本,但出现错误:无法将Project Facet动态Web模块的版本更改为3.1

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

我什至尝试取消选中动态Web模块(如另一篇文章中所述),但出现错误:无法卸载Dynamic Web Module 4.0

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?

推荐答案

我最近遇到了同样的问题.Maven根据您的 javax.servlet-api 版本设置动态Web模块.由于Spring Boot 2.1.x导入了Servlet-API 4.0版,因此Maven更改了项目构面以使其与之匹配.

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.

将Spring Boot的版本设置为2.0.8或更高版本(使用Servlet-API 3.1),就可以通过Eclipse将应用程序部署到Weblogic 12c.

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.

这篇关于该服务器不支持Project Facet Dynamic Web Module 4.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆