Re: Tomcat and PostgreeSQL

2013-06-06 Thread Dhaval Jaiswal
Adding to it.. as usual In server.xml, resource need to mentioned the type, driverClassName, url and connectivity parameter of PostgreSql db. as usual In a context.xml, ResourceLink name, global, type and allow the IP of tomcat at db end in pg_hba.conf file to connect the db. On Fri, Jun

Re: Tomcat and PostgreeSQL

2013-06-06 Thread Lutischán Ferenc
Hi, on 2013.06.06. 22:45, Hector Del Mestre wrote: Well, now the fatal question: Tomcat need any special configuration to use PostgreSQL? I have some ideas: - The jdbc driver must be in the {Tomcat home}/lib. - If you use the tomcat pool manager append the testOnBorrow="true" to the Resource

Re: How to get SSL connection information from Apache HTTPD over AJP?

2013-06-06 Thread Omari Stephens
*phew* Got it figured out, and now everything is working (including the JkEnvVar thing that I had set up) For anyone who runs across this thread in the future, the problem was that I was using a stanza to require authentication. Because Jakarta queries don't actually hit the filesystem, though,

Re: How to get SSL connection information from Apache HTTPD over AJP?

2013-06-06 Thread Omari Stephens
Okay, searching around for 'tomcatAuthentication="false"' is bearing some fruit. It appears that my situation is similar to this one: http://tomcat.10.x6.nabble.com/tomcat-apache-with-mod-jk-and-mod-auth-kerb-tt2097887.html#a2097891 Just like that person, I enabled debug logging for mod_jk and I

RE: How to get SSL connection information from Apache HTTPD over AJP?

2013-06-06 Thread Caldarale, Charles R
> From: Omari Stephens [mailto:x...@google.com] > Subject: Re: How to get SSL connection information from Apache HTTPD over AJP? > [re-adding mailing list] > Martin: There's a reason everyone ignores Martin Gainty's postings: they are nearly always irrelevant, or worse. Consequently, he's tak

Re: How to get SSL connection information from Apache HTTPD over AJP?

2013-06-06 Thread Omari Stephens
[re-adding mailing list] Martin: Everything is working perfectly on the Apache side. If I run this CGI: """ #!/bin/sh printf "Content-Type: text/plain\r\n\r\n" env | sort """ I get, among other variables: HTTPS=on REMOTE_USER=xsdg SERVER_PORT=443 SSL_PROTOCOL=TLSv1 What I want is to somehow r

Re: Tomcat and PostgreeSQL

2013-06-06 Thread Hector Del Mestre
ok, 2013/6/6 Tanglin, Oliver > Also you might try tweaking your -Xms (minimum heap size) and -Xmx > (maximum heap size) arguments for your JVM. If your PostgreSQL driver does > not actually have a memory leak, this may do the trick. > > You can Google for specifications and examples. Set these

Re: How to get SSL connection information from Apache HTTPD over AJP?

2013-06-06 Thread Omari Stephens
Howdy, Rainier Thanks for the response. I gave this a shot, but I'm not seeing any change at the Servlet level. After your advice, I changed my Connector definition to this: Is there any change I need to make on the httpd side? I've restarted both tomcat and httpd, and I still get null fr

RE: Tomcat and PostgreeSQL

2013-06-06 Thread Tanglin, Oliver
Also you might try tweaking your -Xms (minimum heap size) and -Xmx (maximum heap size) arguments for your JVM. If your PostgreSQL driver does not actually have a memory leak, this may do the trick. You can Google for specifications and examples. Set these in Catalina.sh CATALINA_OPS. Oliver

RE: Tomcat and PostgreeSQL

2013-06-06 Thread Ilya Kazakevich
I've never heard about it but looks like JDBC PostgreSQL driver has memory leak. What version of driver do you use? Try to google "postgre SQL JDBC memory leak" Actually any memory leak should be investigated using profiler tool. Google for "java profile memory leaks" Ilya. >-Original Messag

Re: Tomcat and PostgreeSQL

2013-06-06 Thread Hector Del Mestre
Thank you very much: I will check what you suggested. The Java version is 1.7 regards 2013/6/6 Caldarale, Charles R > > From: Hector Del Mestre [mailto:hectordelmes...@gmail.com] > > Subject: Tomcat and PostgreeSQL > > > The application was done with AppFuse architecture originally utlizando

RE: Tomcat and PostgreeSQL

2013-06-06 Thread Caldarale, Charles R
> From: Hector Del Mestre [mailto:hectordelmes...@gmail.com] > Subject: Tomcat and PostgreeSQL > The application was done with AppFuse architecture originally utlizando > MySQL, but issues like licensing and client wants to use PostgreSQL. > And that is where I'm stuck, because Tomcat (or rather

Tomcat and PostgreeSQL

2013-06-06 Thread Hector Del Mestre
Hello: I'm on a project and asked me to install Apache Tomcat as server pages and PostgreSQL as database engine. So far so good and right install everything correctly. The application was done with AppFuse architecture originally utlizando MySQL, but issues like licensing and client wants to use Po

RE: Keystore error trying to use SSL JSSE

2013-06-06 Thread Ilya Kazakevich
>-Original Message- >From: Tim Colletto [mailto:tcolle...@cra.com] >Sent: Thursday, June 06, 2013 9:36 PM >To: Tomcat Users List >Subject: RE: Keystore error trying to use SSL JSSE >>${user.home} I think is for linux? I tried quickly %USERPROFILE%/keystore No, this is for Java: http://do

RE: Keystore error trying to use SSL JSSE

2013-06-06 Thread Tim Colletto
Hello, 1) keystoreFile (letter F should be in upper case) 2) Use / instead of \ 3) Use ${user.home} instead path (and I am not sure c:\ works, you probably need file:///c:/ but ${user.home} is better anyway) Ilya Kazakevich, Thank you that worked! Follow up: Shockingly it seems that both \ an

Re: Best practices for shared classloader use?

2013-06-06 Thread Jens Breitenstein
Hi Jeff, You are rigth. When moving jars's configuration and resources have to move, too. But as others pointed out analysation of the mem usage is by far more important. Maybe buying some mem for a couple of dollars and forget about the shared class loader at all is a better and less hair gr

Re: Apache Tomcat service has been shutting down/stopping randomly.

2013-06-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 James, On 6/6/13 10:47 AM, James Snider wrote: > Here's what we have completed since the last post: Notably missing: the answers to any of the questions I asked. :( > 1. We have enabled AWTThreadProtection in the server.xml file by > setting the a

RE: Keystore error trying to use SSL JSSE

2013-06-06 Thread Ilya Kazakevich
Hello, 1) keystoreFile (letter F should be in upper case) 2) Use / instead of \ 3) Use ${user.home} instead path (and I am not sure c:\ works, you probably need file:///c:/ but ${user.home} is better anyway) Ilya Kazakevich, >-Original Message- >From: Tim Colletto [mailto:tcolle...@cra.

RE: Keystore error trying to use SSL JSSE

2013-06-06 Thread Carrillo, Dan
It's not complaining about the file path, but about the property name. Capitalize the "F" - it should be keystoreFile= -Original Message- From: Tim Colletto [mailto:tcolle...@cra.com] Sent: Thursday, June 06, 2013 8:30 AM To: users@tomcat.apache.org Subject: Keystore error trying to use

Keystore error trying to use SSL JSSE

2013-06-06 Thread Tim Colletto
Hello, Using the above method I receive the following in the log: WARNING: [SetAllPropertiesRule]{Server/Service/Connector} Setting property 'keystorefile' to 'c:\users\administrator\.keystore' did not find a matching property. The following is my main config: I've tried just about every

Re: SlowQueryReport

2013-06-06 Thread Daniel Mikusa
On Jun 6, 2013, at 4:04 AM, Lutischán Ferenc wrote: > Dear Daniel, Please don't top post. It makes it hard to follow the conversation. Either post your response inline, like I have been doing, or post below previous responses. > > Thanks. The slow query log works. :-) Good to hear! > >

RE: Apache Tomcat service has been shutting down/stopping randomly.

2013-06-06 Thread James Snider
Hi Chris, Here's what we have completed since the last post: 1. We have enabled AWTThreadProtection in the server.xml file by setting the attribute to true. 2. We have added a flush/close to the ImageIO code in our web application. We are still receiving the java.lang.IllegalStateException er

RE: Best practices for shared classloader use?

2013-06-06 Thread Jeffrey Janner
> -Original Message- > From: mailingl...@j-b-s.de [mailto:mailingl...@j-b-s.de] > Sent: Tuesday, June 04, 2013 11:25 AM > To: Tomcat Users List > Subject: Re: Best practices for shared classloader use? > > Hi Don! > > Usually each Webapp has its own classloader thus two webapps can have >

RE: Tomcat 6 and Windows Service

2013-06-06 Thread Jeffrey Janner
> -Original Message- > From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] > Sent: Wednesday, June 05, 2013 8:04 AM > To: Tomcat Users List > Subject: RE: Tomcat 6 and Windows Service > > > From: walter.heesterm...@toyota-europe.com > > [mailto:walter.heesterm...@toyota-europe.c

Re: SlowQueryReport

2013-06-06 Thread Lutischán Ferenc
Dear Daniel, Thanks. The slow query log works. :-) The code doesn't work. It called from a cron4j under Tomcat: public class SchedulerServletContextListener implements ServletContextListener { private static final String SCHEDULER = "cron4j.scheduler"; @Override public void con

Re: How to get SSL connection information from Apache HTTPD over AJP?

2013-06-06 Thread Rainer Jung
On 06.06.2013 07:23, Omari Stephens wrote: > Howdy, y'all > > I'm working on porting a pure java CGI to a servlet. I'm using Tomcat > 6 behind Apache HTTPD 2.2. > > At this point, I have everything talking to each other fine. When I > hit the right URL on httpd, my servlet gets run. yay. > >