How to deploy war files to tomcat manually?

前端 未结 3 821
时光说笑
时光说笑 2020-12-16 05:04

I have a war at location \"C:\\Documents and Settings\\myProj.war\".

The web project is also available at \"C:\\Documents and Settings\\myProj\".<

3条回答
  •  执笔经年
    2020-12-16 05:47

    These are the steps I follow when I have to manually deploy a war in Tomcat on localhost:

    1. If Tomcat is running, stop/kill it.

    2. Go to the tomcat installation folder (this must be C:\Documents and Settings\tomcat6x for you), let's call it .

    3. In , delete the temp and work folders. They only contain temporary files.

    4. If it's a jar file maybe is for configuration, so drop it in /lib folder. If it's a war file, drop it in /deploy or in /webapps folder.

    5. Start your tomcat.

提交回复
热议问题