RE: Finding exact Tomcat version

2003-07-03 Thread Shapira, Yoav

http://tomcatfaq.sourceforge.net/miscellaneous.html

-Original Message-
From: Jon Felmey [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 03, 2003 11:31 AM
To: [EMAIL PROTECTED]
Subject: Finding exact Tomcat version

Hi, I am creating an install file using InstallAnywhere.  Our program
requires Tomcat 4.1.24.  The problem is that in the registry all Tomcat
4.1.x are refered to as 4.1. So, when I check for the current version,
I
receive 4.1 which could represent 4.1.3 or 4.1.24, etc.  Is there
anyway to
determine the exact version that is installed on a PC.  I need to
verify
that 4.1.24 is installed.

Thanks alot

_
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus


-
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]



Re: Finding exact Tomcat version

2003-07-03 Thread Tim Funk
One way:
In a properties file:  org.apache.catalina.util.ServerInfo.properties
propertyname: server.info
-Tim

Jon Felmey wrote:
Hi, I am creating an install file using InstallAnywhere.  Our program 
requires Tomcat 4.1.24.  The problem is that in the registry all Tomcat 
4.1.x are refered to as 4.1. So, when I check for the current version, I 
receive 4.1 which could represent 4.1.3 or 4.1.24, etc.  Is there anyway 
to determine the exact version that is installed on a PC.  I need to 
verify that 4.1.24 is installed.

Thanks alot



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


RE: Finding exact Tomcat version

2003-07-03 Thread Mike Curwen
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, July 03, 2003 10:50 AM
 To: Tomcat Users List
 Subject: RE: Finding exact Tomcat version
 
 
 
 http://tomcatfaq.sourceforge.net/miscellaneous.html
 

That won't help, since the Installer needs to know, not the webapp.

What is it about 4.1.24 that makes it required?  A bug fix?  The
presence of certain jar file versions ?  I'm just trying to think of a
way that maybe with the entry for CATALINA_HOME (from the registry) plus
file name checking, you might be able to 'fake it'.  
 
Having said that, the easiest (and surest) way would be to let the thing
install, and have your application coded to check the version like Yoav
suggests. JIRA for example (www.atlassian.com) when it starts up will
check what container its running in, and if it detects tomcat then it
shuts off transactions.  I'm sure the run-time checking scheme is
probably used quite a bit.





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



Re: Finding exact Tomcat version

2003-07-03 Thread Jon Felmey
Tim,

Thanks for your help.  One more question.  Is there any way to get the 
version from the command line?

Thanks,
Jon

From: Tim Funk [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Finding exact Tomcat version
Date: Thu, 03 Jul 2003 11:52:02 -0400
One way:
In a properties file:  org.apache.catalina.util.ServerInfo.properties
propertyname: server.info
-Tim

Jon Felmey wrote:
Hi, I am creating an install file using InstallAnywhere.  Our program 
requires Tomcat 4.1.24.  The problem is that in the registry all Tomcat 
4.1.x are refered to as 4.1. So, when I check for the current version, I 
receive 4.1 which could represent 4.1.3 or 4.1.24, etc.  Is there anyway 
to determine the exact version that is installed on a PC.  I need to 
verify that 4.1.24 is installed.

Thanks alot



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

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


Re: Finding exact Tomcat version

2003-07-03 Thread Tim Funk
1) Extract file:
jar xf ???/catalina.jar org/apache/catalina/util/ServerInfo.properties
2) Use you favorite file parsing thingy (grep, perl, awk, c, ??) to parse 
ServerInfo.properties

OR

Write a simple java program and have catalina.jar in your classpath:
 main(...) {
  String version = org.apache.catalina.util.ServerInfo.getServerInfo();
  System.out.println(version);
 }
-Tim

Jon Felmey wrote:
Tim,

Thanks for your help.  One more question.  Is there any way to get the 
version from the command line?

Thanks,
Jon

From: Tim Funk [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: Finding exact Tomcat version
Date: Thu, 03 Jul 2003 11:52:02 -0400
One way:
In a properties file:  org.apache.catalina.util.ServerInfo.properties
propertyname: server.info
-Tim

Jon Felmey wrote:

Hi, I am creating an install file using InstallAnywhere.  Our program 
requires Tomcat 4.1.24.  The problem is that in the registry all 
Tomcat 4.1.x are refered to as 4.1. So, when I check for the current 
version, I receive 4.1 which could represent 4.1.3 or 4.1.24, etc.  
Is there anyway to determine the exact version that is installed on a 
PC.  I need to verify that 4.1.24 is installed.

Thanks alot



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Tired of spam? Get advanced junk mail protection with MSN 8. 
http://join.msn.com/?page=features/junkmail

-
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]