
Optionally, you can choose to export the source files. The wizard will handle the details of constructing the Web Module per the J2EE specification. Initially, the export wizard should have the project that contains the Web Module you selected. You may change the Web Module you would like to export in the “Web project:” drop down. The Wizard will already have the Web Module you intend to export pre-selected. (For instance, a Dynamic Web Module).įigure 1.1: Right click on the Web module you intend to Export and select “Export > WAR File”.įigure 1.2: Enter a destination for your *.war file and click “Finish”.įigure 1: Right click on an existing project to export a *.war module. First, you must have previously imported or created a module. The following instructions focus on exporting modules as deployable artifacts. Modules that are created in WTP may be exported in various ways. If you ever edit the app, repeat steps 2-4 (but delete the webapps\myapp\ folder created before executing step 3). (Don’t worry: the simple method is ok for production deployment). But they can be tricky and, as a new user, you should avoid them. There are other ways, like via Tomcat Manager.war (say myapp.war) file in your apache-tomcat-folder\webapps\ folder. The, by far, simplest way to do this is to place your.More detailed explanation can be found here and here (with pictures). Then select WAR file in the Export window and then select Next. In Eclipse, right click on a Web project and select Export.Make sure you test it before continuing (open its address on a browser, something like ).
