How to deploy a Java Web Application (.war) on tomcat?

后端 未结 5 1911
夕颜
夕颜 2020-12-01 12:13

I have a .war file of a Java Web Application. Now I want to upload it to my ftp server so that I can execute it.

What steps I should perform to run it?<

5条回答
  •  盖世英雄少女心
    2020-12-01 12:43

    • copy the .war file in the webapps folder
    • upload the file using the manager application - http://host:port/manager. You will have to setup some users beforehand.
    • (not recommended, but working) - manually extract the .war file as a .zip archive and place the extracted files in webapps/webappname

    Sometimes administrators configure tomcat so that war files are deployed outside the tomcat folder. Even in that case:

    After you have it deployed (check the /logs dir for any problems), it should be accessible via: http://host:port/yourwebappname/. So in your case, one of those:

    http://bilgin.ath.cx/TestWebApp/
    http://bilgin.ath.cx:8080/TestWebApp/
    

    If you don't manage by doing the above and googling - turn to your support. There might be an alternative port, or there might be something wrong with the application (and therefore in the logs)

提交回复
热议问题