Re: Enable Security Manager in Tomcat 5

2011-05-11 Thread Conway Liu
After a days google, trial and error, I finally realised that the person who migrated the website from linux to Windows did not change the paths in catalina.policy. I got a fresh copy of catalina.policy from Tomcat 5 installation and re-add my bits of security settings and it is working now. C

Enable Security Manager in Tomcat 5

2011-05-11 Thread Conway Liu
Good day! For testing purposes I have setup a website to run in Tomcat 5, Tomcat 6, and Tomcat 7. The site runs on Windows Server 2008 R2, and I used the service.bat to install the windows service so that I can start and stop the site. When it came to enable the security manager, I read from t

Re: Cannot find daemon loader org/apache/commons/daemon/support/DaemonLoader

2011-05-11 Thread Jim Seymour
On Thu, 12 May 2011 01:16:43 +0400 Konstantin Kolinko wrote: > 1) jsvc is not developed within Apache Tomcat project but within the > Apache Commons - it belongs to Apache Commons Daemon, -- your > question belongs there > http://commons.apache.org/daemon/ Thanks! I'll subscribe there and re-po

RE: How to close all connections in a Tomcat container db connection pool?

2011-05-11 Thread Dale Ogilvie
Thanks Chris. Not as simple as I'd hoped, about as complicated as I expected :-) -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Thursday, 12 May 2011 1:56 a.m. To: Tomcat Users List Subject: Re: How to close all connections in a Tomcat container

Re: Cannot find daemon loader org/apache/commons/daemon/support/DaemonLoader

2011-05-11 Thread Konstantin Kolinko
1) jsvc is not developed within Apache Tomcat project but within the Apache Commons - it belongs to Apache Commons Daemon, -- your question belongs there http://commons.apache.org/daemon/ 2) This appears to be specific to Solaris - this issue in relation with Solaris was asked several times here a

Re: storing images

2011-05-11 Thread alexis
Sorry guys ive been not so clear. here's the deal , ill explain the whole process trying to resume so nobody gets bored reading :) final images are 400x300px (sometimes png, sometimes jpg) containing pie charts, bar charts, etc. The webapp is constantly connected getting information from a pbx

Re: Jboss AS6 + log4j

2011-05-11 Thread Harlei Liguori Marcelino
So sorry... i was thinking about a portuguese list... shame on me... sorry list!!! i will read the e-mail bellow and tell about it in few minutes... Em 11 de maio de 2011 17:39, chris derham escreveu: > > > > > > é a primeira vez que preciso configurar o log4j e estou completamente > > perdi

Re: Jboss AS6 + log4j

2011-05-11 Thread chris derham
> > > é a primeira vez que preciso configurar o log4j e estou completamente > perdido... > > a versão do jboss utilizada aqui é a AS6 e para piorar minha vida quase > tudo > que eu encontro na net é da versão antiga, onde o arquivo de configuração é > diferente, assim como toda a configuração inter

Re: Cannot find daemon loader org/apache/commons/daemon/support/DaemonLoader

2011-05-11 Thread James Seymour
On Tue, 10 May 2011 16:27:54 -0400 James Seymour wrote: > Following-up to myself... [snip] 24 hours and no takers. Can I safely assume, from that, that I best find another solution? Regards, Jim -- Note: My mail server employs *very* aggressive anti-spam filtering. If you reply to this email

Jboss AS6 + log4j

2011-05-11 Thread Harlei Liguori Marcelino
Olá amigos, é a primeira vez que preciso configurar o log4j e estou completamente perdido... a versão do jboss utilizada aqui é a AS6 e para piorar minha vida quase tudo que eu encontro na net é da versão antiga, onde o arquivo de configuração é diferente, assim como toda a configuração interna,

RE: tomcat 7: common.loader property in catalina.properties does not take ANT style variable

2011-05-11 Thread Yongqin Xu
Assume you have TC7 installed and configured.1. put a any jar to your separate local path, such as /home/foo/lib/food.jar2. edit $CATALINA_HOME/conf/catalina.properties to apend "${foo.bar}/lib/food.jar" to common.loader property3, setenv JAVA_OPTS -Dfoo.bar=/home/foo4. start TC7, then stop TC

Re: High Availability in Tomcat?

2011-05-11 Thread הילה
I'll try.. thanks :] 2011/5/11 Christopher Schultz > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > הילה, > > On 5/11/2011 3:10 PM, הילה wrote: > > I've read this presentation, but I'm a system engineer, not an > application > > programmer.. so it didn't help me much. i'm trying to help th

RE: tomcat 7: common.loader property in catalina.properties does not take ANT style variable

2011-05-11 Thread Yongqin Xu
I would love to see that happen. thanks. > Date: Wed, 11 May 2011 10:01:48 -0400 > From: ch...@christopherschultz.net > To: users@tomcat.apache.org > Subject: Re: tomcat 7: common.loader property in catalina.properties does not > take ANT style variable > > -BEGIN PGP SIGNED MESSAGE- >

Re: Two Tomcat 7.0 in the same Windows server 2008 instance, both appearing as port 80 for the clients?

2011-05-11 Thread Jeff Beard
Hi, I use Apache httpd in front of Tomcat to do this type of thing on both *nix and Windows. I can configure Apache virtual hosts that map to Tomcat virtual hosts, forward requests to different instances on different ports or whatever request redirection that is needed. I also use it to handle loa

Re: High Availability in Tomcat?

2011-05-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 הילה, On 5/11/2011 3:10 PM, הילה wrote: > I've read this presentation, but I'm a system engineer, not an application > programmer.. so it didn't help me much. i'm trying to help the application > guys out, which for now doesn't think it's a leak from

Re: High Availability in Tomcat?

2011-05-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, On 5/11/2011 2:24 PM, Brian Braun wrote: > First, I will implement the parallel deployment, so my redeployments wont > cause unavailability. Then, with a little bit of time and as soon as I have > two separate Tomcats and a load balancer, I wil

Re: High Availability in Tomcat?

2011-05-11 Thread הילה
I've read this presentation, but I'm a system engineer, not an application programmer.. so it didn't help me much. i'm trying to help the application guys out, which for now doesn't think it's a leak from the application.. so.. could you please explain how can it be checked?.. Thanks Hila 2011/5

Re: Two Tomcat 7.0 in the same Windows server 2008 instance, both appearing as port 80 for the clients?

2011-05-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Brian, On 5/11/2011 2:35 PM, Brian Braun wrote: > In Linux I have have more than one instance of Tomcat in the same Linux > instance. It is as easy as installing each Tomcat with a different port > (lets say, 8081 and 8082), and using IPTables NAT (an

Re: storing images

2011-05-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexis, On 5/6/2011 12:37 PM, alexis wrote: > small images (never more than 35kB) in a LAN. :) Martin's comment was, as usual, off-topic and hot terribly helpful. Martin, use of the JAI doesn't have anything to do with bandwidth unless you think tha

Re: storing images

2011-05-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexis, On 5/6/2011 10:52 AM, alexis wrote: > I understand, but i have top 12 images of 35kbytes, no more. Fair enough. > Encoding load is an issue yes, but the images are reflecting > callcenters call queues and some stuff related so the need to re

Re: Two Tomcat 7.0 in the same Windows server 2008 instance, both appearing as port 80 for the clients?

2011-05-11 Thread Mladen Turk
On 05/11/2011 08:35 PM, Brian Braun wrote: IPTables NAT Check the http://www.quantumg.net/portforward.php It's a single .cpp file if you don't need gui. There is also more advanced (ipfilter like util) http://www.hsc.fr/ressources/outils/pktfilter/ Think that you can even use PuTTY for that.

Two Tomcat 7.0 in the same Windows server 2008 instance, both appearing as port 80 for the clients?

2011-05-11 Thread Brian Braun
Hi, In Linux I have have more than one instance of Tomcat in the same Linux instance. It is as easy as installing each Tomcat with a different port (lets say, 8081 and 8082), and using IPTables NAT (and Tomcat host virtualization) to redirect some domains to some hosts inside a certain Tomcat, and

Re: High Availability in Tomcat?

2011-05-11 Thread Brian Braun
Hi Chris, I agree with you. First, I will implement the parallel deployment, so my redeployments wont cause unavailability. Then, with a little bit of time and as soon as I have two separate Tomcats and a load balancer, I will forget about the parallel deployment because, as you said, the other so

Re: What the packages needed to install tomcat5 core using yum in Fedora 14

2011-05-11 Thread Mark Eggers
> From: Christopher Schultz > To: Tomcat Users List > Cc: > Sent: Wednesday, May 11, 2011 7:06 AM > Subject: Re: What the packages needed to install tomcat5 core using yum in > Fedora 14 > > Varuna, > > On 5/9/2011 9:48 PM, Varuna Seneviratna wrote: >> What the packages needed to install tom

Re: Tomcat6

2011-05-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Micka, On 5/8/2011 2:44 PM, Micka wrote: > System.out.println("test 1"); > *Connection dconn = ((DelegatingConnection) conn).getInnermostDelegate();* > *<== HERE* > System.out.println("test 2"); > > ((org.postgresql.PGConnection)dconn).addDataType("

Re: Suggestions for really getting to the bottom of memory leak issues on hot-deploys

2011-05-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gary, On 5/10/2011 4:33 PM, Gary Weaver wrote: > Chris, > > On Tue, May 10, 2011 at 4:06 PM, Christopher Schultz < > ch...@christopherschultz.net> wrote: > >> >> http://people.apache.org/~markt/presentations/2010-11-04-Memory-Leaks-60mins.pdf > > Than

Re: What the packages needed to install tomcat5 core using yum in Fedora 14

2011-05-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Varuna, On 5/9/2011 9:48 PM, Varuna Seneviratna wrote: > What the packages needed to install tomcat5 core using yum Isn't the point of a package manager to indicate and resolve dependencies? Can't 'yum' tell you what Fedora packages are required? If

Re: tomcat 7: common.loader property in catalina.properties does not take ANT style variable

2011-05-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Konstantin, On 5/10/2011 4:50 PM, Konstantin Kolinko wrote: > 2011/5/11 Christopher Schultz : >> On 5/10/2011 3:05 AM, Konstantin Kolinko wrote: >>> IIRC, catalina.properties file does not support substitution for >>> anything, besides those two speci

Re: Override Driver Manager (DB Connections) through tomcat servers

2011-05-11 Thread Joji V J
Thank you Christopher, I'll put it up, verify and let you know on the same!! Once again Thanks! On Wed, May 11, 2011 at 7:07 PM, Christopher Schultz < ch...@christopherschultz.net> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Joji, > > On 5/11/2011 3:15 AM, Joji V J wrote: >

Re: High Availability in Tomcat?

2011-05-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 הילה, On 5/10/2011 4:45 PM, הילה wrote: > 2011/5/10 Christopher Schultz : >> >> "You should check to see if your webapp is leaky across webapp restarts >> (with Tomcat continuing to run) because you could bringing-down the JVM >> if your webapp does n

Re: How to close all connections in a Tomcat container db connection pool?

2011-05-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dale, On 5/10/2011 7:24 PM, Dale Ogilvie wrote: > The cause of the error was the db admin patching a db package underlying > one used by our web-app. Post patch all the packages appeared valid to > the admin, but not to our app using db connections es

Re: Semicolon URI encoding and RFC

2011-05-11 Thread Mindaugas Žakšauskas
Christopher Schultz> So, you want to /only/ escape those entities that are /absolutely Christopher Schultz> required/ to be escaped? Yes. Christopher Schultz> I'm not sure anyone really cares what URLs look like, do they? Konstantin Kolinko> readability? nobody reads the HTML source Search engin

Re: A question about thread dump!

2011-05-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 5/11/2011 3:11 AM, chateau Xiao wrote: > for the necessary of debug. I need the thread dump information like below to > show me the threads running status. > > [snip] > > I usually use kill -3 or jstack to satisify my requirement. when > things

Re: Override Driver Manager (DB Connections) through tomcat servers

2011-05-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Joji, On 5/11/2011 3:15 AM, Joji V J wrote: > Since few days I've noticed that some of the applications in the server > are using the device manager based database connections, causing too many > open connections with the database. Unfortunately I'm i

Re: Semicolon URI encoding and RFC

2011-05-11 Thread Konstantin Kolinko
2011/5/11 Mindaugas Žakšauskas : > On Tue, May 10, 2011 at 7:31 PM, Christopher Schultz > wrote: >> <..> >> What about http://site/test1%28test2/ >> >> Does that give you "/test1)test2/"? > > Closing bracket is %29 but yes, it does. > >> If so, Tomcat is probably following SOP with regard to stand

Re: Semicolon URI encoding and RFC

2011-05-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mindaugas, On 5/11/2011 9:16 AM, Mindaugas Žakšauskas wrote: > On Tue, May 10, 2011 at 7:31 PM, Christopher Schultz > wrote: >> <..> >> What about http://site/test1%28test2/ >> >> Does that give you "/test1)test2/"? > > Closing bracket is %29 but ye

Re: Suggestions for really getting to the bottom of memory leak issues on hot-deploys

2011-05-11 Thread Christopher Schultz
binLmaU7goP1J.bin Description: PGP/MIME version identification

Re: Semicolon URI encoding and RFC

2011-05-11 Thread Mindaugas Žakšauskas
On Tue, May 10, 2011 at 7:31 PM, Christopher Schultz wrote: > <..> > What about http://site/test1%28test2/ > > Does that give you "/test1)test2/"? Closing bracket is %29 but yes, it does. > If so, Tomcat is probably following SOP with regard to standards which > is to be conservative in what you

Re: Suggestions for really getting to the bottom of memory leak issues on hot-deploys

2011-05-11 Thread Pid
On 5/10/11 8:55 PM, Gary Weaver wrote: > Here's what I did and what little I came up with: > http://stufftohelpyouout.blogspot.com/2011/05/diagnosing-webappportlet-hot-deploy.html > > I'm definitely not an expert at diagnosing leaks, so if you have any > recommendations/comments, please let me kno

Re: SSL on Tomcat5

2011-05-11 Thread Lunita
Hi!! I've found the problem, the params SSLCertificateFile and SSLCertificateKeyFile were changed. Now I'm not having any error on startup. Thanx for all =) 2011/5/11 Goo Sam Kong > Hi, > > If you use APR, the private key & certificate should be in PEM format as > documented in http://tomcat.a

Re: SSL on Tomcat5

2011-05-11 Thread Goo Sam Kong
Hi, If you use APR, the private key & certificate should be in PEM format as documented in http://tomcat.apache.org/tomcat-5.5-doc/apr.html#HTTPS *SSLCertificateFile* Name of the file that contains the server certificate. The format is PEM-encoded. SSLCertificateKeyFile Name of the file that c

Re: SSL on Tomcat5

2011-05-11 Thread Lunita
Hi again, I followed many docs, the Tomcat's official web was not clear enough for me. With SSLEngine="on" I'm having this problem: SEVERE: Catalina.start LifecycleException: Protocol handler initialization failed: java.lang.Exception: Unable to load certificate key /opt/apache-tomcat-5.5.33/con

Override Driver Manager (DB Connections) through tomcat servers

2011-05-11 Thread Joji V J
Hello Friends, Since few days I've noticed that some of the applications in the server are using the device manager based database connections, causing too many open connections with the database. Unfortunately I'm in no position to instruct them to use the tomcat based datasource connections. S

A question about thread dump!

2011-05-11 Thread chateau Xiao
hi all: for the necessary of debug. I need the thread dump information like below to show me the threads running status. Full thread dump Java HotSpot(TM) 64-Bit Server VM (16.3-b01 mixed mode): "Attach Listener" daemon prio=10 tid=0x01f55000 nid=0x4726 runnable [0x] j