Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-4768

Tomcat server status not detected after enabling SSL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 12.0
    • None
    • serverplugins - Tomcat

    Description

      When starting Tomcat 9.0.31 (same issue with 9.0.37) with SSL enabled, the Tomcat server is run correctly but Netbeans does not detect it and display an error "Starting of Tomcat failed" after a 120 seconds timeout.
      Seems to be related to NETBEANS-4047 and NETBEANS-3903

      Everything works fine without SSL.

      The only changes I made are in my conf/server.xml file :

      <!-- Before (server status detected correctly) -->
      <Connector
              port="8080"
              protocol="HTTP/1.1"
              connectionTimeout="20000"
              redirectPort="8443" />
      
      <!-- After (server is not detected as running) -->
      <Connector
              port="8080"
              protocol="HTTP/1.1"
              connectionTimeout="20000"
              redirectPort="8443"
              SSLEnabled="true"
              sslProtocol="TLS"
              scheme="https"
              secure="true"
              keyAlias="localhost-ssl"
              keystoreFile="./conf/localhost-ssl/localhost-ssl.jks"
              keystorePass="123456" />
      

      The keystore contains a self signed certificate created using mkcert. I followed these steps to create it : https://stackoverflow.com/a/54527471/2611798

      Attachments

        1. tomcat_9.0.37_ssl_start.log
          6 kB
          Junior Dussouillez

        Activity

          People

            Unassigned Unassigned
            JR1447 Junior Dussouillez
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: