"Module name is invalid" when exporting an existing eclipse project to a war file
Solution 1
I had the same issue, and I fixed it. Please follow the steps below, and you can create your war file.
- Right-click on folder project.
- Click on properties.
- Go to project facets.
- Activate, if necessary.
- Scroll down to Configuration and mark Dynamic Web Module.
This works for me.
Solution 2
you must be sure your project is a Web Project, if it's not a Web Project check this link: http://eclipse.dzone.com/tips/converting-java-project-dynami
Solution 3
In Eclipse STS
- Right-click on folder project.
- Click on properties.
- Go to project facets.
- Choose your Java 1.8
- Scroll down to Configuration and mark Dynamic Web Module.
After that, it works fine.
Solution 4
In my case error went off when the war file name matched the project name of the eclipse. Its easy to choose one from the drop down box.
Solution 5
Right-click on folder project. Click on properties. Go to project facets. Choose your Java 1.8 Scroll down to Configuration and mark Dynamic Web Module.
When I follow this step getting me the error (Dynamic Web Module 3.0 java 1.6 or newer)
I'm currently using Java 11
bit-question
Updated on July 09, 2022Comments
-
bit-question almost 2 years
I am trying to export an existing Eclipse project to a war file. But whatever I typed in the "WAR Export" dialog page, the system always returned "Module name is invalid". I do not know how to fix this issue. Thanks for the help.