tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe Khalife" <pkhal...@dinmar.com>
Subject TC4 B3 & SSL: Error in SSLServerSocketFactory: initProxy()?
Date Thu, 03 May 2001 14:15:29 GMT

Dev environment: Win2K Pro, JDK1.3, TC4 B3, latest JSSE, openssl, apache
1.3.19
I don't have a connector for apache compiled on this platform yet, so I'm
trying  direct SSL on TOMCAT

The JSSE seem to be properly setup: I have the JSSE in the CLASSPATH also
under $JAVA_HOME\jre\lib\ext, and $CATALINA_HOME/server/lib, also registered
the Provider in $JAVA_HOME\jre\lib\security\java.security


Server.xml:
    <Connector className="org.apache.catalina.connector.http.HttpConnector"
               port="8443" minProcessors="5" maxProcessors="75"
	       acceptCount="10" debug="0" scheme="https" secure="true">
      <Factory className="org.apache.catalina.net.SSLServerSocketFactory"
               clientAuth="false" protocol="TLS"
keystorePass="administrator"
               keystoreFile="c:\jdk\tomcat4-b3\conf\keystore"
keystoreType="JKS" />
    </Connector>


I tried both openssl certificates and keytool generated ceritificates.

I tried the code of SSLServerSocketFactory (initProxy) in a test class and
it works fine, with or without Security.addProvider(new
com.sun.net.ssl.internal.ssl.Provider());
So it's not a JVM setup issue. Is there a problem with this JSSE?

So what am I missing?
Your help will be greatly appreciated!!

PK
----------------------------------------------------------------------------
-----
initProxy:  java.security.NoSuchAlgorithmException: Class
com.sun.net.ssl.intern
al.ssl.SSLContextImpl configured for SSLContext not a SSLContext
java.security.NoSuchAlgorithmException: Class
com.sun.net.ssl.internal.ssl.SSLCo
ntextImpl configured for SSLContext not a SSLContext
        at com.sun.net.ssl.b.a([DashoPro-V1.2-120198])
        at com.sun.net.ssl.SSLContext.getInstance([DashoPro-V1.2-120198])
        at
org.apache.catalina.net.SSLServerSocketFactory.initProxy(SSLServerSoc
ketFactory.java:385)
        at
org.apache.catalina.net.SSLServerSocketFactory.initialize(SSLServerSo
cketFactory.java:328)
        at
org.apache.catalina.net.SSLServerSocketFactory.createSocket(SSLServer
SocketFactory.java:281)
        at
org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j
ava:734)
        at
org.apache.catalina.connector.http.HttpConnector.start(HttpConnector.
java:888)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:3
60)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:458
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:707)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:627)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:177)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:177)
Catalina.start: LifecycleException:  HttpConnector[8443].open:
java.io.IOExcept
ion: java.security.NoSuchAlgorithmException: Class
com.sun.net.ssl.internal.ssl.
SSLContextImpl configured for SSLContext not a SSLContext
LifecycleException:  HttpConnector[8443].open:  java.io.IOException:
java.securi
ty.NoSuchAlgorithmException: Class
com.sun.net.ssl.internal.ssl.SSLContextImpl c
onfigured for SSLContext not a SSLContext
        at
org.apache.catalina.connector.http.HttpConnector.start(HttpConnector.
java:890)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:3
60)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:458
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:707)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:627)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:177)
        at java.lang.reflect.Method.invoke(Native Method)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:177)


Mime
View raw message