2 Replies Latest reply on Jun 28, 2002 8:11 AM by blowagie

    jBoss + Catalina + SSL

    blowagie

      Hello,

      I tried to combine jBoss with Catalina over SSL.
      I followed every step in the FAQ and Forum I could find,
      but I stranded here:
      <A HREF="http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t=forums/ entry 1
      and
      <A HREF="http://www.jboss.org/modules/bb/index.html?module=bb&op=viewtopic&t=forums/ entry 2

      I get the same error as described in the Forum, so I changed class
      org.jboss.web.catalina.security.SSLServerSocketFactory:

      public ServerSocket createSocket(int port, int backlog, InetAddress ifAddress)
      throws IOException
      {

      if (socketFactory == null) throw new IOException("the socketFactory is null!");
      return socketFactory.createServerSocket(port, backlog, ifAddress);
      }

      Now I get:
      11:11:37,458 INFO [STDOUT] Apache Tomcat/4.0.3
      11:11:37,520 INFO [Engine] HttpConnector Opening server socket on all host IP addresses
      11:11:37,534 ERROR [EmbeddedCatalinaServiceSX] Starting failed
      LifecycleException: null.open: java.io.IOException: the socketFactory is null!

      So I was able to pinpoint the error: for some reason the socketFactory in class
      SSLServerSocketFactory is null. Can any of you help me any furher?

      Bruno

        • 1. Re: jBoss + Catalina + SSL
          blowagie

          Some more info about the problem:
          In class SSLServerSocketFactory, there is an attempt
          to retrieve the SecurityDomain with a lookup for
          jndiName = java:/jaas/RMI+SSL

          This returns an object of class
          org.jboss.security.plugins.JaasSecurityManager
          instead of a class implementing SecurityDomain.

          Is this a bug in jBoss or do I have an error in
          my configuration files?

          • 2. Re: jBoss + Catalina + SSL
            blowagie

            OK, it was a configuration error.
            I had to change this in the service.xml:



            org.jboss.security.plugins.JaasSecurityDomain




            jboss.security:service=JaasSecurityManager



            /staff/arc/blowagie/.keystore
            pas123