Discussions

General J2EE: Renaming the web.xml file

  1. Renaming the web.xml file (1 messages)

    Hi, Can we rename the web.xml file to something.xml in a java web application. Yup... I know... that.. the web servers look for a "web.xml" file on deployment of the application... But.... Suppose we are using Tomcat... and we have the source code of Tomcat... now the question is... can we modify the source code of tomcat.. to search for "something.xml" instead of "web.xml"....

    Threaded Messages (1)

  2. Whats the use??[ Go to top ]

    You answered your own question: "can we modify the source code of tomcat.. to search for "something.xml" instead of "web.xml"...." The J2EE specs dictate that the web deployment descriptor should be named web.xml to ensure portability of web applications. That is why all the server implementation abide by the specs. By modifying the source code of tomcat you are moving away from the specs and that means your application loses portability. I wonder why someone would want to do this??