Re: How can I access tomcat's logs using my jsp?

2012-02-07 Thread André Warnier
For once, it may be best to top-post. Anyone feels like making a FAQ out of this thread ? It looks like a generic-enough question and answer. Lev A KARATUN wrote: Charles, I made the adjustments and it works now. Thank you! Best Regards, Karatun Lev, Caldarale, Charles R

Re: How can I access tomcat's logs using my jsp?

2012-02-07 Thread Pid
On 07/02/2012 09:07, André Warnier wrote: For once, it may be best to top-post. Anyone feels like making a FAQ out of this thread ? It looks like a generic-enough question and answer. I don't think I want to encourage publishing logs via the same container. I've seen all sorts of private

Re: How can I access tomcat's logs using my jsp?

2012-02-07 Thread André Warnier
Pid wrote: On 07/02/2012 09:07, André Warnier wrote: For once, it may be best to top-post. Anyone feels like making a FAQ out of this thread ? It looks like a generic-enough question and answer. I don't think I want to encourage publishing logs via the same container. I've seen all sorts of

Re: How can I access tomcat's logs using my jsp?

2012-02-07 Thread André Warnier
André Warnier wrote: Pid wrote: On 07/02/2012 09:07, André Warnier wrote: For once, it may be best to top-post. Anyone feels like making a FAQ out of this thread ? It looks like a generic-enough question and answer. I don't think I want to encourage publishing logs via the same container.

Re: Web app calls JMS over SSL - certificates

2012-02-07 Thread Peter Kleczka
I am using ActiveMQ and its activemq.xml file has a section where the keystore and truststore point to those files. So I assume that means that there is a way to set these at runtime. Still leaves me with the question of whether I can set these at runtime from my app on Tomcat. On Mon, Feb 6,

RE: Web app calls JMS over SSL - certificates

2012-02-07 Thread Caldarale, Charles R
From: Peter Kleczka [mailto:pklec...@gmail.com] Subject: Re: Web app calls JMS over SSL - certificates I am using ActiveMQ and its activemq.xml file has a section where the keystore and truststore point to those files. So I assume that means that there is a way to set these at runtime.

Running Tomcat on Port 80 with Fedora 16 without IP tables redirect

2012-02-07 Thread Ole Ersoy
Hi, In the past I have been able to run tomcat on port 80 under a tomcat user. It seems like the latest versions of Fedora require that tomcat either be run as root or requests to 8080 have to be redirected using iptables. Can anyone confirm this? TIA, - Ole

Re: Web app calls JMS over SSL - certificates

2012-02-07 Thread Peter Kleczka
Chuck Thanks, but my question really does have to do with Tomcat. The ActiveMQ is actually on another server and my application hosted on Tomcat needs to pull messages off of ActiveMQ over SSL. What I would like to do is tell my application where my keystore files are located rather than load

Re: Running Tomcat on Port 80 with Fedora 16 without IP tables redirect

2012-02-07 Thread André Warnier
Ole Ersoy wrote: Hi, In the past I have been able to run tomcat on port 80 under a tomcat user. It seems like the latest versions of Fedora require that tomcat either be run as root or requests to 8080 have to be redirected using iptables. Can anyone confirm this? What you probably mean

Re: Running Tomcat on Port 80 with Fedora 16 without IP tables redirect

2012-02-07 Thread John Renne
On Feb 7, 2012, at 6:14 PM, Ole Ersoy wrote: Hi, In the past I have been able to run tomcat on port 80 under a tomcat user. It seems like the latest versions of Fedora require that tomcat either be run as root or requests to 8080 have to be redirected using iptables. Can anyone

Re: Running Tomcat on Port 80 with Fedora 16 without IP tables redirect

2012-02-07 Thread Ole Ersoy
Thanks Andre and John. I used jsvc to run tomcat before. Maybe that's what got me around the root user restriction. Seems the simplest solution is to just use NAT. There are instructions at the bottom of this post for anyone else interested.

Re: Running Tomcat on Port 80 with Fedora 16 without IP tables redirect

2012-02-07 Thread Mark Eggers
- Original Message - From: Ole Ersoy ole.er...@gmail.com To: Tomcat Users List users@tomcat.apache.org Cc: Sent: Tuesday, February 7, 2012 10:06 AM Subject: Re: Running Tomcat on Port 80 with Fedora 16 without IP tables redirect T hanks Andre and John.  I used jsvc to run tomcat

Shutdown Hooks not firing when tomcat is shutdown from within a webapp

2012-02-07 Thread Andrew Kujtan
OS: Windows 7 32bit Ver.: Apache Tomcat/7.0.25 Jvm: 1.6.0_14-b08 I am attaching a shutdown hook from within my webapp to log some info after tomcat shuts down, Runtime.getRuntime().addShutdownHook(mythread, name + :shutdownHook)); When I run shutdown.bat from the bin folder the

RE: Shutdown Hooks not firing when tomcat is shutdown from within a webapp

2012-02-07 Thread Caldarale, Charles R
From: Andrew Kujtan [mailto:akuj...@evertz.com] Subject: Shutdown Hooks not firing when tomcat is shutdown from within a webapp OS: Windows 7 32bit Ver.: Apache Tomcat/7.0.25 Jvm: 1.6.0_14-b08 Thanks for that. I am attaching a shutdown hook from within my webapp to log some info

RE: Web app calls JMS over SSL - certificates

2012-02-07 Thread Caldarale, Charles R
From: Peter Kleczka [mailto:pklec...@gmail.com] Subject: Re: Web app calls JMS over SSL - certificates What I would like to do is tell my application where my keystore files are located rather than load them through the JVM. So what stops you from doing that? There are numerous ways to

RE: Shutdown Hooks not firing when tomcat is shutdown from within a webapp

2012-02-07 Thread Andrew Kujtan
-Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Tuesday, February 07, 2012 1:39 PM To: Tomcat Users List Subject: RE: Shutdown Hooks not firing when tomcat is shutdown from within a webapp From: Andrew Kujtan [mailto:akuj...@evertz.com]

Question regarding mappings for CVE-2005-4836

2012-02-07 Thread Christopher Restorff
Hello, I have a question regarding CVE-2005-4836: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2005-4836 The security bulletin, http://tomcat.apache.org/security-4.html, mentions that it will not be fixed in 4.x. However, there is no indication as to whether it affects 5.x or beyond. Is

Re: Question regarding mappings for CVE-2005-4836

2012-02-07 Thread Au, Leon
On 2/7/12 12:01 PM, Christopher Restorff christopher.resto...@criticalwatch.com wrote: Hello, I have a question regarding CVE-2005-4836: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2005-4836 The security bulletin, http://tomcat.apache.org/security-4.html, mentions that it will not be

Re: Shutdown Hooks not firing when tomcat is shutdown from within a webapp

2012-02-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, On 2/7/12 2:40 PM, Andrew Kujtan wrote: When I call System.exit() tomcat doesn't actually shutdown That's weird. it looks like it just is deadlocking or something as I am getting a timeout on the call that runs it. What does a thread

Re: Question regarding mappings for CVE-2005-4836

2012-02-07 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christopher, On 2/7/12 3:01 PM, Christopher Restorff wrote: I have a question regarding CVE-2005-4836: http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2005-4836 Wow. Blast from the past. The security bulletin,

Re: Running Tomcat on Port 80 with Fedora 16 without IP tables redirect

2012-02-07 Thread Mark H. Wood
On Tue, Feb 07, 2012 at 12:06:12PM -0600, Ole Ersoy wrote: Thanks Andre and John. I used jsvc to run tomcat before. Maybe that's what got me around the root user restriction. That is exactly what it is for, and I can't imagine why every distro doesn't use it instead of the arcane scripting

RE: Shutdown Hooks not firing when tomcat is shutdown from within a webapp

2012-02-07 Thread Andrew Kujtan
-Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Tuesday, February 07, 2012 3:09 PM To: Tomcat Users List Subject: Re: Shutdown Hooks not firing when tomcat is shutdown from within a webapp -BEGIN PGP SIGNED MESSAGE- Hash: SHA1

Re: Shutdown Hooks not firing when tomcat is shutdown from within a webapp

2012-02-07 Thread Chema
Asynchronous Notification 'interface com.evertz.registry.ServerRegistryListener: masterChanged' daemon prio=6 tid=0x28c77000 nid=0x16d8 in Object.wait() [0x2899f000]   java.lang.Thread.State: WAITING (on object monitor)        at java.lang.Object.wait(Native Method)        - waiting on

RE: Shutdown Hooks not firing when tomcat is shutdown from within a webapp

2012-02-07 Thread Andrew Kujtan
-Original Message- From: Chema [mailto:demablo...@gmail.com] Sent: Tuesday, February 07, 2012 4:51 PM To: Tomcat Users List Subject: Re: Shutdown Hooks not firing when tomcat is shutdown from within a webapp Asynchronous Notification 'interface

Re: Shutdown Hooks not firing when tomcat is shutdown from within a webapp

2012-02-07 Thread Chema
Can I see ApplicationShutdownHooks source code ? That is located in java.lang, you can see the source online... Sorry, I meant about *your* app's shutdown hook. What 's com.evertz.registry.ServerRegistryListener ? Right This is just the listener that triggers the shutdown call. That

RE: Shutdown Hooks not firing when tomcat is shutdown from within a webapp

2012-02-07 Thread Andrew Kujtan
-Original Message- From: Chema [mailto:demablo...@gmail.com] Sent: Tuesday, February 07, 2012 5:12 PM To: Tomcat Users List Subject: Re: Shutdown Hooks not firing when tomcat is shutdown from within a webapp Can I see ApplicationShutdownHooks source code ? That is located in

Re: Shutdown Hooks not firing when tomcat is shutdown from within a webapp

2012-02-07 Thread Konstantin Kolinko
2012/2/7 Andrew Kujtan akuj...@evertz.com: OS: Windows 7  32bit Ver.: Apache Tomcat/7.0.25 Jvm: 1.6.0_14-b08 I am attaching a shutdown hook from within my webapp to log some info after tomcat shuts down,     Runtime.getRuntime().addShutdownHook(mythread, name + :shutdownHook)); 1.

Serving static content using embedded tomcat 7

2012-02-07 Thread sanu
Hello, I am working on embedding tomcat 7 into our application. We have a number of web apps and the static content is located in a different directory, common to all webapps. I am not finding a way to serve this static content. Could somebody please help me out. Thanks, Sandhya -- View this