tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike W-M" <m...@ward-murphy.co.uk>
Subject Re: SSL enabling through Java Application
Date Tue, 10 Dec 2002 20:25:18 GMT
Looks like an interesting application!
Presumably you're aware that Tomcat doesn't come with SSL by default and
that you need to install an implementation (generally Sun's) of the required
security classes?  In Java parlance, it's called "JSSE".
There's a HOWTO in (at least the 4.0) docs on the jakarta site....

Mike.

----- Original Message -----
From: "Abhijat Thakur" <athakur@bdnacorp.com>
To: <tomcat-user@jakarta.apache.org>
Sent: Tuesday, December 10, 2002 7:23 PM
Subject: SSL enabling through Java Application



I have been able to embed tomcat in my java application and startup tomcat
on port 8080. I am trying to create a Connector for HTTPS but every time i
do that i get.

java.lang.ClassNotFoundException: Can't find any SSL implementation
at
org.apache.coyote.http11.Http11Protocol.checkSocketFactory(Http11Protocol.ja
va:454)
at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:133)
at
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:10
02)
at org.apache.catalina.startup.Embedded.start(Embedded.java:999)
at com.bdna.pl.testing.EmbeddedTomcat.startTomcat(EmbeddedTomcat.java:92)
at com.bdna.pl.testing.EmbeddedTomcat.main(EmbeddedTomcat.java:166)
LifecycleException:  Protocol handler initialization failed:
java.lang.ClassNotFoundException: Can't find any SSL implementation
at
org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:10
04)
at org.apache.catalina.startup.Embedded.start(Embedded.java:999)
at com.bdna.pl.testing.EmbeddedTomcat.startTomcat(EmbeddedTomcat.java:92)
at com.bdna.pl.testing.EmbeddedTomcat.main(EmbeddedTomcat.java:166)

The code snippet that i use to create a connector. Here embedded is instance
of Embedded class.

// Assemble and install a default HTTP connector
    Connector connector =
      embedded.createConnector(null, 8080, false);
    embedded.addConnector(connector);

  //This code fails
  Connector sslConnector =
      embedded.createConnector(null, 8443, true);
    embedded.addConnector(sslConnector);

thanks

abhijat

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




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


Mime
View raw message