Map a war to root - JAVA Azure web role -
i created simple servlet in eclipse (as dynamic web project) installed azure sdk, packaged project windows azure using gui,
i want app deployed root folder,
so can access :
mysite.com/servlet?....
and not like:
mysite.com/war_name/servlet?....
reffering answer : deploying application @ root in tomcat
i added server.xml
<context docbase="war_name" path="" reloadable="true" />
also tried:
<context docbase="war_name" path="" reloadable="true" debug="0"><context/>
i used remote control verify server.xml has line included (just before 'host' end tag)
and does,
yet still cannot access app want to.
i new java, using tomcat 7, , here screenshot have done :
the simplest way map java webapp (eg: war) root context path deleting original tomcat_home/webapps/root , renaming war file root.war
(if you're deploying in archive style), or rename folder root
(if you're deploying in exploded style). no default server.xml change needed
make sure war file placed on tomcat_home/webapps
however if want keep war file name mentioned, ensure delete tomcat_home/webapps/root folder avoid confusion
this answer has more information mapping tomcat root context path: https://stackoverflow.com/a/5328636/179630
Comments
Post a Comment