Re: LDAP on TOMCAT 7.0.30

2013-01-28 Thread André Warnier
N.s.Karthik wrote: Hi Spec : JDK1.6, Tomcat 7.0.30, Linux 64 bit Suse So far we have been using 3 killer Ajax web based applications with each app provided with separate DB schema. The Requirement is to provide a SSO Single Sign On Logic with existing

Re: [OT] Best way to log requests from a servlet and to a database?

2013-01-28 Thread André Warnier
Caldarale, Charles R wrote: From: Brian Braun [mailto:brianbr...@gmail.com] Subject: Re: [OT] Best way to log requests from a servlet and to a database? However, if I get significantly more requests, this may not be enough because MySQL will get slower and the queue will get full. I think I

Re: LDAP on TOMCAT 7.0.30

2013-01-28 Thread Mark Thomas
On 28/01/2013 09:06, André Warnier wrote: N.s.Karthik wrote: Hi Spec : JDK1.6, Tomcat 7.0.30, Linux 64 bit Suse So far we have been using 3 killer Ajax web based applications with each app provided with separate DB schema. The Requirement is to provide a

Re: LDAP on TOMCAT 7.0.30

2013-01-28 Thread N.s.Karthik
Hi Thx for the Quick reply 1) All 3 applications are browser compatible and users may use other then IE hence IE alone can be ruled out What about the other (2 3) options with regards karthik -- View this message in context:

Re: How to prevent CVE-2012-5568 in Tomcat 7.0.32

2013-01-28 Thread Mark Thomas
On 28/01/2013 06:49, Aditi Sinha wrote: Thanks a lot Mark for the information. Added to the security pages: http://tomcat.apache.org/security-7.html#Not_a_vulnerability_in_Tomcat http://tomcat.apache.org/security-6.html#Not_a_vulnerability_in_Tomcat Mark

Re: Tomcat6+webapps+log4j

2013-01-28 Thread Tiago Sousa
Em 25/01/2013 19:39, Christopher Schultz escreveu: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Tiago, On 1/25/13 4:45 AM, Tiago Sousa wrote: Em 25/01/2013 08:59, Konstantin Kolinko escreveu: 2013/1/24 Tiago Sousa tiago-a-so...@ext.ptinovacao.pt: Hello to all. I have tomcat 6 Which

Re: Tomcat6+webapps+log4j

2013-01-28 Thread Tiago Sousa
Em 25/01/2013 19:39, Christopher Schultz escreveu: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Tiago, On 1/25/13 4:45 AM, Tiago Sousa wrote: Em 25/01/2013 08:59, Konstantin Kolinko escreveu: 2013/1/24 Tiago Sousa tiago-a-so...@ext.ptinovacao.pt: Hello to all. I have tomcat 6 Which

Re: Not able to read file from jar in tomcat

2013-01-28 Thread Konstantin Kolinko
2013/1/28 Bibin Balakrishnan bibin.balakrish...@gmail.com: I have a web application running under tomcat 7, and in one of the class, Im trying to read a file in one of the jar under WEB-INF/lib folder. URL resourceURL = MyClass.class.getClassLoader().getResource(xml/xslt/master.xsl); File

Re: LDAP on TOMCAT 7.0.30

2013-01-28 Thread chris derham
1) All 3 applications are browser compatible and users may use other then IE hence IE alone can be ruled out Do you mean multiple browsers access these web applications, so we can't use anything that is IE specific? Assuming that you do, I don't believe that anybody suggested anything that

Re: Tomcat6+webapps+log4j

2013-01-28 Thread Konstantin Kolinko
2013/1/28 Tiago Sousa tiago-a-so...@ext.ptinovacao.pt: Em 25/01/2013 19:39, Christopher Schultz escreveu: On 1/25/13 4:45 AM, Tiago Sousa wrote: Em 25/01/2013 08:59, Konstantin Kolinko escreveu: 2013/1/24 Tiago Sousa tiago-a-so...@ext.ptinovacao.pt: Hello to all. I have tomcat 6 Which

Re: Restarting Tomcat from within itself?

2013-01-28 Thread Daniel Mikusa
On Jan 26, 2013, at 5:19 AM, Sunil Shevante wrote: Hi, Is it possible to restart tomcat from within itself? I host a JSP website and somehow the memory utilization keeps on increasing from time to time. I then have to manually restart Tomcat. While I understand that in the long term,

Re: Tomcat6+webapps+log4j

2013-01-28 Thread Tiago Sousa
Em 28/01/2013 12:56, Konstantin Kolinko escreveu: 2013/1/28 Tiago Sousa tiago-a-so...@ext.ptinovacao.pt: Em 25/01/2013 19:39, Christopher Schultz escreveu: On 1/25/13 4:45 AM, Tiago Sousa wrote: Em 25/01/2013 08:59, Konstantin Kolinko escreveu: 2013/1/24 Tiago Sousa

Re: jsp:getProperty not working

2013-01-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Benin, On 1/25/13 6:56 PM, Benin Technologies wrote: I'm new to Tomcat/JSP I have a JSP page that instantiates a bean, then it access the bean through a scriptlet, it works fine. But when I replace the scriptlet by a jsp:getProperty.. tag, it

Re: Best way to log requests from a servlet and to a database?

2013-01-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Brian, On 1/25/13 9:00 PM, Brian Braun wrote: Until recently, all this happened in a syncronous way. I mean, before the Tomcat thread delivered the response, it had to create the records in the database table. The problem is that this log used

Re: Different webapp paths on different hosts

2013-01-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 bxqdev, On 1/26/13 3:04 PM, bxqdev wrote: On 1/26/2013 9:36 PM, Caldarale, Charles R wrote: From: cjder...@gmail.com [mailto:cjder...@gmail.com] On Behalf Of chris derham Subject: Re: Different webapp paths on different hosts To my mind if

Re: Different webapp paths on different hosts

2013-01-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 bxqdev, On 1/26/13 1:09 AM, bxqdev wrote: On 1/26/2013 1:05 AM, Christopher Schultz wrote: Dude, On 1/25/13 12:38 AM, bxqdev wrote: i want to have one instance of webapp, No problem. which has two paths, Problem: one context = one

Re: [OT] Best way to log requests from a servlet and to a database?

2013-01-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Brian, On 1/26/13 11:29 PM, Brian Braun wrote: I finally found this, implemented it and works great! http://docs.oracle.com/javase/6/docs/api/java/util/concurrent/LinkedBlockingQueue.html However, if I get significantly more requests, this

Re: Not able to read file from jar in tomcat

2013-01-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Bibin, On 1/28/13 6:07 AM, Bibin Balakrishnan wrote: I have a web application running under tomcat 7, and in one of the class, Im trying to read a file in one of the jar under WEB-INF/lib folder. URL resourceURL =

Re: LDAP on TOMCAT 7.0.30

2013-01-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 1/28/13 7:47 AM, chris derham wrote: 1) All 3 applications are browser compatible and users may use other then IE hence IE alone can be ruled out Do you mean multiple browsers access these web applications, so we can't use

Re: Restarting Tomcat from within itself?

2013-01-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Daniel, On 1/28/13 8:19 AM, Daniel Mikusa wrote: On Jan 26, 2013, at 5:19 AM, Sunil Shevante wrote: Hi, Is it possible to restart tomcat from within itself? I host a JSP website and somehow the memory utilization keeps on increasing

Re: Tomcat6+webapps+log4j

2013-01-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Tiago, On 1/28/13 6:03 AM, Tiago Sousa wrote: Just another symptom: initially i also thought that could be a permissions problem but it's strange that JULI could create the log file while log4j couldn´t. I've tried several other approaches but

Re: Tomcat6+webapps+log4j

2013-01-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Tiago, On 1/28/13 8:49 AM, Tiago Sousa wrote: Thanks, one more time, for your reply. The problem with log4j 1.x is that it outputs the following error: log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.Embedded).

Re: Restarting Tomcat from within itself?

2013-01-28 Thread Hassan Schroeder
On Mon, Jan 28, 2013 at 7:32 AM, Christopher Schultz ch...@christopherschultz.net wrote: Alternatively, you could use a preexisting tool to monitor your Tomcat instance like Nagios or Hyperic. These solutions really only monitor. Yes, you can configure them to react to certain situations by

Re: Tomcat6+webapps+log4j

2013-01-28 Thread Tiago Sousa
Em 28/01/2013 15:41, Christopher Schultz escreveu: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Tiago, On 1/28/13 8:49 AM, Tiago Sousa wrote: Thanks, one more time, for your reply. The problem with log4j 1.x is that it outputs the following error: log4j:WARN No appenders could be found for

Re: Tomcat6+webapps+log4j

2013-01-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Tiago, On 1/28/13 11:02 AM, Tiago Sousa wrote: Em 28/01/2013 15:41, Christopher Schultz escreveu: Tiago, On 1/28/13 8:49 AM, Tiago Sousa wrote: Thanks, one more time, for your reply. The problem with log4j 1.x is that it outputs the following

Re: Restarting Tomcat from within itself?

2013-01-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hassan, On 1/28/13 10:43 AM, Hassan Schroeder wrote: On Mon, Jan 28, 2013 at 7:32 AM, Christopher Schultz ch...@christopherschultz.net wrote: Alternatively, you could use a preexisting tool to monitor your Tomcat instance like Nagios or

Re: Tomcat6+webapps+log4j

2013-01-28 Thread Tiago Sousa
Em 28/01/2013 16:16, Christopher Schultz escreveu: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Tiago, On 1/28/13 11:02 AM, Tiago Sousa wrote: Em 28/01/2013 15:41, Christopher Schultz escreveu: Tiago, On 1/28/13 8:49 AM, Tiago Sousa wrote: Thanks, one more time, for your reply. The

FW: Destroying resources created with a custom ObjectFactory

2013-01-28 Thread Xavier Dury
Hi, I'm using Tomcat 7.0.x and made a custom javax.naming.spi.ObjectFactory to create a Ehcache manager, exposing a configured CacheManager to an application through (local) JNDI. My question is: how/where can I call the CacheManager.shutdown() method when my application is (re|un)deployed? I

Re: LDAP on TOMCAT 7.0.30

2013-01-28 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 1/28/13 7:47 AM, chris derham wrote: 1) All 3 applications are browser compatible and users may use other then IE hence IE alone can be ruled out Do you mean multiple browsers access these web

Re: Tomcat6+webapps+log4j

2013-01-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Tiago, On 1/28/13 11:25 AM, Tiago Sousa wrote: Em 28/01/2013 16:16, Christopher Schultz escreveu: Tiago, On 1/28/13 11:02 AM, Tiago Sousa wrote: Em 28/01/2013 15:41, Christopher Schultz escreveu: Tiago, On 1/28/13 8:49 AM, Tiago Sousa

Re: FW: Destroying resources created with a custom ObjectFactory

2013-01-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Xavier, On 1/28/13 12:20 PM, Xavier Dury wrote: I'm using Tomcat 7.0.x and made a custom javax.naming.spi.ObjectFactory to create a Ehcache manager, exposing a configured CacheManager to an application through (local) JNDI. My question is:

Re: LDAP on TOMCAT 7.0.30

2013-01-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 1/28/13 12:32 PM, André Warnier wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 1/28/13 7:47 AM, chris derham wrote: 1) All 3 applications are browser compatible and users may use

Re: Tomcat6+webapps+log4j

2013-01-28 Thread Tiago Sousa
Em 28/01/2013 18:06, Christopher Schultz escreveu: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Tiago, On 1/28/13 11:25 AM, Tiago Sousa wrote: Em 28/01/2013 16:16, Christopher Schultz escreveu: Tiago, On 1/28/13 11:02 AM, Tiago Sousa wrote: Em 28/01/2013 15:41, Christopher Schultz

Re: LDAP on TOMCAT 7.0.30

2013-01-28 Thread David kerber
On 1/28/2013 1:07 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 1/28/13 12:32 PM, André Warnier wrote: Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chris, On 1/28/13 7:47 AM, chris derham wrote: 1) All 3 applications

RE: Restarting Tomcat from within itself?

2013-01-28 Thread Andrew Kujtan
-Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Monday, January 28, 2013 10:33 AM To: Tomcat Users List Subject: Re: Restarting Tomcat from within itself? -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Daniel, On 1/28/13 8:19 AM,

Re: Tomcat6+webapps+log4j

2013-01-28 Thread Mark Eggers
On 1/28/2013 10:06 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Tiago, On 1/28/13 11:25 AM, Tiago Sousa wrote: Em 28/01/2013 16:16, Christopher Schultz escreveu: Tiago, On 1/28/13 11:02 AM, Tiago Sousa wrote: Em 28/01/2013 15:41, Christopher Schultz

Re: LDAP on TOMCAT 7.0.30

2013-01-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 David, On 1/28/13 1:18 PM, David kerber wrote: On 1/28/2013 1:07 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 André, On 1/28/13 12:32 PM, André Warnier wrote: Christopher Schultz wrote: -BEGIN PGP

Re: Restarting Tomcat from within itself?

2013-01-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Andrew, On 1/28/13 1:49 PM, Andrew Kujtan wrote: -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Monday, January 28, 2013 10:33 AM To: Tomcat Users List Subject: Re: Restarting Tomcat from within

RE: Restarting Tomcat from within itself?

2013-01-28 Thread Andrew Kujtan
-Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Monday, January 28, 2013 2:01 PM To: Tomcat Users List Subject: Re: Restarting Tomcat from within itself? -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Andrew, On 1/28/13 1:49 PM,

Re: LDAP on TOMCAT 7.0.30

2013-01-28 Thread chris derham
Do you need a plug-in or anything like that? Does it need to be specifically enabled? No, we use it all the time with IE, Firefox, and I believe Chrome as well. Last time I was working in this area a few years ago, it worked by default in IE and had to be turned on in FF. A rogue website

RE: Restarting Tomcat from within itself?

2013-01-28 Thread Sunil Shevante
To add information to the query - I dont have access to the server. So I cannot setup jobs or change tomcat startup parameters. I have hosted my site with a provider and I only have cpanel access. Hence I am looking for some code which would restart/reintialize tomcat from within. Website -

Re: Restarting Tomcat from within itself?

2013-01-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Andrew, On 1/28/13 2:18 PM, Andrew Kujtan wrote: -Original Message- From: Christopher Schultz [mailto:ch...@christopherschultz.net] Sent: Monday, January 28, 2013 2:01 PM To: Tomcat Users List Subject: Re: Restarting Tomcat from within