deploy war file in tomcat server

后端 未结 2 1906
死守一世寂寞
死守一世寂寞 2020-12-29 05:27

I have copied the sample.war file in webapps directory of tomcat.

I can acess localhost:8080.

deploying of wars is automatic by default -i have checked my we

相关标签:
2条回答
  • 2020-12-29 05:52

    Delete that war file from webapps/ directory. Then open link http://localhost:8080/ in your web browser. Click Tomcat Manager then enter user name and password. In next page you can see one option called "WAR file to deploy". Select your war file from there and click "deploy" button.

    If you want auto deployment when you copy files to webapp/ directory. Then make sure that you server.xml file contains the following values:

    autoDeploy="true"
    unpackWARs="true"
    

    Just search these values in your server.xml file and edit values as shown above

    For more info see Deploy A New Application from a Local Path.

    0 讨论(0)
  • In general this happens when you have 2 Tomcats. If CATALINA_HOME is referring to Tomcat-A and you are trying to run Tomcat-B from Tomcat-B/bin/startup.bat. It will run Tomcat-A. Hence your war which you are trying to deploy in Tomcat-B will not be extracted as Tomcat-A is running in actual.

    0 讨论(0)
提交回复
热议问题