Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 48962 invoked from network); 9 Oct 2006 19:09:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 9 Oct 2006 19:09:58 -0000 Received: (qmail 15247 invoked by uid 500); 9 Oct 2006 19:09:43 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 15010 invoked by uid 500); 9 Oct 2006 19:09:42 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 14999 invoked by uid 99); 9 Oct 2006 19:09:42 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Oct 2006 12:09:42 -0700 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=MAILTO_TO_SPAM_ADDR X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [66.80.60.32] (HELO mail.megapathdsl.net) (66.80.60.32) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Oct 2006 12:09:40 -0700 Received: from [66.80.232.194] (HELO Alla) by fe.mail.megapathdsl.net (CommuniGate Pro SMTP 5.0.4) with ESMTP id 87767667 for users@tomcat.apache.org; Mon, 09 Oct 2006 12:09:18 -0700 From: "Alla Winter" To: "'Tomcat Users List'" Subject: RE: Please help me to configure TOMCAT with APR connector Thanks. Solved Date: Mon, 9 Oct 2006 14:09:14 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 x-mimeole: Produced By Microsoft MimeOLE V6.00.2900.2869 Thread-Index: AcbrtHU5cECsw5a8Qv+mKT1/QdLCDwAHtVog In-Reply-To: <20061009150534.43801.qmail@web50609.mail.yahoo.com> Message-ID: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Mr. Patel, I was following your advice and I was able to successfully configure TOMCAT to use APR. I used it with jdk 1.4 Thanks a lot for your help! I really appreciated it. PS. Now, after this I think I know some of the answers on my questions. I may not know the explanation to it, but I just can list the facts, so that if somebody else have the same issues, they will know what to do. The answers follow the questions. -----Original Message----- From: Dhaval Patel [mailto:dhaval04@yahoo.com] Sent: Monday, October 09, 2006 10:06 AM To: Tomcat Users List Subject: Re: Please help me to configure TOMCAT with APR connector Thanks Hi, I would say two things: (1) Use JDK 1.5 for Tomcat 5.5.x. (2) Look at http://mail-archives.apache.org/mod_mbox/tomcat-users/200512.mbox/%3C2005120 1144849.70939.qmail@web50613.mail.yahoo.com%3E for how to configure SSL + APR on windows. As far as your questions are concerned, someone will able to answer that. :) Regards, D --- Alla Winter wrote: > I would appreciate if you would answer on my questions. > > Thanks > > > > _____ > > From: Alla Winter [mailto:alla@cobrasource.com] > Sent: Friday, October 06, 2006 1:13 PM > To: users@tomcat.apache.org > Subject: Please help me to configure TOMCAT with APR connector Thanks > > > > I am trying to configure TOMCAT 5.5.17 JDK, 1.4.2.12 with APR on Windows > 2000. I was able to start this version of tomcat without ssl configuration > and my application is working OK with it. > > Here are the steps what I did: > > 1. I downloaded tcnative-1.dll into c\Cobra\nativeLib > 2. I added a line in startup.bat : set > LD_LIBRARY_PATH=c\Cobra\nativeLib > 3. I put the working in production certificate and the key ( in > production we currently using APACHE 2 and jk2 connector, I assume that the > same certificate format is valid for OppenSSl) under > c:/apache-tomcat-5.5.17/conf/ > 4. I changed the server.xml (see the attached). > > minSpareThreads="25" maxSpareThreads="75" enableLookups="false" > disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true" > clientAuth="false" sslProtocol="TLS" SSLEngine="on" > SSLCertificateFile="c:/apache-tomcat-5.5.17/conf/mycobrasource.crt" > SSLCertificateKeyFile="c:/apache-tomcat-5.5.17/conf/mycobrasource.key" /> > > > > But due to whatever reason Tomcat is looking for keystore, the error message > is "SEVERE: Error initializing endpoint > > java.io.FileNotFoundException: C:\Documents and > Settings\Alla.COBRASOURCE\.keystore" > > > > What I am doing wrong? > > > > I also would appreciate if you would clarify for me a few things: > > the documentation says > > " APR support requires three main native components to be installed: > > * APR library > > * JNI wrappers for APR used by Tomcat (libtcnative) > > * OpenSSL libraries "" > > And then we are referred to download "compiled .dll which includes OpenSSL > and APR.", which is tcnative-1.dll I guess I misunderstood this statement, and tcnative.dll does not include OpenSSL, the referred site contains the stand alone executable OpenSSL.exe, which has to be downloaded. > > Does that include JNI wrapper as well? ***************************************************************** Since it works, it seems that it does ***************************************************************** > And then it tells "In security conscious production environments, it is > recommended to use separate shared dlls for OpenSSL, APR, and > libtcnative-1," > > Where the binaries for those separate dlls ( beside openSSL) can be found ? > Many Windows users do not have C compiler to build it from scratch? > > It is also unclear what exactly instruct TOMCAT to use APR instead of JSSE? ********************** I didn't put OpenSSL.exe in the LD_LIBRARY_PATH , so that is why TOMCAT was looking for keystore. **************************** > > Also, in the example of server.xml configuration SSLCertificateFile keyword > is referring to .crt file. While we have signed by Thawte .cer file. I > just changed the extension of the file. Is that the same file? ***************************************************************** Changing the extension worked. ***************************************************************** > > I would greatly appreciate your help. > > Thanks > s > > > > > > > > > > > > > > > > > > > > > > > > > > > type="org.apache.catalina.UserDatabase" > description="User database that can be updated and saved" > factory="org.apache.catalina.users.MemoryUserDatabaseFactory" > pathname="conf/tomcat-users.xml" /> > > > > > > > > > > > > maxThreads="150" minSpareThreads="25" maxSpareThreads="75" > enableLookups="false" redirectPort="8443" acceptCount="100" > connectionTimeout="20000" disableUploadTimeout="true" /> > > > > > > > maxThreads="150" minSpareThreads="25" maxSpareThreads="75" > enableLookups="false" disableUploadTimeout="true" > acceptCount="100" scheme="https" secure="true" > clientAuth="false" sslProtocol="TLS" > SSLEngine="on" > SSLCertificateFile="c:/apache-tomcat-5.5.17/conf/mycobrasource.crt" > SSLCertificateKeyFile="c:/apache-tomcat-5.5.17/conf/mycobrasource.key" > > /> > > > > enableLookups="false" redirectPort="8443" protocol="AJP/1.3" /> > > > > > > > > > > > > > > > > > > > resourceName="UserDatabase"/> > > > > > > > > > > > > > > unpackWARs="true" autoDeploy="true" > xmlValidation="false" xmlNamespaceAware="false"> > > > > > > > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org