Re: Terminating Timer Thread Gracefully

2011-07-12 Thread Pid
On 12/07/2011 02:06, Terence M. Bandoian wrote: Hi- I've been testing a web application on: Tomcat 6.0.32 (32-bit) Sun/Oracle JRE 1.6.0_25 (32-bit) Windows Server 2008 R2 The web application includes a ServletContextListener which creates a Timer in the contextInitialized method to

Re: Terminating Timer Thread Gracefully

2011-07-12 Thread David kerber
On 7/12/2011 4:11 AM, Pid wrote: On 12/07/2011 02:06, Terence M. Bandoian wrote: Hi- I've been testing a web application on: Tomcat 6.0.32 (32-bit) Sun/Oracle JRE 1.6.0_25 (32-bit) Windows Server 2008 R2 The web application includes a ServletContextListener which creates a Timer in the

RE: Terminating Timer Thread Gracefully

2011-07-12 Thread Caldarale, Charles R
From: Terence M. Bandoian [mailto:tere...@tmbsw.com] Subject: Terminating Timer Thread Gracefully Finally, in contextDestroyed, I inserted a call to Thread.sleep after canceling the timer and the error message disappeared. You should be able to do a Thread.join() using the timer's Thread

Catch-all host

2011-07-12 Thread Calum
Hello all, I think I remember seeing something related to this on the list recently, but I just wanted to ask explicitly: Can you set up a catch-all host in Tomcat? Host name=* appBase=... / If not, could it be made possible, or is there any workaround possible? I'm thinking that an Apache

RE: Catch-all host

2011-07-12 Thread Caldarale, Charles R
From: Calum [mailto:cal...@gmail.com] Subject: Catch-all host I think I remember seeing something related to this on the list recently, but I just wanted to ask explicitly: Can you set up a catch-all host in Tomcat? The defaultHost set in Engine is automatically and always the catch-all -

Directory listing

2011-07-12 Thread David kerber
You know how IIS and httpd can be configured to let you simply get a directory listing in your browser? Can that be done simply with TC (any version), or do I need to fake it with a java.io.File object and create the listing display in code? D

Tomcat Pool and XA datasource

2011-07-12 Thread Siemback, Chris
Hello all, Has anyone ever been able to successfully setup an Oracle XA datasource using the newer Tomcat Pool and running Tomcat 7? It appears the Tomcat Pool is attempting to cast the oracle XA data source to a java.sql.Driver - which it isn't. This needs to be an XA datasource. Anyone

Re: Directory listing

2011-07-12 Thread Jesse Farinacci
Greetings, On Tue, Jul 12, 2011 at 8:27 AM, David kerber dcker...@verizon.net wrote: You know how IIS and httpd can be configured to let you simply get a directory listing in your browser?  Can that be done simply with TC (any version), or do I need to fake it with a java.io.File object and

RE: Directory listing

2011-07-12 Thread Caldarale, Charles R
From: David kerber [mailto:dcker...@verizon.net] Subject: Directory listing Can that be done simply with TC (any version), or do I need to fake it with a java.io.File object and create the listing display in code? Look at the listings element for the DefaultServlet config in

Re: Terminating Timer Thread Gracefully

2011-07-12 Thread Kris Schneider
On Tue, Jul 12, 2011 at 7:59 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Terence M. Bandoian [mailto:tere...@tmbsw.com] Subject: Terminating Timer Thread Gracefully Finally, in contextDestroyed, I inserted a call to Thread.sleep after canceling the timer and the error

Re: Terminating Timer Thread Gracefully

2011-07-12 Thread David kerber
On 7/12/2011 9:59 AM, Kris Schneider wrote: On Tue, Jul 12, 2011 at 7:59 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Terence M. Bandoian [mailto:tere...@tmbsw.com] Subject: Terminating Timer Thread Gracefully Finally, in contextDestroyed, I inserted a call to

Tomcat JDBC Pool StackOverflow exception when running Spring Standalone

2011-07-12 Thread javaguy44
Hi, I'm currently evaluating Tomcat JDBC Pool after reading all the good things Filip Hanik had to say about it! I was expecting it to be a drop in replacement for commons dbcp but after spending over a half day on this now I'm getting frustrated and am not closer to a solution. Using a

tc 7 out-of-box won't run localhost issue on 8005 a vulnerability?

2011-07-12 Thread David Brown
Hello, I have found a situation that kills tc on startup within about 3 seconds on a 64-bit cloud running Ubuntu server. localhost resolves correctly via dig but if we ping localhost it resolves to localhost.com. this in my estimation is causing tc to bail. the tc 7 installed is 64 with a

Re: tc 7 out-of-box won't run localhost issue on 8005 a vulnerability?

2011-07-12 Thread Mark Thomas
On 12/07/2011 16:15, David Brown wrote: Hello, I have found a situation that kills tc on startup within about 3 seconds on a 64-bit cloud running Ubuntu server. localhost resolves correctly via dig but if we ping localhost it resolves to localhost.com. this in my estimation is causing tc to

Re: tc 7 out-of-box won't run localhost issue on 8005 a vulnerability?

2011-07-12 Thread André Warnier
David Brown wrote: Hello, I have found a situation that kills tc on startup within about 3 seconds on a 64-bit cloud running Ubuntu server. localhost resolves correctly via dig but if we ping localhost it resolves to localhost.com. Sorry, but this sounds like hogwash to me. Where do you do the

Re: Terminating Timer Thread Gracefully

2011-07-12 Thread Kris Schneider
On Tue, Jul 12, 2011 at 10:03 AM, David kerber dcker...@verizon.net wrote: On 7/12/2011 9:59 AM, Kris Schneider wrote: On Tue, Jul 12, 2011 at 7:59 AM, Caldarale, Charles R chuck.caldar...@unisys.com  wrote: From: Terence M. Bandoian [mailto:tere...@tmbsw.com] Subject: Terminating Timer

Re: Terminating Timer Thread Gracefully

2011-07-12 Thread Len Popp
On Tue, Jul 12, 2011 at 10:03, David kerber dcker...@verizon.net wrote: On 7/12/2011 9:59 AM, Kris Schneider wrote: On Tue, Jul 12, 2011 at 7:59 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Terence M. Bandoian [mailto:tere...@tmbsw.com] Subject: Terminating Timer

Re: tc 7 out-of-box won't run localhost issue on 8005 a vulnerability?

2011-07-12 Thread Mark Eggers
From: André Warnier David Brown wrote: Hello, I have found a situation that kills tc on startup within about 3 seconds on a 64-bit cloud running Ubuntu server. localhost resolves correctly via dig but if we ping localhost it resolves to localhost.com. Sorry, but this sounds like

Binary of mod_jk.so for Apache 2.2.x

2011-07-12 Thread Leffingwell, Jonathan R CTR FRCSE, JAX 7.2.2
I don't know the first thing about compiling on Linux. I just want to drop a compiled mod_jk.so into the modules directory. Where can I find the binary, not the source? Thanks! smime.p7s Description: S/MIME cryptographic signature

Tomcat 7 and Jakarta Mailer Taglib

2011-07-12 Thread mraible
Hello, I'm experiencing a strange issue trying to upgrade to Tomcat 7 on raibledesigns.com (Linux 2.4.37.9). When I hit my contact page and try to send a message, I get the following stack trace: SEVERE: Servlet.service() for servlet [jsp] in context with path [] threw exception [The absolute

RE: tc 7 out-of-box won't run localhost issue on 8005 a vulnerability?

2011-07-12 Thread Bill Miller
Have a good look at the /etc/hosts.conf file, it needs to contain something like order hosts, bind (AIX=netsvc.conf). If that is misconfigured then you will have exactly the problems you're describing. I found this exact behaviour on an AIX system that was misconfigured. Keep working on the

Re: Binary of mod_jk.so for Apache 2.2.x

2011-07-12 Thread André Warnier
Leffingwell, Jonathan R CTR FRCSE, JAX 7.2.2 wrote: I don't know the first thing about compiling on Linux. I just want to drop a compiled mod_jk.so into the modules directory. Where can I find the binary, not the source? Thanks! What kind of Linux ? explanation: most Linux distributions

RE: JNA class path with tomcat

2011-07-12 Thread Bill Miller
The problem is undoubtedly your .dll or .so is not in the correct directory. Normally you need to place those files in /tomcat but that assumes that /tomcat is your current directory when you startup. Essentially you need to ensure that you are starting tomcat from the base directory that also

Re: tc 7 out-of-box won't run localhost issue on 8005 a vulnerability?

2011-07-12 Thread André Warnier
Bill Miller wrote: Have a good look at the /etc/hosts.conf file, it needs to contain something like order hosts, bind (AIX=netsvc.conf). If that is misconfigured then you will have exactly the problems you're describing. I found this exact behaviour on an AIX system that was misconfigured.

Terminating Timer Thread Gracefully

2011-07-12 Thread Terence M. Bandoian
Thanks to all who replied. Functionally, the servlet context listener is implemented as follows: public class AServletContextListener implements ServletContextListener { private Timer timer; private ATimerTask timerTask; public AServletContextListener() { } public

Re: JNA class path with tomcat

2011-07-12 Thread André Warnier
Bill Miller wrote: The problem is undoubtedly your .dll or .so is not in the correct directory. That's probably true. Normally you need to place those files in /tomcat but that assumes that /tomcat is your current directory when you startup. Essentially you need to ensure that you are

RE: Binary of mod_jk.so for Apache 2.2.x

2011-07-12 Thread Leffingwell, Jonathan R CTR FRCSE, JAX 7.2.2
Thanks for the reply, André. It is Red Hat Linux. -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Tuesday, July 12, 2011 2:12 PM To: Tomcat Users List Subject: Re: Binary of mod_jk.so for Apache 2.2.x Leffingwell, Jonathan R CTR FRCSE, JAX 7.2.2 wrote: I don't

RE: AJP-APR failures on Tomcat 7.0.16 with ISAPI Redirector 1.2.32

2011-07-12 Thread eurotrans-Verlag
However, when I switch to AJP BIO, it seems that the errors go away. Although I now switched to AJP-BIO (by deleting/renaming tcnative-1.dll), today morning I got an error again in the ISAPI log: [Tue Jul 12 06:04:49.812 2011] [4124:2444] [error]

Re: AJP-APR failures on Tomcat 7.0.16 with ISAPI Redirector 1.2.32

2011-07-12 Thread André Warnier
eurotrans-Verlag wrote: However, when I switch to AJP BIO, it seems that the errors go away. Although I now switched to AJP-BIO (by deleting/renaming tcnative-1.dll), today morning I got an error again in the ISAPI log: [Tue Jul 12 06:04:49.812 2011] [4124:2444] [error]

Re: Tomcat 7 and Jakarta Mailer Taglib

2011-07-12 Thread Konstantin Kolinko
2011/7/12 mraible m...@raibledesigns.com: I'm experiencing a strange issue trying to upgrade to Tomcat 7 on raibledesigns.com (Linux 2.4.37.9). When I hit my contact page and try to send a message, I get the following stack trace: SEVERE: Servlet.service() for servlet [jsp] in context with

Re: Terminating Timer Thread Gracefully

2011-07-12 Thread Terence M. Bandoian
Hi, Kris- I tried using ScheduledExecutorService but ran into the same problem. After awaiting termination: executorService.shutdown(); try { while ( !executorService.awaitTermination( 1, TimeUnit.SECONDS ) );

Re: Tomcat 7 and Jakarta Mailer Taglib

2011-07-12 Thread mraible
Konstantin Kolinko wrote: 2011/7/12 mraible m...@raibledesigns.com: I'm experiencing a strange issue trying to upgrade to Tomcat 7 on raibledesigns.com (Linux 2.4.37.9). When I hit my contact page and try to send a message, I get the following stack trace: SEVERE: Servlet.service() for

Re: tc 7 out-of-box won't run localhost issue on 8005 a vulnerability?

2011-07-12 Thread David Brown
OK, here is the hogwash. I have already been round-and-round with the cloud admin guys with all of their requests for: netstat, lsof, ifconfig on-and-on. Anyway you slice it some random network config whether correct or not should not be shutting down a server upon boot. Especially, where there is

Re: tc 7 out-of-box won't run localhost issue on 8005 a vulnerability?

2011-07-12 Thread Mark Thomas
On 12/07/2011 21:08, David Brown wrote: OK, here is the hogwash. I have already been round-and-round with the cloud admin guys with all of their requests for: netstat, lsof, ifconfig on-and-on. Anyway you slice it some random network config whether correct or not should not be shutting down a

Re: Tomcat 7 and Jakarta Mailer Taglib

2011-07-12 Thread Konstantin Kolinko
2011/7/12 mraible m...@raibledesigns.com: I haven't changed a thing in my application, yet it runs fine on Tomcat 6 (or when using Tomcat 7 on OS X instead of Linux). Seems strange, right? Not at all. Either you had that library elsewhere (e.g. in lib), or you relied on some behaviour that

Re: tc 7 out-of-box won't run localhost issue on 8005 a vulnerability?

2011-07-12 Thread Rainer Jung
On 12.07.2011 22:08, David Brown wrote: david@dobbeltganger:~$ ping -c 3 localhost PING localhost.com (64.99.64.32) 56(84) bytes of data. 64 bytes from 64.99.64.32: icmp_seq=1 ttl=246 time=16.9 ms 64 bytes from 64.99.64.32: icmp_seq=2 ttl=246 time=17.0 ms 64 bytes from 64.99.64.32:

Re: tc 7 out-of-box won't run localhost issue on 8005 a vulnerability?

2011-07-12 Thread David Brown
Hello Ranier,thanks for this. something installed changed the hosts value in nsswitch.conf. TC cranked rite up. should be some better way of avoiding this type very infrequent hole to step in. Anyway, thanks again. :-D On Tue, 2011-07-12 at 22:59 +0200, Rainer Jung wrote: On 12.07.2011 22:08,

RE: Terminating Timer Thread Gracefully

2011-07-12 Thread Bill Miller
The problem is obviously that the thread within the Timer needs time to properly shutdown, the non-obvious part is how long does it need, and how do you detect it's done?. Normally you would do a Thread.join() to ensure a thread has stopped before continuing, but as you mentioned before you

New TC 7 tomcat-users.xml can't login (401)

2011-07-12 Thread David Brown
Hi, I have a new TC 7 running. I have RTFM on the new changes for the User realm using the new roles: manager-gui and admin-gui but all I get is 401. server.xml seems to default to usage of the tomcat-users.xml. Any ideas of how to diagnose are welcomed.

RE: JNA class path with tomcat

2011-07-12 Thread Bill Miller
That is true, but assuming things for library loading will eventually bite you ... big time. FYI: In Windows there is a patch available that can damage this path searching defaults and assumptions always bite you. It is always best to specifically set these variables (JVM search paths etc...)

Re: New TC 7 tomcat-users.xml can't login (401)

2011-07-12 Thread chris derham
On Tue, Jul 12, 2011 at 6:57 PM, David Brown da...@davidwbrown.name wrote: Hi, I have a new TC 7 running. I have RTFM on the new changes for the User realm using the new roles: manager-gui and admin-gui but all I get is 401. server.xml seems to default to usage of the tomcat-users.xml. Any

RE: Set Java VM arguments programmatically in Tomcat

2011-07-12 Thread Bill Miller
I'd like to add a little bit specifically around setting the parameters for a Windows service. It can be done, but as Chris pointed out, it's not easy. There are at least 2 ways I can think of off the top of my head to change the Windows service properties: 1. Write JNI code to call the

Re: JNA class path with tomcat

2011-07-12 Thread André Warnier
Bill Miller wrote: That is true, but assuming things for library loading will eventually bite you ... big time. I did not think that I was /assuming/ anything. The link provided below explains exactly where Tomcat is looking for classes and libraries, and . is not part of that (usually).

RE: AJP-APR failures on Tomcat 7.0.16 with ISAPI Redirector 1.2.32

2011-07-12 Thread eurotrans-Verlag
Hi André, -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Tuesday, July 12, 2011 9:25 PM Can you take a part of this setup out of the equation ? For example, at the moment you have browser - IIS - isapi_redir. - AJP Connector:8019 - Tomcat+webapp

Re: Binary of mod_jk.so for Apache 2.2.x

2011-07-12 Thread Leon Kolchinsky
For God's sake, Go to http://tomcat.apache.org/download-connectors.cgi and download the source code: # tar -xvzf tomcat-connectors-1.2.30-src.tar.gz Read docs/webserver_howto/apache.html or native/BUILDING.txt for options. # cd tomcat-connectors-1.2.30-src/native/ # which apxs # ./configure