0 Replies Latest reply on May 25, 2002 1:18 PM by Sean Howell

    SSLServerSocketFactory NullPointerException

    Sean Howell Newbie

      Hi guys, SSL on 3.0, can it be done?

      Here's where I'm at, I have these mbeans in my tomcat4-service.xml (below)

      Problem : as soon as the SSLServerSocketFactory fires up it throws a nullpointer !






      file:/c:///.keystore
      secret
      jboss.security:service=JaasSecurityManager




      &catalina.home;



















      ----------------------8<-------------------------
      03:04:18,701 INFO [EmbeddedCatalinaServiceSX] Creating
      03:04:18,701 INFO [EmbeddedCatalinaServiceSX] Created
      03:04:18,716 INFO [EmbeddedCatalinaServiceSX] Starting
      03:04:18,716 INFO [MainDeployer] Adding deployer: org.jboss.web.catalina.EmbeddedCatalinaServiceSX@3e1bc8
      03:04:20,211 INFO [JaasSecurityManagerService] Created securityMgr=org.jboss.security.plugins.JaasSecurityManager@df83e5
      03:04:20,211 INFO [JaasSecurityManagerService] setCachePolicy, c=org.jboss.util.TimedCachePolicy@4c6320
      03:04:20,211 INFO [JaasSecurityManagerService] Added RMI+SSL, org.jboss.security.plugins.SecurityDomainContext@ffd135 to map
      03:04:20,211 INFO [STDOUT] Apache Tomcat/4.0.3
      03:04:20,242 INFO [Engine] HttpConnector Opening server socket on all host IP addresses
      03:04:20,242 INFO [Engine] HttpConnector[8080] Starting background thread
      03:04:20,565 INFO [Engine] HttpProcessor[8080][0] Starting background thread
      03:04:20,565 INFO [Engine] HttpProcessor[8080][1] Starting background thread
      03:04:20,581 INFO [Engine] HttpProcessor[8080][2] Starting background thread
      03:04:20,581 INFO [Engine] HttpConnector Opening server socket on all host IP addresses
      03:04:20,612 ERROR [EmbeddedCatalinaServiceSX] Starting failed
      java.lang.NullPointerException
      at org.jboss.web.catalina.security.SSLServerSocketFactory.createSocket(SSLServerSocketFactory.java:74)

      at org.jboss.web.catalina.security.SSLServerSocketFactory.createSocket(SSLServerSocketFactory.java:57)
      at org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.java:948)
      at org.apache.catalina.connector.http.HttpConnector.initialize(HttpConnector.java:1128)
      at org.apache.catalina.startup.Embedded.start(Embedded.java:962)
      …………





      So there you go, I tried the native catalina SSLServerSocketFactory as well, but that’s way off.

      Has anyone been through this mill?

      Cheers

      Sean