Thanks.

However, isn't this only useful from _within_ the web application?  I
mean, I can only execute this method from within an executing web app
(It's not a static method, therefore, the ServletContext needs to be
instantiated by a running instance of Tomcat.)

I need the tomcat version from a script _outside_ of tomcat.  My script
is an upgrade script, and thus probably isn't going to be executed from
within the web application.

Thanks for the attempt though.

JDG

--
Jay Glanville


> -----Original Message-----
> From: Tim Funk [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, May 06, 2004 11:26 AM
> To: Tomcat Users List
> Subject: Re: What version of tomcat am I using?
> 
> 
> http://jakarta.apache.org/tomcat/faq/misc.html#version
> 
> Glanville, Jay wrote:
> > Is there a way to programmatically determine what version 
> of tomcat is
> > installed on my system?  The situation is this: I'm writing 
> an upgrade
> > script for my application, and if the version of tomcat is 
> 4.x, then I
> > need to shutdown, install tomcat 5, configure tomcat 5 and 
> then startup
> > tomcat 5.  If the version on the system is tomcat 5, then don't do
> > anything.
> > 
> > Normally, most applications have a "--version" command line 
> parameter
> > (e.g.: java -version gives me text that matches the regex 
> "1.4.2_02").
> > Is there a way that I can execute a command to tell me the tomcat
> > version?  If not through the tomcat program, is there a 
> version number
> > stored in a text / configuration file that I can grep?  
> Failing that,
> > how can I tell (programmatically) what version of tomcat I have?
> > 


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

Reply via email to