Hi,
Can any one clarify my doubt i.e. can we change the name of the web.xml file?
Hi,
Can any one clarify my doubt i.e. can we change the name of the web.xml file?
No we cannot the change of the WEb.xml because there are certain which is defined as standards as we cannot change the name of folder webapps in the Tomcat server same way we cannot change the name of the Web.xml to anyother thing.
webapps directory name can be changed or can also be redirected to different folder all you need to do is edit <Tomcat-Home>/conf/server.xml file find the tag <Host .....> & change the attribute appBase to whichever location you want... make sure the directory exist!!!
e.g.
<Host appBase="C:\\mywebapps" autoDeploy="true" name="localhost" unpackWARs="true" xmlNamespaceAware="false" xmlValidation="false">
now you can put all your deployables in this customized location.
Hi All,
Yes. We can change the name of web.xml, This can be done in context.xml in configuration(conf) folder of tomcat. The related tag is
<WatchedResource>WEB-INF/web.xml</WatchedResource>
Here we've to change the web.xml name to required name. But it's not suggestable, as it's not a custom practise and also won't be used any j2ee (based) application
Please revert back if any issues.......
Thanks,
Ramana.
I wonder why do you want to change/rename web.xml . Changing the content may give you really a knowledge and not the name.