> From: Aseem Rastogi [mailto:[EMAIL PROTECTED] > Subject: Deployment options (earlier: Context Descriptor file > not created) > > I have exploded directory structure under build/ > directory. Now, when I deploy this directly using > <deploy> ant task, I see that tomcat creates a > copy of directory structure under its webapps/<path> > directory.
No, Tomcat doesn't, your <deploy> task does. This is what it's defined and documented to do. > When I do some changes to lets say a jsp file under build/ > directory, this doesn't reflect in tomcat because there are > no changes in corresponding file in webapps/<path> directory. Perfectly understandable and completely expected. Did you think that Tomcat would magically remember where a completely independent process copied something from? > I repeated same experiment but this time created a context.xml > file for my application under conf/Catalina/localhost directory. > docBase in context.xml was given path to build/ directory. This > time tomcat didn't create any copy of build/ directory in its > webapps directory and also changes to JSP reflected immediately. Also understandable, expected, and documented. > So, my question is what is the role of Context Descriptor file ? Does > manager application require this for correct (or expected) behavior ? No, a <Context> element is not required unless your webapp has some non-standard attributes that Tomcat needs to be aware of. Most webapps do not need one. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]