Deploy WAR files in Tomcat Manually -


deploy war files in tomcat manually

there lots of examples on how deploying war files in tomcat on internet shows how deploy war files in root directory. if want have sub directory call "myfolder" application resides. url: https://localhost:8080/myfolder/index.html. need create folder in webapps call "myfolder" , deploy war files there?

<tomcat>/webapps/myfolder/ 

do need modify context.xml file tomcat know look? there 2 context.xml files. how know 1 pick??

1) <tomcat>/root/meta-inf/context.xml 2) <tomcat>/conf/context.xml 

tks

you should deploy myfolder.war under /webapps/. tomcat picks /myfolder/meta-inf/context.xml application.

  • /conf/context.xml : settings applications
  • /myfolder/meta-inf/context.xml : settings application

Comments