how to build tomcat -locally- after downloading all sources to your local box
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/building.html explains the ant-based process in which sources are downloaded from CVS. How do you go if all sources you want to first download locally and ocassionally check them using ant checkout? thing is that when you, for example, do a google search trying not to miss the right one on: 'build tomcat ant source installation compile local' you get ten of thousands of articles Albretch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Virtual hosts with standalone tomcat 5.5.9
All I need is different FQDNs (Fully qualified domain names) Say: www.mysite.com, mail.external.mysite.com I tried simply going like this Host name=www.mysite.com Context path= docBase=/var/www/server1 reloadable=true debug=0 / /Host Host name=mail.external.mysite.com Context path= docBase=/var/www/server2 reloadable=true debug=0 / /Host and www.mysite.com works fine but mail.external.mysite.com doesn't. In my trials, I am actually using http://localhost:8080/ and http://host2.localhost:8080/ and I am just copying all the files from the webapps folder. I don't think that this should be causing any problems, though. I have searched for it and you get a lot on links refering to previous versions, etc. Albretch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where are the UNIX-type scripts?
OK, I think I found out why or at least how it happens and repeatedly reproduced it step-by-step. If you use knoppix + Konqueror, and open the .gz file directly as you downloaded with 'ark', it shows you repeated windows .bat files instead of the .sh ones. Maybe it is a 'knoppix + Konqueror + ark' issue and it does not apparently happen with the .zip version of the file. This is a weird one and I am curious as t what the heck could be possibly going on Albretch Quoting Mark Thomas [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: I recently downloaded the latest jakarta-tomcat-5.5.9.tar.gz installation files and set them up, but I can not find the startup.sh, catalina.sh, ... file. This is all I see: [EMAIL PROTECTED] bin]$ ls -l total 500 snip So, where are the UNIX-type scripts? I have just downloaded jakarta-tomcat-5.5.9.tar.gz and confirmed the *.sh files are all present in the tar ball. Did you use GNU tar to extract the files? Some verisons of tar do not do extract all of the files. I think there is some issue to do with path length. Mark - 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]
How Tomcat Works ...
I recently finished reading the book and found it a little bit nonsensical since it deals mostly with TC 4.0. Anyway, here are a couple of other things I noticed On page 142 listing 7.7 there is a piece of 'good-looking', but, functionally speaking, really putrid code that made me wondered if it was true code or deprecated one. Inside of jakarta-tomcat-5.5.9-src/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/valves/AccessLogValve.java I found a very similar code to the one on the book. /** * Log the specified message to the log file, switching files if the date * has changed since the previous log call. * * @param message Message to be logged * @param date the current Date object (so this method doesn't need to *create a new one) */ public void log(String message, Date date) { if (rotatable){ // Only do a logfile switch check once a second, max. long systime = System.currentTimeMillis(); if ((systime - rotationLastChecked) 1000) { // We need a new currentDate currentDate = new Date(systime); rotationLastChecked = systime; // Check for a change of date String tsDate = dateFormatter.format(currentDate); // If the date has changed, switch log files if (!dateStamp.equals(tsDate)) { synchronized (this) { if (!dateStamp.equals(tsDate)) { close(); dateStamp = tsDate; open(); } } } } } // Log this message if (writer != null) { writer.println(message); } } // __ Here is the outline/some pseudo code that is more flexible regarding when do you want to 'cut' the log files (size checks can be easily implemented as well) and doesn't do any String comparisons and stuff /* XML Log descriptor file would look like . UGT time should be used in servers . military time in XM descriptor for 'tf' time frames . a day has 60*60*24 seconds a week *= 7, so an int is safe to carry values and diffs . defintion should be defined within weeks for them to have all the same number of days . ix_dr: index of days range . dr: days range (could be 0 or range 2-4) . ix_tf: index of time frame . hrs: hours (could be given as hh:mm:ss) . minimal time consider to run through logic is one second ELog Path=./ IsBranchTrough=true prefx=eLog suffx=.log logdays ix_dr=0 dr=0!-- definition for SUnday -- tf ix_tf=0 hrs=10!-- SUnday from 0 to 10 AM -- tf ix_tf=1 hrs=14!-- SUnday from 10+ to 24 AM -- /logdays logdays ix_dr=1 dr=1-5!-- definition for Monday through Friday -- tf ix_tf=0 hrs=7:30!-- Mo-Fr from 0 to 7:30 AM -- tf ix_tf=1 hrs=7!-- Mo-Fr from 7:30+ AM to 0 to 2:30 PM -- tf ix_tf=2 hrs=4!-- Mo-Fr from 2:30+ PM to 0 to 6:30 PM -- . . . /logdays . . . /ELog */ // __ OUTLINE OF/PSEUDO CODE class ELogDemo00{ private String aPath;// Root Path Directory for logging private String aPrefx; // Prefix private String aPrefx; // Suffix private boolean IsBranchTrough; // __ private int[] iWDs; // Week Days private int[][] iWDsTmSktxn; // Week Days Time Sections // __ private int iIxCurDay; // Index Of Current Day private int iIxCurTmFrm; // Index Of Current Time Frame private long lLstCut;// Last Cut // __ ELogDemo00(){ // __ read in XML Log descriptor file via JAXB to extract ELog attributes // __ sanitcy checks, then set the run-time fixed values this.aPath = aPath; this.aPath = aPrefx; this.aPath = aPrefx; this.IsBranchTrough = IsBranchTrough; // __ setting now 'logic-branching' values long lNow = System.currentTimeMillis(); iWDs = new int[]{0, 0, 0, 0, 0, 0, 0}; // default for all days the same // __ reading in values from XML file and doing checks ... iWDsTmSktxn = new int[NO logdays defs][NO time frames defs]; // __ this.iIxCurDay = ._(lNow);// Index Of Current Day Calendar Class ... this.iIxCurTmFrm = ._(lNow); // Index Of Current Time Frame depending on day and time right now this.lLstCut = ._(lNow); // value in seconds of last cut // __ } // __ passing the last update time from the session would be better public boolean log(long lTimeStamp, String a2Log){ int iSecs = ((int)(lTimeStamp - lLstCut)); iSecs =/1000; if(iSecs iWDsTmSktxn[iWDs[iIxCurDay]][iIxCurTmFrm]){ reset(); } _.write(lTimeStamp, a2Log); } // __ only stranded requests need a System.currentTimeMillis() call public boolean log(String a2Log){
RE: Where are the UNIX-type scripts?
FYI. I didn't build mine from source Thanks Quoting Greg Scott [EMAIL PROTECTED]: Here are the savesets I used and I have all the scripts: jakarta-tomcat-5.5.9.tar.gz jakarta-tomcat-5.5.9-compat.tar.gz These files I grabbed were a binary distribution - already compiled and built. I'll bet the difference is, you built yours from source. Here are the files I have. I set this up on a Linux FC3 host: [EMAIL PROTECTED] bin]# cd $CATALINA_HOME/bin [EMAIL PROTECTED] bin]# ls -la total 1072 drwxr-xr-x 3 root root 4096 May 17 17:56 . drwxr-xr-x 11 root root 4096 May 17 17:56 .. -rw-r--r-- 1 root root 22547 Mar 26 13:22 bootstrap.jar -rw-r--r-- 1 root root 7684 Mar 26 13:22 catalina.bat -rwxr-xr-x 1 root root 10921 Mar 26 13:22 catalina.sh -rw-r--r-- 1 root root 9386 Mar 26 13:22 commons-daemon.jar -rw-r--r-- 1 root root 26202 Mar 26 13:22 commons-logging-api.jar -rw-r--r-- 1 root root511 Mar 26 13:22 cpappend.bat -rw-r--r-- 1 root root 1284 Mar 26 13:22 digest.bat -rwxr-xr-x 1 root root848 Mar 26 13:22 digest.sh -rw-r--r-- 1 root root 408051 Mar 26 13:22 jmx.jar -rwxr-xr-x 1 root root 76244 May 17 17:33 jsvc drwxr-xr-x 5 root root 4096 May 17 17:33 jsvc-src -rw-r--r-- 1 root root 73008 Mar 26 13:22 jsvc.tar.gz -rw-r--r-- 1 root root 3956 Mar 26 13:22 service.bat -rw-r--r-- 1 root root 2013 Mar 26 13:22 setclasspath.bat -rwxr-xr-x 1 root root 2788 Mar 26 13:22 setclasspath.sh -rw-r--r-- 1 root root 1273 Mar 26 13:22 shutdown.bat -rwxr-xr-x 1 root root787 Mar 26 13:22 shutdown.sh -rw-r--r-- 1 root root 1274 Mar 26 13:22 startup.bat -rwxr-xr-x 1 root root 1141 Mar 26 13:22 startup.sh -rw-r--r-- 1 root root 102400 Mar 26 13:23 tomcat5.exe -rw-r--r-- 1 root root 131072 Mar 26 13:23 tomcat5w.exe -rw-r--r-- 1 root root 12104 Mar 26 13:22 tomcat-juli.jar -rw-r--r-- 1 root root 2235 Mar 26 13:22 tool-wrapper.bat -rwxr-xr-x 1 root root 2549 Mar 26 13:22 tool-wrapper.sh -rw-r--r-- 1 root root 1280 Mar 26 13:22 version.bat -rw-r--r-- 1 root root790 Mar 26 13:22 version.sh [EMAIL PROTECTED] bin]# - Greg Scott -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Saturday, June 11, 2005 4:23 PM To: Tomcat Users List Subject: Where are the UNIX-type scripts? I recently downloaded the latest jakarta-tomcat-5.5.9.tar.gz installation files and set them up, but I can not find the startup.sh, catalina.sh, ... file. This is all I see: [EMAIL PROTECTED] bin]$ ls -l total 500 -rw-r--r-- 1 tcbox00 tcbox00 22547 Jun 11 09:10 bootstrap.jar -rw-r--r-- 1 tcbox00 tcbox00 7684 Jun 11 09:10 catalina.bat -rw-r--r-- 1 tcbox00 tcbox00 9386 Jun 11 09:10 commons-daemon.jar -rw-r--r-- 1 tcbox00 tcbox00 26202 Jun 11 09:10 commons-logging-api.jar -rw-r--r-- 1 tcbox00 tcbox00511 Jun 11 09:10 cpappend.bat -rw-r--r-- 1 tcbox00 tcbox00 1284 Jun 11 09:10 digest.bat -rw-r--r-- 1 tcbox00 tcbox00 73008 Jun 11 09:10 jsvc.tar.gz -rw-r--r-- 1 tcbox00 tcbox00 3956 Jun 11 09:10 service.bat -rw-r--r-- 1 tcbox00 tcbox00 2013 Jun 11 09:10 setclasspath.bat -rw-r--r-- 1 tcbox00 tcbox00 1273 Jun 11 09:10 shutdown.bat -rw-r--r-- 1 tcbox00 tcbox00 1274 Jun 11 09:10 startup.bat -rw-r--r-- 1 tcbox00 tcbox00 102400 Jun 11 09:10 tomcat5.exe -rw-r--r-- 1 tcbox00 tcbox00 131072 Jun 11 09:10 tomcat5w.exe -rw-r--r-- 1 tcbox00 tcbox00 12104 Jun 11 09:10 tomcat-juli.jar -rw-r--r-- 1 tcbox00 tcbox00 2235 Jun 11 09:10 tool-wrapper.bat -rw-r--r-- 1 tcbox00 tcbox00 1280 Jun 11 09:10 version.bat -rwxr-xr-x 1 tcbox00 tcbox00790 Jun 11 09:10 version.sh So, where are the UNIX-type scripts? Thanks Albretch - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where are the UNIX-type scripts?
I recently downloaded the latest jakarta-tomcat-5.5.9.tar.gz installation files and set them up, but I can not find the startup.sh, catalina.sh, ... file. This is all I see: [EMAIL PROTECTED] bin]$ ls -l total 500 -rw-r--r-- 1 tcbox00 tcbox00 22547 Jun 11 09:10 bootstrap.jar -rw-r--r-- 1 tcbox00 tcbox00 7684 Jun 11 09:10 catalina.bat -rw-r--r-- 1 tcbox00 tcbox00 9386 Jun 11 09:10 commons-daemon.jar -rw-r--r-- 1 tcbox00 tcbox00 26202 Jun 11 09:10 commons-logging-api.jar -rw-r--r-- 1 tcbox00 tcbox00511 Jun 11 09:10 cpappend.bat -rw-r--r-- 1 tcbox00 tcbox00 1284 Jun 11 09:10 digest.bat -rw-r--r-- 1 tcbox00 tcbox00 73008 Jun 11 09:10 jsvc.tar.gz -rw-r--r-- 1 tcbox00 tcbox00 3956 Jun 11 09:10 service.bat -rw-r--r-- 1 tcbox00 tcbox00 2013 Jun 11 09:10 setclasspath.bat -rw-r--r-- 1 tcbox00 tcbox00 1273 Jun 11 09:10 shutdown.bat -rw-r--r-- 1 tcbox00 tcbox00 1274 Jun 11 09:10 startup.bat -rw-r--r-- 1 tcbox00 tcbox00 102400 Jun 11 09:10 tomcat5.exe -rw-r--r-- 1 tcbox00 tcbox00 131072 Jun 11 09:10 tomcat5w.exe -rw-r--r-- 1 tcbox00 tcbox00 12104 Jun 11 09:10 tomcat-juli.jar -rw-r--r-- 1 tcbox00 tcbox00 2235 Jun 11 09:10 tool-wrapper.bat -rw-r--r-- 1 tcbox00 tcbox00 1280 Jun 11 09:10 version.bat -rwxr-xr-x 1 tcbox00 tcbox00790 Jun 11 09:10 version.sh So, where are the UNIX-type scripts? Thanks Albretch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where are the UNIX-type scripts?
Also if I try the only unix-like script, namely, version.sh, it looks for the other ones: [EMAIL PROTECTED] bin]$ ./version.sh Cannot find ./catalina.sh Albretch - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]