[JAVA] You cannot change the project facet version from a dynamic web module to x.x. How to deal with

--Environment --macOS Mojave version 10.14.5 - Eclipse 2019-03 Java Mac 64bit Full Edition(Java)

I got angry when I imported an existing Maven project

Messages on the "Problems" tab of Eclipse


(Japanese version)
Project facet version from Dynamic Web Module 3.Cannot be changed to 0.
(English edition)
Cannot change version of project facet Dynamic Web Module to 3.0.

Cause: You can't downgrade a dynamic module?

Eclipse's dynamic web module settings cannot be started by mistake | Tsukabi's technical diary I'm not sure why it can't be lowered ... I didn't mean to lower the version ... Even though it was written as 3.0 in web.xml from the beginning ...

web.xml


<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">
<!--abridgement-->

Action: Change version in ʻorg.eclipse.wst.common.project.facet.core.xml`

Change the version of jst.web described in {project directory} /. settings / org.eclipse.wst.common.project.facet.core.xml.

xml:org.eclipse.wst.common.project.facet.core.xml


<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
  <fixed facet="wst.jsdt.web"/>
  <installed facet="jst.web" version="3.0"/> <!--Change the version here-->
  <installed facet="wst.jsdt.web" version="1.0"/>
  <installed facet="java" version="1.6"/>
</faceted-project>

Recommended Posts

You cannot change the project facet version from a dynamic web module to x.x. How to deal with
Project facet Java version 13 is not supported. How to deal with
3. Create a database to access from the web module
Android: How to deal with "Could not determine java version from '10 .0.1'"
[Spring Dtata JPA] How to deal with the problem that DB change cannot be detected when you want to process API synchronously with a single thread in Spring Boot.
How to create a route directly from the URL you want to specify + α
How to solve when you cannot connect to DB with a new container because the port is assigned to the existing docker container
How to deal with `Cannot connect to the Docker daemon at unix: /// var/run/docker.sock. Is the docker daemon running?`
How to change the action with multiple submit buttons
What to do if you change the Listen Address from the settings screen with Mattermost docker
When you want to change the wording to be displayed when making a select box from enum
What to do if you installed Ruby with rbenv but the version does not change
How to change a TERASOLUNA 5.x blank project to support PostgreSQL
How to take a screenshot with the Android Studio emulator
How to create a form to select a date from the calendar
How to change the file name with Xcode (Refactor Rename)
How to solve the problem that you can not pull image from docker hub with Minikube
How to deal with the type that I thought about writing a Java program for 2 years
[Rails] How to introduce kaminari with Slim and change the design
If you want to change the Java development environment from Eclipse
How to run a Kotlin Coroutine sample from the command line
I am studying to change jobs from inexperienced to a web engineer.
How to open a script file from Ubuntu with VS code
[chown] How to change the owner of a file or directory
How to build a little tricky with dynamic SQL query generation
[Gradle] Build a Java project with a configuration different from the convention
How to download and run a Jar package directly from the Maven repository with just the command line
How to make a Maven project
How to change from HTML to Haml
Change from SQLite3 to PostgreSQL in a new Ruby on Rails project
Update JAVA to the latest version to 1.8.0_144 (when downloading from the web and updating)
How to interact with a server that does not crash the app
How to return a value from Model to Controller using the [Swift5] protocol
How to check before sending a message to the server with Spring Integration
How to run a GIF file from the Linux command line (Ubuntu)
How to find out the Java version of a compiled class file
How to compare only the time with Rails (from what time to what time, something like)
How to change the value of a variable at a breakpoint in intelliJ
[Rails] How to create a table, add a column, and change the column type
How to SSH into Ubuntu from a terminal with public key authentication
Make the context root a project folder in an Eclipse dynamic web project
[swift5] How to change the color of TabBar or the color of item of TabBar with code