You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by alla winter <al...@gmail.com> on 2007/10/17 20:32:52 UTC
Please help with APR configuration
I am trying to set up Tomcat 5.0.28 with APR 1.1.9 on the Windows 2000
workstation
I downloaded openssl.exe and tcnative-1.dll and put them in the tomcat's bin
directory
I put an existing signed certificate and the key that works in production
with APACHE web server into TOMCAT conf directory and updated my
server.xml( see bellow), but I am getting the following error message:
SEVERE: Error initializing endpoint
java.io.FileNotFoundException: C:\.keystore (The system cannot find the file
specified)
at java.io.FileInputStream.open(Native Method)...
that seems to me that APR had not been installed and it is looking for
java's keystore.
I even put an explicit reference to this directory in catalina.bat (set
PATH=%PATH%;%CATALINA_HOME%\bin) , but it didn't make any diference. What
am I doing wrong?
I would appreciate your help. thanks
<Server port="8005" shutdown="SHUTDOWN">
<GlobalNamingResources>
<!-- Used by Manager webapp -->
<Resource name="UserDatabase" auth="Container"
type="org.apache.catalina.UserDatabase"
description="User database that can be updated and saved">
</Resource>
<ResourceParams name="UserDatabase">
<parameter>
<name>factory</name>
<value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
</parameter>
<parameter>
<name>pathname</name>
<value>conf/tomcat-users.xml</value>
</parameter>
</ResourceParams>
</GlobalNamingResources>
<Service name="Catalina">
<Connector port="80" redirectPort="443"/>
<!-- Define a SSL Coyote HTTP/1.1 Connector on port 443 -->
<Connector port="443"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" disableUploadTimeout="true"
acceptCount="100" debug="0" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
SSLEngine="on" SSLCertificateFile="c:\jakarta-
tomcat-5.0.28\conf\mycobrasource.crt"
SSLCertificateKeyFile="c:\jakarta-
tomcat-5.0.28\conf\mycobrasource.key"
/>
<!-- This is here for compatibility only, not required -->
<Connector port="8009" protocol="AJP/1.3" />
<Engine name="Catalina" defaultHost="localhost">
<Logger className="org.apache.catalina.logger.FileLogger" />
<Realm className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase" />
<Host name="localhost" appBase="webapps" />
<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="logs" prefix="localhost_access_log."
suffix=".txt" pattern="common" resolveHosts="false" />
</Engine>
</Service>
</Server>
Re: Please help with APR configuration
Posted by Filip Hanik - Dev Lists <de...@hanik.com>.
APR is not available on Tomcat 5.0
you need Tomcat 5.5 or 6.0
Filip
alla winter wrote:
> I am trying to set up Tomcat 5.0.28 with APR 1.1.9 on the Windows 2000
> workstation
> I downloaded openssl.exe and tcnative-1.dll and put them in the tomcat's bin
> directory
> I put an existing signed certificate and the key that works in production
> with APACHE web server into TOMCAT conf directory and updated my
> server.xml( see bellow), but I am getting the following error message:
> SEVERE: Error initializing endpoint
> java.io.FileNotFoundException: C:\.keystore (The system cannot find the file
> specified)
> at java.io.FileInputStream.open(Native Method)...
>
> that seems to me that APR had not been installed and it is looking for
> java's keystore.
> I even put an explicit reference to this directory in catalina.bat (set
> PATH=%PATH%;%CATALINA_HOME%\bin) , but it didn't make any diference. What
> am I doing wrong?
>
> I would appreciate your help. thanks
>
>
> <Server port="8005" shutdown="SHUTDOWN">
> <GlobalNamingResources>
> <!-- Used by Manager webapp -->
> <Resource name="UserDatabase" auth="Container"
> type="org.apache.catalina.UserDatabase"
> description="User database that can be updated and saved">
> </Resource>
> <ResourceParams name="UserDatabase">
> <parameter>
> <name>factory</name>
> <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
> </parameter>
> <parameter>
> <name>pathname</name>
> <value>conf/tomcat-users.xml</value>
> </parameter>
> </ResourceParams>
> </GlobalNamingResources>
>
> <Service name="Catalina">
> <Connector port="80" redirectPort="443"/>
> <!-- Define a SSL Coyote HTTP/1.1 Connector on port 443 -->
>
>
> <Connector port="443"
> maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
> enableLookups="false" disableUploadTimeout="true"
> acceptCount="100" debug="0" scheme="https" secure="true"
> clientAuth="false" sslProtocol="TLS"
> SSLEngine="on" SSLCertificateFile="c:\jakarta-
> tomcat-5.0.28\conf\mycobrasource.crt"
> SSLCertificateKeyFile="c:\jakarta-
> tomcat-5.0.28\conf\mycobrasource.key"
>
> />
>
>
>
>
> <!-- This is here for compatibility only, not required -->
> <Connector port="8009" protocol="AJP/1.3" />
>
> <Engine name="Catalina" defaultHost="localhost">
> <Logger className="org.apache.catalina.logger.FileLogger" />
>
> <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
> resourceName="UserDatabase" />
>
> <Host name="localhost" appBase="webapps" />
> <Valve className="org.apache.catalina.valves.AccessLogValve"
> directory="logs" prefix="localhost_access_log."
> suffix=".txt" pattern="common" resolveHosts="false" />
>
> </Engine>
> </Service>
> </Server>
>
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.488 / Virus Database: 269.14.13/1074 - Release Date: 10/16/2007 2:14 PM
>
---------------------------------------------------------------------
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
Re: Please help with APR configuration
Posted by alla winter <al...@gmail.com>.
thanks for your prompt response
On 10/17/07, alla winter <al...@gmail.com> wrote:
>
> I am trying to set up Tomcat 5.0.28 with APR 1.1.9 on the Windows 2000
> workstation
> I downloaded openssl.exe and tcnative-1.dll and put them in the tomcat's
> bin directory
> I put an existing signed certificate and the key that works in production
> with APACHE web server into TOMCAT conf directory and updated my
> server.xml ( see bellow), but I am getting the following error message:
> SEVERE: Error initializing endpoint
> java.io.FileNotFoundException: C:\.keystore (The system cannot find the
> file specified)
> at java.io.FileInputStream.open(Native Method)...
>
> that seems to me that APR had not been installed and it is looking for
> java's keystore.
> I even put an explicit reference to this directory in catalina.bat (set
> PATH=%PATH%;%CATALINA_HOME%\bin) , but it didn't make any diference. What
> am I doing wrong?
>
> I would appreciate your help. thanks
>
>
> <Server port="8005" shutdown="SHUTDOWN">
> <GlobalNamingResources>
> <!-- Used by Manager webapp -->
> <Resource name="UserDatabase" auth="Container"
> type="org.apache.catalina.UserDatabase"
> description="User database that can be updated and saved">
> </Resource>
> <ResourceParams name="UserDatabase">
> <parameter>
> <name>factory</name>
> <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
> </parameter>
> <parameter>
> <name>pathname</name>
> <value>conf/tomcat-users.xml</value>
> </parameter>
> </ResourceParams>
> </GlobalNamingResources>
>
> <Service name="Catalina">
> <Connector port="80" redirectPort="443"/>
> <!-- Define a SSL Coyote HTTP/1.1 Connector on port 443 -->
>
>
> <Connector port="443"
> maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
> enableLookups="false" disableUploadTimeout="true"
> acceptCount="100" debug="0" scheme="https" secure="true"
> clientAuth="false" sslProtocol="TLS"
> SSLEngine="on" SSLCertificateFile="c:\jakarta-
> tomcat-5.0.28\conf\mycobrasource.crt"
> SSLCertificateKeyFile="c:\jakarta-
> tomcat-5.0.28\conf\mycobrasource.key"
>
> />
>
>
>
>
> <!-- This is here for compatibility only, not required -->
> <Connector port="8009" protocol="AJP/1.3" />
>
> <Engine name="Catalina" defaultHost="localhost">
> <Logger className="org.apache.catalina.logger.FileLogger" />
>
> <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
> resourceName="UserDatabase" />
>
> <Host name="localhost" appBase="webapps" />
> <Valve className="org.apache.catalina.valves.AccessLogValve"
> directory="logs" prefix="localhost_access_log."
> suffix=".txt" pattern="common" resolveHosts="false" />
>
> </Engine>
> </Service>
> </Server>
>
>
>
>
>
>