If you do not have eclipse, just put the war file in the Tomcat webapps folder, go to the Tomcat bin folder and run startup . Tomcat will automatically extract a war file for you. Now go to the webapps folder and there you will find another folder with the same name as your war.
I could not find an option to import the war directly into Netbeans (strange. Perhaps someone could create this function and send it as a patch for Netbeans). The folder that is extracted to the Tomcat folder can be used as a Netbeans project. It is recommended that you first copy it to another folder. Import by File > New Project > Web application with existing sources .
Eclipse has the ability to export the war and include sources along with it, so it is likely that the source files will also enter the game.
source share