RE: Tomcat 5.0 contexts
Is something wrong with my logger declaration? It does not seem to be creating the logs that I specified. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, September 23, 2004 4:26 PM To: Tomcat Users List Subject: RE: Tomcat 5.0 contexts Hi, Tomcat 5.0 supports putting Contexts in server.xml just like Tomcat 4.x did. In addition, you can put them in the $CATALINA_HOME/conf/[engine name]/[host name] directory for the engine and host where you want your app deployed. You can also put a META-INF/context.xml file in a WAR and deploy that WAR without any of the above context declarations. All of those should work. Yoav Shapira Millennium Research Informatics -Original Message- From: Luc Foisy [mailto:[EMAIL PROTECTED] Sent: Thursday, September 23, 2004 4:19 PM To: Tomcat User List (E-mail) Subject: Tomcat 5.0 contexts I just put 5.0.28 on to my box, I was working with 4.x branch. I am not quite sure how to define my contexts any more. I do not see context entries in conf/server.xml, even the documentation make reference to contexts being in this file. I did find conf/Catalina/localhost driectory. I thought I would create a context in there, to see what happens. It didn't seem to take that context entry. I then tried to put the context entry into server.xml and it did not seem to take it either (both after tomcat restart) I created a directory in webapps called qbs, and put all the required files and directories in there. This is the contents of the qbs.xml file I created in conf/Catalina/localhost and its contents were what I used in server.xml Context path=/qbs docBase=qbs debug=0 privileged=false reloadable=true Logger className=org.apache.catalina.logger.FileLogger debug=0 directory=logs prefix=qbs_log. suffix=.txt timestamp=true verbosity=1/ /Context To note, this context was already automatically being deployed, just because it existed in the webapps directory, but I would like to override some details. What I am not seeing is the qbs_log.txt file being created, perhaps that is the only thing that is wrong here.. 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]
RE: Tomcat 5.0 contexts
Hi, Is something wrong with my logger declaration? It does not seem to be creating the logs that I specified. Ahh, I didn't even look at that. I think it looks fine. Try specifying a known absolute directory rather than a relative one (logs) to see if that makes a difference. Heads-up -- don't spend much time on Logger configuration unless you have to. If you're already using log4j, JDK 1.4 logging, or commons-logging, stick to those and don't use a Tomcat Logger. If you're not already using one of these packages, consider starting ;) Yoav 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]
RE: Tomcat 5.0 contexts
Thank you. I did get my context to load from Catalina/localhost/qbs.xml INFO: Processing Context configuration file URL file:/home/tomcat/conf/Catalina/localhost/qbs.xml It does not seem to be honoring the logger, even when I use an absolute directory. If it matters, Using RedHat 9.0, jdk 1.4.2_05, tomcat 5.0.28. I have never used one of those logging mechanisms, I have only used the tomcat logger. I will look at those others, since I can't seem to get the Tomcat logger to work at all, which is odd considering the default logger (in server.xml) for all contexts on host seems to be working fine, as well as the logger for the admin context -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, September 24, 2004 9:29 AM To: Tomcat Users List Subject: RE: Tomcat 5.0 contexts Hi, Is something wrong with my logger declaration? It does not seem to be creating the logs that I specified. Ahh, I didn't even look at that. I think it looks fine. Try specifying a known absolute directory rather than a relative one (logs) to see if that makes a difference. Heads-up -- don't spend much time on Logger configuration unless you have to. If you're already using log4j, JDK 1.4 logging, or commons-logging, stick to those and don't use a Tomcat Logger. If you're not already using one of these packages, consider starting ;) Yoav - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 5.0 contexts
On Fri, Sep 24, 2004 at 10:37:51AM -0400, Luc Foisy wrote: : I did get my context to load from Catalina/localhost/qbs.xml : INFO: Processing Context configuration file URL : file:/home/tomcat/conf/Catalina/localhost/qbs.xml Did you edit that file (qbs.xml) or the one in your WAR file's META-INF/context.xml? Tomcat doesn't overwrite the file in conf/{engine}/{host} with the one in the WAR file, even if the WAR file is newer. -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0 contexts
I edited that file. I do not have a WAR. I just put the directory in the webapps directory. There is not a context.xml file in that context directory. -Original Message- From: QM [mailto:[EMAIL PROTECTED] Sent: Friday, September 24, 2004 11:38 AM To: Tomcat Users List Subject: Re: Tomcat 5.0 contexts On Fri, Sep 24, 2004 at 10:37:51AM -0400, Luc Foisy wrote: : I did get my context to load from Catalina/localhost/qbs.xml : INFO: Processing Context configuration file URL : file:/home/tomcat/conf/Catalina/localhost/qbs.xml Did you edit that file (qbs.xml) or the one in your WAR file's META-INF/context.xml? Tomcat doesn't overwrite the file in conf/{engine}/{host} with the one in the WAR file, even if the WAR file is newer. -QM - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 5.0 contexts
You need to specify swallowOutput=true on your context tag to get a separate Tomcat log, eg: Context docBase=/webapps/printerparts path=/printerparts reloadable=true swallowOutput=true Regards, John [EMAIL PROTECTED] Ph (09) 372-5010 |-+--- | | Luc Foisy | | | [EMAIL PROTECTED]| | | -magic.com | | | | | | 25/09/2004 02:37 AM | | | Please respond to | | | Tomcat Users List | | | | |-+--- --| | | | To: Tomcat Users List [EMAIL PROTECTED] | | cc: | | Subject: RE: Tomcat 5.0 contexts | --| Thank you. I did get my context to load from Catalina/localhost/qbs.xml INFO: Processing Context configuration file URL file:/home/tomcat/conf/Catalina/localhost/qbs.xml It does not seem to be honoring the logger, even when I use an absolute directory. If it matters, Using RedHat 9.0, jdk 1.4.2_05, tomcat 5.0.28. I have never used one of those logging mechanisms, I have only used the tomcat logger. I will look at those others, since I can't seem to get the Tomcat logger to work at all, which is odd considering the default logger (in server.xml) for all contexts on host seems to be working fine, as well as the logger for the admin context -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Friday, September 24, 2004 9:29 AM To: Tomcat Users List Subject: RE: Tomcat 5.0 contexts Hi, Is something wrong with my logger declaration? It does not seem to be creating the logs that I specified. Ahh, I didn't even look at that. I think it looks fine. Try specifying a known absolute directory rather than a relative one (logs) to see if that makes a difference. Heads-up -- don't spend much time on Logger configuration unless you have to. If you're already using log4j, JDK 1.4 logging, or commons-logging, stick to those and don't use a Tomcat Logger. If you're not already using one of these packages, consider starting ;) Yoav - 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]
RE: Tomcat 5.0 contexts
Hi, Tomcat 5.0 supports putting Contexts in server.xml just like Tomcat 4.x did. In addition, you can put them in the $CATALINA_HOME/conf/[engine name]/[host name] directory for the engine and host where you want your app deployed. You can also put a META-INF/context.xml file in a WAR and deploy that WAR without any of the above context declarations. All of those should work. Yoav Shapira Millennium Research Informatics -Original Message- From: Luc Foisy [mailto:[EMAIL PROTECTED] Sent: Thursday, September 23, 2004 4:19 PM To: Tomcat User List (E-mail) Subject: Tomcat 5.0 contexts I just put 5.0.28 on to my box, I was working with 4.x branch. I am not quite sure how to define my contexts any more. I do not see context entries in conf/server.xml, even the documentation make reference to contexts being in this file. I did find conf/Catalina/localhost driectory. I thought I would create a context in there, to see what happens. It didn't seem to take that context entry. I then tried to put the context entry into server.xml and it did not seem to take it either (both after tomcat restart) I created a directory in webapps called qbs, and put all the required files and directories in there. This is the contents of the qbs.xml file I created in conf/Catalina/localhost and its contents were what I used in server.xml Context path=/qbs docBase=qbs debug=0 privileged=false reloadable=true Logger className=org.apache.catalina.logger.FileLogger debug=0 directory=logs prefix=qbs_log. suffix=.txt timestamp=true verbosity=1/ /Context To note, this context was already automatically being deployed, just because it existed in the webapps directory, but I would like to override some details. What I am not seeing is the qbs_log.txt file being created, perhaps that is the only thing that is wrong here.. 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]