Open a command prompt and cd to
Use the java archive command 'jar' to bundle up your application
jar -cvf golz.war *
In English, "compress everything in this directory into a file named golz.war"
(c=create, v=verbose, f=file)
Now you can copy golz.war to the webapps directory on the Tomcat Server. When you save the file to server BE SURE not to save it as a ZIP file, choose "all files". If Tomcat is running on the new server the war file will be automatically installed as soon as you save it. If not, start up Tomcat on the server to install the application. After you have saved it. Do NOT attempt to unzip the war file or do any installation yourself. Tomcat will do everything for you!
When the server is restarted it will automatically uncompress the files and recreate a web application named 'golz'. (Do NOT attempt to unzip the war file yourself, let Tomcat take care of all that.)
0 Post Your Comment Here:
Post a Comment