rodolfo de wrote:I click right button mouse and try to export my Tomcat project into Eclipse
but there is no .war option.
This .war file is important as long as I want to deploy my first web application on EATJ webhost.
I would suggest creating your own
ant build.xml file and using the ant war task.
http://ant.apache.org/manual/CoreTasks/war.html
Generally, I would create a directory where I would assemble all the directory and files needed. This allows you to have a different file structure between development and deployment. An example of a development file structure of a web application could be as follow:
A build file can then be written to build (assemble) the above into a deployment structure, like so
After the deployment file structure is assembled (using ant) I can then archive it using the ant war task and generate something like. At this point I can also copy the change note, version, readme, and include it within the .war
project root/build/current --> projectName-version-date.war
Which can then be deployed using various ways - the easiest of which is to just copy it into an app server's deployment directory.