Tomcat version output

2002-10-18 Thread Sigurður Bjarnason

Is there a way in tomcat to see what version of tomcat is running .. like in apache 
you can do ..  # ./httpd -version  

?? anyone ?

regards
Siggi


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat version output

2002-10-18 Thread Reynir Hübner
When I start tomcat up on commandline I get messages like this : 

C:\_tomcat2\bin>catalina run
Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   c:\eplica\java
17.10.2002 13:16:09 org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
17.10.2002 13:16:09 org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
17.10.2002 13:16:09 org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
17.10.2002 13:16:10 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 80
Starting service Tomcat-Standalone
Apache Tomcat/4.1.12

I think it's like that with most versions.
Hope it helps
-reynir





> -Original Message-
> From: Sigurður Bjarnason [mailto:siggi@;betware.com] 
> Sent: 17. október 2002 13:10
> To: Tomcat (E-mail)
> Subject: Tomcat version output
> 
> 
> 
> Is there a way in tomcat to see what version of tomcat is 
> running .. like in apache you can do ..  # ./httpd -version  
> 
> ?? anyone ?
> 
> regards
> Siggi
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
> 
> 

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




RE: Tomcat version output

2002-10-18 Thread Julius Davies
Hello, Sigurður Bjarnason,

I recently ran into this problem, as well.  I found a solution that 
works nicely with all web-servers (Tomcat, JRun, Weblogic, etc...). 
Probably others have emailed you with this solution, but in case they 
haven't:

First, create the following jsp:

getServerInfo.jsp
---


<%= application.getServerInfo() %>


---

Then access it however you can, assuming your webserver is running.  At 
work we use lynx, eg. "lynx http://localhost:8080/getServerInfo.jsp. 
There are some flags you can use to make lynx just dump the output on 
std-out.  Another possibility is Curl, or even Ant's "get" task.


That's it!  However, I've added extra information to this email which 
you may find useful... you may be wondering where this undefined 
'application' variable in the jsp comes from!

In any jsp you have the following variables already in scope, among 
others.  Here's the link where I found this:

http://developer.java.sun.com/developer/onlineTraining/JSPIntro/contents.html#JSPIntro5

request
response
application
out

"request" is an instance of javax.servlet.http.HttpServletRequest.
"response" is an instance of javax.servlet.http.HttpServletResponse.
"application" is an instance of javax.servlet.ServletContext.
"out" is an instance of javax.servlet.jsp.JspWriter.  I tend to think of 
the superclass, java.io.Writer, instead, though.

As you can see, ServletContext provides the very useful 
"getServerInfo()" method.  Here's the link in the J2EE api for 
ServletContext.getServerInfo():

http://java.sun.com/j2ee/sdk_1.3/techdocs/api/javax/servlet/ServletContext.html#getServerInfo()


Good luck!

yours,

Julius Davies
Vancouver, Canada



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



RE: Tomcat version output

2002-10-18 Thread Sigurður Bjarnason
I am using.. Linux and i dont get this output..! when i start in console. just.

Using CATALINA_BASE:   /var/jakarta/tomcat4.0.6
Using CATALINA_HOME:   /var/jakarta/tomcat4.0.6
Using CATALINA_TMPDIR: /var/jakarta/tomcat4.0.6/temp
Using JAVA_HOME:   /var/java

The thing is.. i am settin up website.. where i can see..what versions are running at 
any given time.. and this output i get here dont help much.. .. :(

But there must be some way to grep what version is running, at given time. 

Regards
Siggi


-Original Message-
From: Reynir Hübner [mailto:reynir@;hugsmidjan.is]
Sent: 17. október 2002 13:16
To: Tomcat Users List
Subject: RE: Tomcat version output


When I start tomcat up on commandline I get messages like this : 

C:\_tomcat2\bin>catalina run
Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   c:\eplica\java
17.10.2002 13:16:09 org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
17.10.2002 13:16:09 org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
17.10.2002 13:16:09 org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
17.10.2002 13:16:10 org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 80
Starting service Tomcat-Standalone
Apache Tomcat/4.1.12

I think it's like that with most versions.
Hope it helps
-reynir





> -Original Message-
> From: Sigurður Bjarnason [mailto:siggi@;betware.com] 
> Sent: 17. október 2002 13:10
> To: Tomcat (E-mail)
> Subject: Tomcat version output
> 
> 
> 
> Is there a way in tomcat to see what version of tomcat is 
> running .. like in apache you can do ..  # ./httpd -version  
> 
> ?? anyone ?
> 
> regards
> Siggi
> 
> 
> --
> To unsubscribe, e-mail:   
> <mailto:tomcat-user-> [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>
> 
> 

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>




RE: Tomcat version output

2002-10-17 Thread Cox, Charlie

if you haven't delete ROOT, look at index.html

Charlie

> -Original Message-
> From: Sigurður Bjarnason [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, October 17, 2002 9:23 AM
> To: Tomcat Users List
> Subject: RE: Tomcat version output
> 
> 
> I am using.. Linux and i dont get this output..! when i start 
> in console. just.
> 
> Using CATALINA_BASE:   /var/jakarta/tomcat4.0.6
> Using CATALINA_HOME:   /var/jakarta/tomcat4.0.6
> Using CATALINA_TMPDIR: /var/jakarta/tomcat4.0.6/temp
> Using JAVA_HOME:   /var/java
> 
> The thing is.. i am settin up website.. where i can see..what 
> versions are running at any given time.. and this output i 
> get here dont help much.. .. :(
> 
> But there must be some way to grep what version is running, 
> at given time. 
> 
> Regards
> Siggi
> 
> 
> -Original Message-
> From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
> Sent: 17. október 2002 13:16
> To: Tomcat Users List
> Subject: RE: Tomcat version output
> 
> 
> When I start tomcat up on commandline I get messages like this : 
> 
> C:\_tomcat2\bin>catalina run
> Using CATALINA_BASE:   ..
> Using CATALINA_HOME:   ..
> Using CATALINA_TMPDIR: ..\temp
> Using JAVA_HOME:   c:\eplica\java
> 17.10.2002 13:16:09 org.apache.commons.modeler.Registry loadRegistry
> INFO: Loading registry information
> 17.10.2002 13:16:09 org.apache.commons.modeler.Registry getRegistry
> INFO: Creating new Registry instance
> 17.10.2002 13:16:09 org.apache.commons.modeler.Registry getServer
> INFO: Creating MBeanServer
> 17.10.2002 13:16:10 org.apache.coyote.http11.Http11Protocol init
> INFO: Initializing Coyote HTTP/1.1 on port 80
> Starting service Tomcat-Standalone
> Apache Tomcat/4.1.12
> 
> I think it's like that with most versions.
> Hope it helps
> -reynir
> 
> 
> 
> 
> 
> > -Original Message-
> > From: Sigurður Bjarnason [mailto:[EMAIL PROTECTED]] 
> > Sent: 17. október 2002 13:10
> > To: Tomcat (E-mail)
> > Subject: Tomcat version output
> > 
> > 
> > 
> > Is there a way in tomcat to see what version of tomcat is 
> > running .. like in apache you can do ..  # ./httpd -version  
> > 
> > ?? anyone ?
> > 
> > regards
> > Siggi
> > 
> > 
> > --
> > To unsubscribe, e-mail:   
> > <mailto:tomcat-user-> [EMAIL PROTECTED]>
> > For 
> > additional commands, 
> > e-mail: <mailto:[EMAIL PROTECTED]>
> > 
> > 
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


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

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




RE: Tomcat version output

2002-10-17 Thread Shapira, Yoav

Hi,
The version number is always shown on stdout.  So if you start with a console like Mr. 
Hubner, you will see it on the console.  If not, you will see it in 
$CATALINA_HOME/catalina.out.

Also in your setup, you see it from the directory name.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Sigurður Bjarnason [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, October 17, 2002 9:23 AM
>To: Tomcat Users List
>Subject: RE: Tomcat version output
>
>I am using.. Linux and i dont get this output..! when i start in console.
>just.
>
>Using CATALINA_BASE:   /var/jakarta/tomcat4.0.6
>Using CATALINA_HOME:   /var/jakarta/tomcat4.0.6
>Using CATALINA_TMPDIR: /var/jakarta/tomcat4.0.6/temp
>Using JAVA_HOME:   /var/java
>
>The thing is.. i am settin up website.. where i can see..what versions are
>running at any given time.. and this output i get here dont help much.. ..
>:(
>
>But there must be some way to grep what version is running, at given time.
>
>Regards
>Siggi
>
>
>-Original Message-
>From: Reynir Hübner [mailto:[EMAIL PROTECTED]]
>Sent: 17. október 2002 13:16
>To: Tomcat Users List
>Subject: RE: Tomcat version output
>
>
>When I start tomcat up on commandline I get messages like this :
>
>C:\_tomcat2\bin>catalina run
>Using CATALINA_BASE:   ..
>Using CATALINA_HOME:   ..
>Using CATALINA_TMPDIR: ..\temp
>Using JAVA_HOME:   c:\eplica\java
>17.10.2002 13:16:09 org.apache.commons.modeler.Registry loadRegistry
>INFO: Loading registry information
>17.10.2002 13:16:09 org.apache.commons.modeler.Registry getRegistry
>INFO: Creating new Registry instance
>17.10.2002 13:16:09 org.apache.commons.modeler.Registry getServer
>INFO: Creating MBeanServer
>17.10.2002 13:16:10 org.apache.coyote.http11.Http11Protocol init
>INFO: Initializing Coyote HTTP/1.1 on port 80
>Starting service Tomcat-Standalone
>Apache Tomcat/4.1.12
>
>I think it's like that with most versions.
>Hope it helps
>-reynir
>
>
>
>
>
>> -Original Message-
>> From: Sigurður Bjarnason [mailto:[EMAIL PROTECTED]]
>> Sent: 17. október 2002 13:10
>> To: Tomcat (E-mail)
>> Subject: Tomcat version output
>>
>>
>>
>> Is there a way in tomcat to see what version of tomcat is
>> running .. like in apache you can do ..  # ./httpd -version
>>
>> ?? anyone ?
>>
>> regards
>> Siggi
>>
>>
>> --
>> To unsubscribe, e-mail:
>> <mailto:tomcat-user-> [EMAIL PROTECTED]>
>> For
>> additional commands,
>> e-mail: <mailto:[EMAIL PROTECTED]>
>>
>>
>
>--
>To unsubscribe, e-mail:   <mailto:tomcat-user-
>[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:tomcat-user-
>[EMAIL PROTECTED]>
>
>
>--
>To unsubscribe, e-mail:   <mailto:tomcat-user-
>[EMAIL PROTECTED]>
>For additional commands, e-mail: <mailto:tomcat-user-
>[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:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>