tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arnaud icard <arnaud.ic...@univ-avignon.fr>
Subject Re: configuring APR SSL
Date Wed, 16 Mar 2011 13:34:55 GMT


Caldarale, Charles R a écrit , Le 16/03/2011 13:57:
>> From: arnaud icard [mailto:arnaud.icard@univ-avignon.fr]
>> Subject: configuring APR SSL
>> Why is it looking for a keystore as the APR listener is activated ?
> Likely because you haven't built and installed the tcnative library for your platform.
 Telling us your exact Tomcat version, whether it's a real Tomcat downloaded from tomcat.apache.org
or a 3rd-party repackaged one, the platform you're running on, and showing us your complete
catalina.*.log and complete server.xml (with comments removed) would help in diagnosis.
>
>   - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and
is thus for use only by the intended recipient. If you received this in error, please contact
the sender and delete the e-mail and its attachments from all computers.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>

Hi Chuck,

thanks for your help.

As mentioned in my previous mail, I am dealing with a tomcat delivered 
with business object.
This Tomcat 5.5.20 is running on a RedHat5.

APR seems to be installed on the system :
[root@bo02c ~]# find / -name "libapr*"
    /usr/lib/libapr-1.so.0.2.7
    /usr/lib/libaprutil-1.so.0.2.7
    /usr/lib/libaprutil-1.so.0
    /usr/lib/libapr-1.so.0
    /usr/lib64/libapr-1.so.0.2.7
    /usr/lib64/libaprutil-1.so.0.2.7
    /usr/lib64/libaprutil-1.so.0
    /usr/lib64/libapr-1.so.0

I also found this file in the tomcat CATALINA's home : 
/app/bo/bobje/tomcat/server/lib/tomcat-apr.jar

Here is my web.xml file :
==============================================
<?xml version="1.0" encoding="UTF-8"?>
<Server port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.core.AprLifecycleListener" 
SSLEngine="on" />
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener"/>
<Listener 
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener"/>
<Listener 
className="org.apache.catalina.storeconfig.StoreConfigLifecycleListener"/>
<GlobalNamingResources>
<Environment name="simpleValue" type="java.lang.Integer" value="30"/>
<Resource name="UserDatabase" auth="Container" 
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"/>
</GlobalNamingResources>

<Service name="Catalina">
<Connector port="8080" maxHttpHeaderSize="8192" maxThreads="150" 
minSpareThreads="25" maxSpareThreads="75" enableLookups="false" 
redirectPort="8443" acceptCount="100" connectionTimeout="20000" 
disableUploadTimeout="true" URIEncoding="UTF-8"/>
<Connector port="8443" maxHttpHeaderSize="8192"
         maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
         enableLookups="false" disableUploadTimeout="true"
         acceptCount="100" scheme="https" secure="true"
         SSLCertificateFile="/etc/ssl/UAPVCA/bo.univ-avignon.fr.pem"
         
SSLCertificateKeyFile="/etc/ssl/UAPVCA/keys/bo.univ-avignon.fr.key" />

<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.UserDatabaseRealm" 
resourceName="UserDatabase"/>
<Host name="localhost" appBase="webapps" unpackWARs="true" 
autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false"></Host>
</Engine>
</Service>
</Server>
==============================================



Below, the catalina log while starting Tomcat :
==============================================
Mar 16, 2011 12:31:12 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 16, 2011 12:31:12 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Mar 16, 2011 12:31:12 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
register('-//Apache Software Foundation//DTD Struts Configuration 
1.0//EN', 
'jar:file:/app/bo/bobje/tomcat/webapps/Xcelsius/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'
register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN', 
'jar:file:/app/bo/bobje/tomcat/webapps/Xcelsius/WEB-INF/lib/struts.jar!/org/apache/struts/resources/web-app_2_2.dtd'
register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN', 
'jar:file:/app/bo/bobje/tomcat/webapps/Xcelsius/WEB-INF/lib/struts.jar!/org/apache/struts/resources/web-app_2_3.dtd'
resolveEntity('-//Apache Software Foundation//DTD Struts Configuration 
1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
  Resolving to alternate DTD 
'jar:file:/app/bo/bobje/tomcat/webapps/Xcelsius/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'
New org.apache.struts.action.ActionMapping
Set org.apache.struts.action.ActionMapping properties
New org.apache.struts.action.ActionForward
Set org.apache.struts.action.ActionForward properties
Call 
org.apache.struts.action.ActionMapping.addForward(ActionForward[default])
Pop org.apache.struts.action.ActionForward
Call 
org.apache.struts.action.ActionServlet.addMapping(ActionMapping[path=/Flash_FlashVars/flashvarsEdit,

type=com.businessobjects.clientaction.flash.flashvars.FlashVarsEditAction])
Pop org.apache.struts.action.ActionMapping
register('-//Apache Software Foundation//DTD Struts Configuration 
1.0//EN', 
'jar:file:/app/bo/bobje/tomcat/webapps/Xcelsius/WEB-INF/lib/struts.jar!/org/apache/struts/resources/struts-config_1_0.dtd'
register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN', 
'jar:file:/app/bo/bobje/tomcat/webapps/Xcelsius/WEB-INF/lib/struts.jar!/org/apache/struts/resources/web-app_2_2.dtd'
register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN', 
'jar:file:/app/bo/bobje/tomcat/webapps/Xcelsius/WEB-INF/lib/struts.jar!/org/apache/struts/resources/web-app_2_3.dtd'
resolveEntity('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN', 
'http://java.sun.com/dtd/web-app_2_3.dtd')
  Resolving to alternate DTD 
'jar:file:/app/bo/bobje/tomcat/webapps/Xcelsius/WEB-INF/lib/struts.jar!/org/apache/struts/resources/web-app_2_3.dtd'
Call 
org.apache.struts.action.ActionServlet.addServletMapping(DocumentDownload/java.lang.String,/opendoc/documentDownload/java.lang.String)
Call 
org.apache.struts.action.ActionServlet.addServletMapping(action/java.lang.String,*.do/java.lang.String)
Initializing Performance Management
done (3112)
Initializing Performance Manager
done (935)
log4j:WARN No appenders could be found for logger 
(org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN No appenders could be found for logger 
(org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
Mar 16, 2011 12:31:34 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 16, 2011 12:31:34 PM org.apache.coyote.http11.Http11BaseProtocol start
SEVERE: Error starting endpoint
java.io.FileNotFoundException: /home/bo/.keystore (No such file or 
directory)
         at java.io.FileInputStream.open(Native Method)
         at java.io.FileInputStream.<init>(FileInputStream.java:106)
         at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory.java:279)
         at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:222)
         at 
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE14SocketFactory.java:141)
         at 
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:109)
         at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:88)
         at 
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:292)
         at 
org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java:312)
         at 
org.apache.coyote.http11.Http11BaseProtocol.start(Http11BaseProtocol.java:150)
         at 
org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:75)
         at 
org.apache.catalina.connector.Connector.start(Connector.java:1089)
         at 
org.apache.catalina.core.StandardService.start(StandardService.java:459)
         at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Mar 16, 2011 12:31:34 PM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start:
LifecycleException:  service.getName(): "Catalina";  Protocol handler 
start failed: java.io.FileNotFoundException: /home/bo/.keystore (No such 
file or directory)
         at 
org.apache.catalina.connector.Connector.start(Connector.java:1096)
         at 
org.apache.catalina.core.StandardService.start(StandardService.java:459)
         at 
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Mar 16, 2011 12:31:34 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 22942 ms
==============================================




Mime
View raw message