RE: Upgrading tomcat 5 on Windows
Hi, Please, never ever install any product on top of another. Install tomcat 5.0.25 to a clean directory, configure it as you need. You can try copying over configuration files if you want, but don't install on top, you risk library mismatch nightmares. Yoav Shapira Millennium Research Informatics >-Original Message- >From: Michiel Toneman [mailto:[EMAIL PROTECTED] >Sent: Wednesday, June 09, 2004 8:22 AM >To: Tomcat Users List >Subject: Re: Upgrading tomcat 5 on Windows > >Hi Tim, > >Without giving any specific advice: > >Rule 1 of system administration: Always back up configuration files. > >Michiel > >Tim Penhey wrote: > >>Hi All, >> >>I have Tomcat 5.0.18 running on one machine with a number of configured >webapps. >>If I install the 5.0.25 over the top will all the configuration files stay >or should I >>back them up? >> >>Tim >> >> >-- >Michiel Toneman Software Engineer Bibit Global Payment Services >Regulierenring 10 3981 LB Bunnik [EMAIL PROTECTED] >Tel. +31-30-6595168 Fax +31-30-6564464 http://www.bibit.com/ > > >- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] 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]
Vedr.: Re: Upgrading tomcat 5 on Windows
Upon uninstalling Tomcat you are prompted whether you want remove any work done. Say no to this and you should be able to install in the same directory keeping your webapps. Not sure about the server.xml, jk2.properties and workers2.properties though (cant remember). Anyway I would like to add Rule 2 of system administration: Always, always back up configuration files Btw think theres a 3rd rule as well... /Thomas Michiel Toneman <[EMAIL PROTECTED]> 09-06-2004 14:21 Besvar venligst til "Tomcat Users List" Til:Tomcat Users List <[EMAIL PROTECTED]> cc: Vedr.: Re: Upgrading tomcat 5 on Windows Hi Tim, Without giving any specific advice: Rule 1 of system administration: Always back up configuration files. Michiel Tim Penhey wrote: >Hi All, > >I have Tomcat 5.0.18 running on one machine with a number of configured webapps. >If I install the 5.0.25 over the top will all the configuration files stay or should I >back them up? > >Tim > > -- Michiel Toneman Software Engineer Bibit Global Payment Services Regulierenring 10 3981 LB Bunnik [EMAIL PROTECTED] Tel. +31-30-6595168 Fax +31-30-6564464 http://www.bibit.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ___ Vi goer opmaerksom paa, at denne e-mail kan indeholde fortrolig information. Hvis du ved en fejltagelse modtager e-mailen, beder vi dig venligst informere afsender om fejlen ved at bruge svar-funktionen. Samtidig beder vi dig slette e-mailen i dit system uden at videresende eller kopiere den. Selv om e-mailen og ethvert vedhaeftet bilag efter vores overbevisning er fri for virus og andre fejl, som kan paavirke computeren eller it-systemet, hvori den modtages og laeses, aabnes den paa modtagerens eget ansvar. Vi paatager os ikke noget ansvar for tab og skade, som er opstaaet i forbindelse med at modtage og bruge e-mailen. ___ Please note that this message may contain confidential information. If you have received this message by mistake, please inform the sender of the mistake by sending a reply, then delete the message from your system without making, distributing or retaining any copies of it. Although we believe that the message and any attachments are free from viruses and other errors that might affect the computer or IT system where it is received and read, the recipient opens the message at his or her own risk. We assume no responsibility for any loss or damage arising from the receipt or use of this message.
Re: Upgrading tomcat 5 on Windows
Hi Tim, Without giving any specific advice: Rule 1 of system administration: Always back up configuration files. Michiel Tim Penhey wrote: Hi All, I have Tomcat 5.0.18 running on one machine with a number of configured webapps. If I install the 5.0.25 over the top will all the configuration files stay or should I back them up? Tim -- Michiel Toneman Software Engineer Bibit Global Payment Services Regulierenring 10 3981 LB Bunnik [EMAIL PROTECTED] Tel. +31-30-6595168 Fax +31-30-6564464 http://www.bibit.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgrading Tomcat 5
Tim, For config files what about having Tomcat use variable constructions like we see in Ant scripts: $catalina.home, rather than fixed paths. Then Tomcat could write out server.xml with constructions like configFile="$catalina.home/conf/Catalina/www.vhost.com/ROOT.xml". This would make upgrading easier. Gerry Reno __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgrading Tomcat 5
I haven't played (much) with the new deployer functionality yet. So I am unfamiliar with the minor details (and issues) of the path based dependencies. Running a script on config files is not a big deal for an upgrade. Most commercial software probably does that with (or without) our acknowledgement. If the script were consistent it could always be packaged with tomcat to aid in upgrades. The way apps are deployed (configured) is new and will have gotchas like this. But the code is open for anyone to say "I don't like that" and propose their change. (Or fork if you change isn't made) -Tim Gerry Reno wrote: Tim, Is this definitive? I was hoping this would not be the case. I think that requiring users to run content replacement scripts against their config files to accomplish an upgrade will definitely end up being problematic. Gerry - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Upgrading Tomcat 5
I prefer a different setup. We separate the tomcat installation from the site. With this approach the conf files are placed outside of the tomcat directory tree. As long as the config files are compatible, an upgrade is just a matter of setting a different CATALINA_HOME. Althoug we didn't use tomcat 5 by now the following should be appliable: (An updated version of a post from yesterday) We install different versions of jdk/tomcat like this: /usr/local/java/jdk/ibm1.3 /usr/local/java/jdk/sun1.3 /usr/local/java/jdk/sun1.3.1 /usr/local/java/jdk/sun1.4 /usr/local/java/tomcat-4.0.3 /usr/local/java/tomcat-4.1.10 For each site we have something like this: /www/online/ the base directory for a tomcat instance (In our case typically a site, as we don't use vhosts withe different webapps) /www/online//log directory for the log file /www/online//conf web.xml server.xml and other files that contain the site/instance specific setup for tomcat (tailored versions of the files that are provided by tomcat) make shure that all combinations of IP and port are unique for each instance of tomcat. ... /www/online//work Directory where tomcat stores the generated files and classes /www/online//webapps Directories for the contexts /www/online//bin start.sh Script that calls the tomcat version that we want to use for this site/instance with the environment for this site/instance: JAVA_HOME=/usr/local/java/jdk/sun1.3.1 CATALINA_HOME=/usr/local/java/tomcat-4.0.3 CATALINA_BASE=/www/online/ export JAVA_HOME CATALINA_HOME CATALINA_BASE ${CATALINA_HOME}/bin/startup.sh /www/online//??? Depending on the tomcat version there may be further directories that are needed on this level This way we can have different versions of tomcat at the same time, all sites that use the same tomcat version use the same 'executable' but different processes and individual configuration. If we want to use another version of tomcat we just have to change CATALINA_HOME in start.sh (unless the config files are incompatible between these versions) > -Original Message- > From: Gerry Reno [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 15, 2003 4:42 AM > To: Tomcat Users List > Subject: Re: Upgrading Tomcat 5 > > > Tim, > Is this definitive? I was hoping this would not be the case. I > think that requiring users to run content replacement scripts against > their config files to accomplish an upgrade will definitely end up > being problematic. > > Gerry > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgrading Tomcat 5
Tim, Is this definitive? I was hoping this would not be the case. I think that requiring users to run content replacement scripts against their config files to accomplish an upgrade will definitely end up being problematic. Gerry --- Tim Funk <[EMAIL PROTECTED]> wrote: > I don't think it is. But it might be as easy as: > > X=/usr/local/tomcat-5.0.3/conf/Catalina/www.vhost.com > Y=/usr/local/tomcat-5.0.4/conf/Catalina/www.vhost.com > cp -r $X $Y > perl -pi -e "s|$X|$Y|" $Y/*.xml > > > -Tim > > Gerry Reno wrote: > > One problem that I see with copying the conf/Catalina tree and > these > > .xml files is with paths that are declared within the > > .xml files: For example: > > > > in ROOT.xml > > > > ... > > > configFile="/usr/local/tomcat-5.0.3/conf/Catalina/www.vhost.com/ROOT.xml" > > ... > > > > > > Does Tomcat know to adjust these paths to the current > $CATALINA_HOME > > which soon would be /usr/local/tomcat-5.0.4? > > > > Gerry Reno > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgrading Tomcat 5
I don't think it is. But it might be as easy as: X=/usr/local/tomcat-5.0.3/conf/Catalina/www.vhost.com Y=/usr/local/tomcat-5.0.4/conf/Catalina/www.vhost.com cp -r $X $Y perl -pi -e "s|$X|$Y|" $Y/*.xml -Tim Gerry Reno wrote: One problem that I see with copying the conf/Catalina tree and these .xml files is with paths that are declared within the .xml files: For example: in ROOT.xml ... configFile="/usr/local/tomcat-5.0.3/conf/Catalina/www.vhost.com/ROOT.xml" ... Does Tomcat know to adjust these paths to the current $CATALINA_HOME which soon would be /usr/local/tomcat-5.0.4? Gerry Reno - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Upgrading Tomcat 5
One problem that I see with copying the conf/Catalina tree and these .xml files is with paths that are declared within the .xml files: For example: in ROOT.xml ... configFile="/usr/local/tomcat-5.0.3/conf/Catalina/www.vhost.com/ROOT.xml" ... Does Tomcat know to adjust these paths to the current $CATALINA_HOME which soon would be /usr/local/tomcat-5.0.4? Gerry Reno --- Gerry Reno <[EMAIL PROTECTED]> wrote: > Since Tomcat 5 will be removing vhost contexts from server.xml and > writing them out to conf/Catalina//.xml what will be > the procedure for upgrading Tomcat 5? Right now under Tomcat 4, I > install a new version, change my CATALINA_HOME, move my webapps to > the > new version and move all my vhost entries in server.xml to the new > server.xml. Under Tomcat 5 when upgrading will I also need to copy > the > conf/Catalina tree to the new version? > > thx, > Gerry Reno > > > __ > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > http://sbc.yahoo.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]