Re: Modifying logging levels logged in catalina.out at runtime

2010-12-01 Thread Jorge Medina
I do that by scheduling a thread that every minute checks if my logging.properties file has changed. You may use the timestamp of the file or a change of its MD5 hash to determine that the file has changed. If the file has changed, then I reconfigure the logging library (log4j) with the new content

Re: Can't access tomcat manager

2010-12-01 Thread Jorge Medina
I hope one of you is right, you have just rule out any other cause by using all the remaining probabilityand it would be catastrophic for all the mathematicians. On Wed, Dec 1, 2010 at 6:03 PM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > André, > > On 12/1

Re: Fwd: Tomcat 7: Compatibility problems

2010-12-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonatan, On 12/1/2010 6:10 PM, Jonatan Aguirre Kobayashi wrote: > Christofer, i used the invoker to prototype applications more faster, if you > put your product to production the invoker has several security problems. As Mark pointed out, you can us

RE: automatic deployment without server.xml - bad request

2010-12-01 Thread Caldarale, Charles R
> From: Justin Case [mailto:send_lotsa_spam_h...@yahoo.com] > Subject: Re: automatic deployment without server.xml - bad request >...and will it compile the JSPs as well? JSPs are only compiled upon first reference, not before. That results in a slight (usually very slight) pause for the firs

RE: Modifying logging levels logged in catalina.out at runtime

2010-12-01 Thread Jason Pyeron
> -Original Message- > From: Mark Eggers [mailto:its_toas...@yahoo.com] > Sent: Wednesday, December 01, 2010 15:20 > To: Tomcat Users List > Subject: Re: Modifying logging levels logged in catalina.out > at runtime > > Hopefully you're not creating custom logging levels. Creating No

Re: automatic deployment without server.xml - bad request

2010-12-01 Thread Justin Case
First of all, thanks for your long answer. > Please read (carefully), the following documentation: Exactly from there I got the approach of "Copy unpacked directory hierarchy...". > Your docBase would only work if you have a directory > $CATALINA_BASE/com.mycompany.myapp. It works actually,

Re: Fwd: Tomcat 7: Compatibility problems

2010-12-01 Thread Jonatan Aguirre Kobayashi
Christofer, i used the invoker to prototype applications more faster, if you put your product to production the invoker has several security problems. thanks for the answer! 2010/12/1 Christopher Schultz > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Jonatan, > > On 12/1/2010 8:35 AM, Jo

Re: Can't access tomcat manager

2010-12-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 12/1/2010 5:37 PM, André Warnier wrote: > Markus Schönhaber wrote: >>> >> -^^ >> > and if it isn't the above, then with 0.999 probability, you have left > XML comment brackets somewhere where you shouldn't. > That leaves 0.001

Re: Can't access tomcat manager

2010-12-01 Thread André Warnier
Markus Schönhaber wrote: 01.12.2010 23:05, Lava Saleem: I have installed apache tomcat 7.0.4 on a centos linux box, I have modified the tomcat-users.xml file as shown below and restarted it, my tomcat still can't get an access to the manager, I deleted the other users and just put mine in t

Re: Can't access tomcat manager

2010-12-01 Thread Markus Schönhaber
01.12.2010 23:05, Lava Saleem: > I have installed apache tomcat 7.0.4 on a centos linux box, I have > modified the tomcat-users.xml file as shown below and restarted it, my > tomcat still can't get an access to the manager, I deleted the other users > and just put mine in the xml file but this

Can't access tomcat manager

2010-12-01 Thread Lava Saleem
Hi, I have installed apache tomcat 7.0.4 on a centos linux box, I have modified the tomcat-users.xml file as shown below and restarted it, my tomcat still can't get an access to the manager, I deleted the other users and just put mine in the xml file but this didn't really helped. I'm new to th

Re: New jsvc (commons-daemon-native); catalina.out is owned by root - WTF?

2010-12-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregor, On 12/1/2010 5:55 AM, Gregor Schneider wrote: > And if you take a look into /var/logs, you can see exactly, that the > logs inside this directory partly don't belong to root as long as they > are not run within a root-context. > > A good exam

Re: New jsvc (commons-daemon-native); catalina.out is owned by root - WTF?

2010-12-01 Thread Wesley Acheson
Can someone explain to me why logging as the tomcat user is a security risk? I don't like that behaviour but then again I don't understand it. Regards, Wesley Acheson On Wed, Dec 1, 2010 at 6:41 PM, Mladen Turk wrote: > On 12/01/2010 11:55 AM, Gregor Schneider wrote: >>> >> Sure, since Apache

Re: Modifying logging levels logged in catalina.out at runtime

2010-12-01 Thread Mark Eggers
Hopefully you're not creating custom logging levels. Creating custom logging levels is the classic way to create classloader leaks. See the following as an example: http://blogs.sun.com/fkieviet/entry/classloader_leaks_the_dreaded_java You can create a logging.properties file and place it in WE

Modifying logging levels logged in catalina.out at runtime

2010-12-01 Thread Jason Pyeron
This may be slightly off-topic. I'll start off with I know how to do this from inside the webapp's code and how to do it by modifing properties files on the system at tomcat startup. But how can it be done from outside the webapp with out restarting tomcat? We are using java.util.logging on tomca

Re: automatic deployment without server.xml - bad request

2010-12-01 Thread Mark Eggers
Short answer: Please read (carefully), the following documentation: http://tomcat.apache.org/tomcat-6.0-doc/appdev/deployment.html Longer answer: 1. remove the docBase attribute from your Context Your docBase would only work if you have a directory $CATALINA_BASE/com.mycompany.myapp. 2. rem

Re: Tomcat SSL godaddy

2010-12-01 Thread Nathaniel Thalluri
The certificate was authorized for multiple domains and the domains are not all on the same machine. Would this have any affect? Also the keystore should have only one entry after the imports. But mine has 5 which is also weird. -

Re: Filter questions

2010-12-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, On 12/1/2010 12:53 PM, Caldarale, Charles R wrote: >> From: Leo Donahue - PLANDEVX [mailto:leodona...@mail.maricopa.gov] >> Subject: RE: Filter questions > >> In the meantime I was trying to understand how/when "servletness" occurs. > > With

Re: Fwd: Tomcat 7: Compatibility problems

2010-12-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jonatan, On 12/1/2010 8:35 AM, Jonatan Aguirre Kobayashi wrote: > Can i implement the Servlet Invoker using annotations? The invoker servlet is completely unnecessary and was only available in older versions of the spec for backward-compatibility. T

Re: Tomact does not see log4j-6.0.26.jar while it is there

2010-12-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marlon, On 12/1/2010 7:39 AM, marlon wrote: > Christopher Schultz christopherschultz.net> writes: > >> 1. Pointing the wrong way >> 2. Broken (missing ".jar" at the end) >> >> -chris >> > > I had exactly the same problem when I use the command" > y

RE: Filter questions

2010-12-01 Thread Caldarale, Charles R
> From: Leo Donahue - PLANDEVX [mailto:leodona...@mail.maricopa.gov] > Subject: RE: Filter questions > In the meantime I was trying to understand how/when "servletness" occurs. Within Tomcat, always. > http://localhost:8080 will load index.html, because of the welcome > file, in ROOT but that

Re: New jsvc (commons-daemon-native); catalina.out is owned by root - WTF?

2010-12-01 Thread Mladen Turk
On 12/01/2010 11:55 AM, Gregor Schneider wrote: Sure, since Apache is usually started within root-context ("sbin") - so that does make sense. Right but it drops the user to apache if instructed to do so. Even then logs are root owned, and this is security precaution (like with jsvc) And i

Re: Filter questions

2010-12-01 Thread Pid *
On 1 Dec 2010, at 17:28, Leo Donahue - PLANDEVX wrote: >> -Original Message- >> From: Pid * [mailto:p...@pidster.com] >> Subject: Re: Filter questions >> >> On 1 Dec 2010, at 14:35, Leo Donahue - PLANDEVX >> wrote: >> >>> Servlet Spec 2.5 >>> SRV.6.2.1 >>> >>> "The container provides the

Re: Filter questions

2010-12-01 Thread Pid *
On 1 Dec 2010, at 17:28, Leo Donahue - PLANDEVX wrote: >> -Original Message- >> From: Pid * [mailto:p...@pidster.com] >> Subject: Re: Filter questions >> >> On 1 Dec 2010, at 14:35, Leo Donahue - PLANDEVX >> wrote: >> >>> Servlet Spec 2.5 >>> SRV.6.2.1 >>> >>> "The container provides the

RE: Filter questions

2010-12-01 Thread Leo Donahue - PLANDEVX
>-Original Message- >From: Pid * [mailto:p...@pidster.com] >Subject: Re: Filter questions > >On 1 Dec 2010, at 14:35, Leo Donahue - PLANDEVX > wrote: > >> Servlet Spec 2.5 >> SRV.6.2.1 >> >> "The container provides the filter config as >> declared in the filter's deployment descriptor, the

Re: New jsvc (commons-daemon-native); catalina.out is owned by root - WTF?

2010-12-01 Thread André Warnier
Gregor Schneider wrote: Hi André, long time no see ;) On Wed, Dec 1, 2010 at 12:20 PM, André Warnier wrote: As far as I know, these startup scripts are created by the packagers of Debian, RedHat etc.. when they wrap Tomcat in a platform-specific package. /They/ are the ones who decide how the

Re: Filter questions

2010-12-01 Thread Pid *
On 1 Dec 2010, at 14:35, Leo Donahue - PLANDEVX wrote: > Servlet Spec 2.5 > SRV.6.2.1 > > "The container provides the filter config as > declared in the filter's deployment descriptor, the reference to the > ServletContext > for the Web application, and the set of initialization parameters.' > >

Re: New jsvc (commons-daemon-native); catalina.out is owned by root - WTF?

2010-12-01 Thread Gregor Schneider
Hi André, long time no see ;) On Wed, Dec 1, 2010 at 12:20 PM, André Warnier wrote: > > As far as I know, these startup scripts are created by the packagers of > Debian, RedHat etc.. when they wrap Tomcat in a platform-specific package. > /They/ are the ones who decide how they call up jsvc, whe

[ANN] Apache Tomcat 7.0.5 beta released

2010-12-01 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache Tomcat 7.0.5 beta. Apache Tomcat 7.0.5 beta contains performance improvements in session management, a number of new features including support for parallel deployment of multiple versions of the same web application and a redes

Re: Filter questions

2010-12-01 Thread Martin Kuen
Hi Leo, you can use the terms "servletcontext" and "webapplication" interchangeably. http://tomcat.apache.org/tomcat-6.0-doc/introduction.html See Terminology Best Regards, Martin On Wed, Dec 1, 2010 at 3:34 PM, Leo Donahue - PLANDEVX < leodona...@mail.maricopa.gov> wrote: > Servlet Spec 2.5

Re: Filter questions

2010-12-01 Thread Mark Thomas
On 01/12/2010 14:34, Leo Donahue - PLANDEVX wrote: > Servlet Spec 2.5 > SRV.6.2.1 > > "The container provides the filter config as > declared in the filter's deployment descriptor, the reference to the > ServletContext > for the Web application, and the set of initialization parameters.' > > 1.

Filter questions

2010-12-01 Thread Leo Donahue - PLANDEVX
Servlet Spec 2.5 SRV.6.2.1 "The container provides the filter config as declared in the filter's deployment descriptor, the reference to the ServletContext for the Web application, and the set of initialization parameters.' 1. How does Tomcat get a reference to a ServletContext before any s

Re: Problems running tomcat 6.0.24 on ubuntu server 10.4

2010-12-01 Thread Christian Röttger
Am 30.11.2010 17:11, schrieb André Warnier: Christian Röttger wrote: hello, i installed tomcat 6.0.24 from the repositorys on ubuntu server 10.04 with this installation guide: https://help.ubuntu.com/10.04/serverguide/C/tomcat.html i can access the index.html on myserver:8080 and can run the e

automatic deployment without server.xml - bad request

2010-12-01 Thread Justin Case
Hello all, I'm on Tomcat 6.0.29 in Windows (XP or server 2003, same) and I'm trying to get an application to deploy automatically without putting it in server.xml - as the documentation strongly recommends. Just to note, if I put the context setting in server.xml like this all works fine.

RE: Fwd: Tomcat 7: Compatibility problems

2010-12-01 Thread Caldarale, Charles R
> From: Jonatan Aguirre Kobayashi [mailto:jona.agui...@gmail.com] > Subject: Re: Fwd: Tomcat 7: Compatibility problems > Can i implement the Servlet Invoker using annotations? No. Don't even think about using such in insane mechanism. http://wiki.apache.org/tomcat/FAQ/Miscellaneous#Q2 - Chuc

Re: Fwd: Tomcat 7: Compatibility problems

2010-12-01 Thread Jonatan Aguirre Kobayashi
Ok. Can i implement the Servlet Invoker using annotations? 2010/12/1 Mark Thomas > On 01/12/2010 13:12, Jonatan Aguirre Kobayashi wrote: > > Hello, i have a problem with Tomcat 7.0, in olders versions i used the > > Invoker Servlet to testing my applications, but now in version 7.0 i have > a >

Re: Fwd: Tomcat 7: Compatibility problems

2010-12-01 Thread Mark Thomas
On 01/12/2010 13:12, Jonatan Aguirre Kobayashi wrote: > Hello, i have a problem with Tomcat 7.0, in olders versions i used the > Invoker Servlet to testing my applications, but now in version 7.0 i have a > error because class *Servlet invoker *dont exists. > There is a solution for this problem?

Fwd: Tomcat 7: Compatibility problems

2010-12-01 Thread Jonatan Aguirre Kobayashi
Hello, i have a problem with Tomcat 7.0, in olders versions i used the Invoker Servlet to testing my applications, but now in version 7.0 i have a error because class *Servlet invoker *dont exists. There is a solution for this problem? Thanks.

Re: Tomact does not see log4j-6.0.26.jar while it is there

2010-12-01 Thread marlon
Christopher Schultz christopherschultz.net> writes: > 1. Pointing the wrong way > 2. Broken (missing ".jar" at the end) > > -chris > I had exactly the same problem when I use the command" yum install tomcat6* to install tomcat from fedora 13. should i simply unlink that link? -

Re: New jsvc (commons-daemon-native); catalina.out is owned by root - WTF?

2010-12-01 Thread André Warnier
Gregor, (by the way, hi!) But what's really puzzling me - and for which I don't have any explanation - is, that with the old version of jsvc, catalina.out had ${TOMCAT_USER}-ownership (mind you: in the startup-script there's a "su ${TOMCAT-USER} before starting jsvc), and to me it seems that thi

Re: New jsvc (commons-daemon-native); catalina.out is owned by root - WTF?

2010-12-01 Thread Gregor Schneider
Christopher, On Tue, Nov 30, 2010 at 10:33 PM, Christopher Schultz wrote: > > Apache httpd acts this way: > Sure, since Apache is usually started within root-context ("sbin") - so that does make sense. When talking about servers, I'm not talking about a webserver but a server such as Debian, Red

Re: New jsvc (commons-daemon-native); catalina.out is owned by root - WTF?

2010-12-01 Thread Gregor Schneider
Konstantin, On Tue, Nov 30, 2010 at 9:42 PM, Konstantin Kolinko wrote: > > The above one is tomcat-native, aka Tomcat-Apr, > a library that provides code for Http11AprProtocol and AjpAprProtocol > connectors. > > This one is commons-daemon, which gives you jsvc. > > http://commons.apache.org/daem

Re: 回复: How to run tomcat 5.5.9 as a service in 64-bit OS?

2010-12-01 Thread André Warnier
shunhao chen wrote: Hi Mark, Many thanks for your reply. Upgrading seems is a good choice, but my app was running since 2005, it is stable and I have not plan to upgrade tomcat. As we known, we usually use the tomcat.exe to install tomcat service as a window service.So, if I choose to upgr

回复: How to run tomcat 5.5.9 as a servic e in 64-bit OS?

2010-12-01 Thread shunhao chen
Hi Andre,     Thanks very much. I will try the x64 bug fix in tomcat 5.5.9 first and I will consider seriously about the upgrade. 发件人: André Warnier 收件人: Tomcat Users List 发送日期: 2010/12/1 (周三) 6:01:16 下午 主 题: Re: How to run tomcat 5.5.9 as a service in 64-bit

回复: How to run tomcat 5.5.9 as a servic e in 64-bit OS?

2010-12-01 Thread shunhao chen
Hi Mark,     Many thanks for your reply. Upgrading seems is a good choice, but my app was running since 2005, it is stable and I have not plan to upgrade tomcat. As we known, we usually use the tomcat.exe to install tomcat service as a window service.So, if I choose to upgrade the service wrapp

Re: How to run tomcat 5.5.9 as a service in 64-bit OS?

2010-12-01 Thread André Warnier
Mark Thomas wrote: On 01/12/2010 08:40, shunhao chen wrote: Hi all, I have a web app using tomcat 5.5.9 as app server. All works well in 32-bit OS. But now I have to support this app running on 64-bit OS. So I change the JDK to use a 64-bit version(jdk1.5.0_22). All works well, but when I

Re: How to run tomcat 5.5.9 as a service in 64-bit OS?

2010-12-01 Thread Mark Thomas
On 01/12/2010 08:40, shunhao chen wrote: > Hi all, > I have a web app using tomcat 5.5.9 as app server. All works well in > 32-bit > OS. But now I have to support this app running on 64-bit OS. So I change the > JDK > to use a 64-bit version(jdk1.5.0_22). All works well, but when I run tomc

How to run tomcat 5.5.9 as a service in 64-bit OS?

2010-12-01 Thread shunhao chen
Hi all, I have a web app using tomcat 5.5.9 as app server. All works well in 32-bit OS. But now I have to support this app running on 64-bit OS. So I change the JDK to use a 64-bit version(jdk1.5.0_22). All works well, but when I run tomcat as a service, it fails.     Can anybody help?