You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Stephanie Wullbieter <sw...@gmx.de> on 2009/03/12 15:07:18 UTC
howto clear Tomcat 6.0 ServerInfo.properties ?
Hi,
to edit/clear the ServerInfo.properties (Version etc.) with Tomcat 5.5 I did the following:
cd $CATALINA_HOME/common/classes
unzip $CATALINA_HOME/server/lib/catalina.jar org/apache/catalina/util/ServerInfo.properties
vi org/apache/catalina/util/ServerInfo.properties
With Tomcat 6.0 there is no common/classes directory anymore. How can I achieve the above with Tomcat 6.0 ? Especially when CATALINA_BASE is different from CATALINA_HOME.
Thank You.
--
Nur bis 16.03.! DSL-Komplettanschluss inkl. WLAN-Modem für nur
17,95 ¿/mtl. + 1 Monat gratis!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: howto clear Tomcat 6.0 ServerInfo.properties ?
Posted by Markus Schönhaber <to...@list-post.mks-mail.de>.
Caldarale, Charles R:
>> From: Markus Schönhaber
>> My guess would be that she wants to hide Tomcat version
>> information from Tomcat's error pages.
>
> Then setting the server attribute of the <Connector> element and providing custom error pages would seem to be a whole lot easier and more robust.
Of course.
As I said before, I don't know why some people think they increase
security by messing around with server.properties.
I've once seen an article about "Tomcat security" somewhere on the net
which did propose this. Maybe that's the reason.
Regards
mks
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: howto clear Tomcat 6.0 ServerInfo.properties ?
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Markus Schönhaber [mailto:tomcat-users@list-post.mks-mail.de]
> Subject: Re: howto clear Tomcat 6.0 ServerInfo.properties ?
>
> My guess would be that she wants to hide Tomcat version
> information from Tomcat's error pages.
Then setting the server attribute of the <Connector> element and providing custom error pages would seem to be a whole lot easier and more robust.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: howto clear Tomcat 6.0 ServerInfo.properties ?
Posted by Markus Schönhaber <to...@list-post.mks-mail.de>.
Caldarale, Charles R:
> You still haven't explained why you think it's necessary to update
> ServerInfo.properties at all. If you want to differentiate multiple
> Tomcat instances, the value of ${catalina.base} would seem to
> suffice.
My guess would be that she wants to hide Tomcat version information from
Tomcat's error pages. Some people think that this increases security
somehow. I'm not sure, why.
Regards
mks
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: howto clear Tomcat 6.0 ServerInfo.properties ?
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Stephanie Wullbieter [mailto:swullb@gmx.de]
> Subject: Re: howto clear Tomcat 6.0 ServerInfo.properties ?
>
> I would appreciate not to change anything in $CATALINA_HOME,
> but the CLASSPATH is unset in catalina.sh as You know...
That's because setting CLASSPATH for Tomcat is pretty much always a bad idea.
You still haven't explained why you think it's necessary to update ServerInfo.properties at all. If you want to differentiate multiple Tomcat instances, the value of ${catalina.base} would seem to suffice.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: howto clear Tomcat 6.0 ServerInfo.properties ?
Posted by Stephanie Wullbieter <sw...@gmx.de>.
Thanks Mark,
I want to avoid modifying the files in $CATALINA_HOME. But it seems that in this case the CLASSPATH has to be modified, to unzip the property file there, because unzipping to the common class loader dirtectory does not work. So I appended CLASSPATH=$CATALINA_BASE/system_class_loader:$CLASSPATH to $CATALINA_HOME/bin/setclasspath.sh and unzipped the propery file in the directory $CATALINA_BASE/system_class_loader. Now it works.
Any suggestions to this solutions?
I would appreciate not to change anything in $CATALINA_HOME, but the CLASSPATH is unset in catalina.sh as You know...
Thanks again,
Stephanie
-------- Original-Nachricht --------
> Datum: Thu, 12 Mar 2009 15:33:22 +0000
> Von: Mark Thomas <ma...@apache.org>
> An: Tomcat Users List <us...@tomcat.apache.org>
> Betreff: Re: howto clear Tomcat 6.0 ServerInfo.properties ?
> Do the same thing but just unpack the jar to $CATALINA_HOME/lib
>
> common/classes and common/lib have been merged into $CATALINA_HOME/lib
> in Tomcat 6.
>
--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: howto clear Tomcat 6.0 ServerInfo.properties ?
Posted by Stephanie Wullbieter <sw...@gmx.de>.
Thanks Markus,
setting
common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar
and unzipping to ${catalina.base}/lib did solve it.
Greetings,
Stephanie
-------- Original-Nachricht --------
> Datum: Fri, 13 Mar 2009 14:32:20 +0100
> Von: "Markus Schönhaber" <to...@list-post.mks-mail.de>
> An: users@tomcat.apache.org
> Betreff: Re: howto clear Tomcat 6.0 ServerInfo.properties ?
> Stephanie Wullbieter:
>
> > I mean what did not work was adding
> >
> >
> >
> > to $CATALINA_BASE/conf/catalina.properties
> >
> > and unzipping the SystemInfo.properties from
> $CATALINA_HOME/server/lib/catalina.jar to $CATALINA_BASE/lib/org/apache/catalina/util/
>
> Seems to me that this is to be expected, since ${catalina.base}/lib
> is searched *after* ${catalina.home}/lib/*.jar (i. e. after
> catalina.jar) when common.loader is set as above.
>
> Regards
> mks
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: howto clear Tomcat 6.0 ServerInfo.properties ?
Posted by Markus Schönhaber <to...@list-post.mks-mail.de>.
Stephanie Wullbieter:
> I mean what did not work was adding
>
> common.loader=${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.base}/lib,${catalina.base}/lib/*.jar
>
> to $CATALINA_BASE/conf/catalina.properties
>
> and unzipping the SystemInfo.properties from $CATALINA_HOME/server/lib/catalina.jar to $CATALINA_BASE/lib/org/apache/catalina/util/
Seems to me that this is to be expected, since ${catalina.base}/lib
is searched *after* ${catalina.home}/lib/*.jar (i. e. after
catalina.jar) when common.loader is set as above.
Regards
mks
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: howto clear Tomcat 6.0 ServerInfo.properties ?
Posted by Stephanie Wullbieter <sw...@gmx.de>.
I mean what did not work was adding
common.loader=${catalina.home}/lib,${catalina.home}/lib/*.jar,${catalina.base}/lib,${catalina.base}/lib/*.jar
to $CATALINA_BASE/conf/catalina.properties
and unzipping the SystemInfo.properties from $CATALINA_HOME/server/lib/catalina.jar to $CATALINA_BASE/lib/org/apache/catalina/util/
Thanks,
Stephanie
-------- Original-Nachricht --------
> Datum: Thu, 12 Mar 2009 15:33:22 +0000
> Von: Mark Thomas <ma...@apache.org>
> An: Tomcat Users List <us...@tomcat.apache.org>
> Betreff: Re: howto clear Tomcat 6.0 ServerInfo.properties ?
> Do the same thing but just unpack the jar to $CATALINA_HOME/lib
>
> common/classes and common/lib have been merged into $CATALINA_HOME/lib
> in Tomcat 6.
>
> Mark
--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: howto clear Tomcat 6.0 ServerInfo.properties ?
Posted by Mark Thomas <ma...@apache.org>.
Stephanie Wullbieter wrote:
> Hi,
>
> to edit/clear the ServerInfo.properties (Version etc.) with Tomcat 5.5 I did the following:
>
> cd $CATALINA_HOME/common/classes
>
> unzip $CATALINA_HOME/server/lib/catalina.jar org/apache/catalina/util/ServerInfo.properties
>
> vi org/apache/catalina/util/ServerInfo.properties
>
> With Tomcat 6.0 there is no common/classes directory anymore. How can I achieve the above with Tomcat 6.0 ? Especially when CATALINA_BASE is different from CATALINA_HOME.
Do the same thing but just unpack the jar to $CATALINA_HOME/lib
common/classes and common/lib have been merged into $CATALINA_HOME/lib
in Tomcat 6.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: howto clear Tomcat 6.0 ServerInfo.properties ?
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Stephanie Wullbieter [mailto:swullb@gmx.de]
> Subject: howto clear Tomcat 6.0 ServerInfo.properties ?
>
> With Tomcat 6.0 there is no common/classes directory anymore.
RTFM:
http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html
> How can I achieve the above with Tomcat 6.0 ? Especially when
> CATALINA_BASE is different from CATALINA_HOME.
Why do you think you need to edit ServerInfo.properties at all?
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org