Shapira, Yoav wrote:

Howdy,



I have a question about the format of context.xml. Tomcat 5


documentation:


http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html

says that the docBase attribute is required (as it's bolded). Is this
really correct? I was able to deploy an application through the manager
application with context.xml that did not contain docBase. I don't want
to put an absolute path to the application to context.xml, as
context.xml is stored in CVS. This looks to me as a documentation bug,
isn't it?



Look in your $CATALINA_HOME/conf/[engine name]/[host name] directory. Do you see the XML file for your context, and if so does it have a docBase?

Yoav Shapira




Hi Yoav,


I think you meant $CATALINA_BASE/...., correct? No, this file does not have the docBase attribute. Nevertheless, deploying using

http://localhost:8080/manager/deploy?config=file:/path/webapp/META-INF/context.xml&war=file:/path/webapp/

seems to work even without the docBase attribute, at least on the surface. So, is this scenario supported, or should I be doing things differently?

Or, let me phrase my question differently. Here is my situation:

1. I put context.xml inside webapp/META-INF.
2. 'webapp' location not relative to Tomcat directory.
3. I don't want to put an absolute path to the docBase attribute in context.xml, as this file is versioned.


How can I now deploy this application using the manager, so it runs in place from the 'webapp' directory? I don't want to package it or copy it to a different location, just run it from there. What variant of the manager deploy command should I use?

Thanks
Petr



This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]






--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to