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.
Procedure. Right-click on a Web project folder and select Export from the pop-up menu. Then select WAR file in the Export window and then select Next. Specify the Web project you want to export (this field is primed if you used the pop-up menu to open the wizard), and specify a location for the new WAR file.
Select File > Import . In the Import dialog, select WAR file and then click Next. Locate the WAR file that you want to import using the Browse button. The wizard assumes you want to create a new Web project with the same name as the WAR file.
I had the same issue, and I fixed it. Please follow the steps below, and you can create your war file.
This works for me.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With