tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r.@metamagix.net
Subject Re: multiple ips, multiple ssl certificates and port forwarding
Date Mon, 17 Jan 2005 15:58:16 GMT
unfortunately this does not seem to solve the problem ... but results in 
the following error (as the given keystore cannot be used)

Jan 17, 2005 4:59:29 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-62.116.64.7-8080
Jan 17, 2005 4:59:29 PM org.apache.coyote.http11.Http11Protocol init
SEVERE: Error initializing endpoint
java.io.FileNotFoundException: /home/essence/.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:276)
         at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFactory.java:220)
         at 
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE14SocketFactory.java:143)
         at 
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory.java:109)
         at 
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFactory.java:98)
         at 
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java:261)
         at 
org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:137)
         at 
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1238)
         at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:532)
         at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2199)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:462)
         at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
         at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
         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:324)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Catalina.start: LifecycleException:  Protocol handler initialization 
failed: java.io.FileNotFoundException: /home/essence/.ke
ystore (No such file or directory)
LifecycleException:  Protocol handler initialization failed: 
java.io.FileNotFoundException: /home/essence/.keystore (No such
file or directory)
         at 
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1240)
         at 
org.apache.catalina.core.StandardService.initialize(StandardService.java:532)
         at 
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2199)
         at org.apache.catalina.startup.Catalina.start(Catalina.java:462)
         at org.apache.catalina.startup.Catalina.execute(Catalina.java:350)
         at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
         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:324)
         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:156)
Catalina.stop: LifecycleException:  This server has not yet been started
LifecycleException:  This server has not yet been started


At 16:35 17.01.2005, you wrote:
>I think you have an error in your server.xml. The path to the keystore and 
>other SSL fields are in the Factory element instead of the connector element.
>
>>     <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
>>     <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
>>                port="8443" minProcessors="5" maxProcessors="30"
>>                address="100.100.100.3"
>>                enableLookups="true"
>>                acceptCount="30" debug="0" scheme="https" secure="true"
>>                useURIValidationHack="false" disableUploadTimeout="true">
>>       <Factory 
>> className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
>>                keystoreFile="/home/essence/essence/KEYS/c.keystore"
>>                keystorePass="xxx"
>>                clientAuth="false" protocol="TLS" />
>>     </Connector>
>
>
>Should read:
>
>>     <!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 -->
>>     <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
>>                port="8443" minProcessors="5" maxProcessors="30"
>>                address="100.100.100.3"
>>                enableLookups="true"
>>                acceptCount="30" debug="0" scheme="https" secure="true"
>>                useURIValidationHack="false" disableUploadTimeout="true">
>>                keystoreFile="/home/essence/essence/KEYS/c.keystore"
>>                keystorePass="xxx"
>>                clientAuth="false" protocol="TLS" <Factory 
>> className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"/>
>>     </Connector>
>
>
>Doug
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message