Junior Dussouillez created NETBEANS-4768:
--------------------------------------------

             Summary: Tomcat server status not recognized after enabling SSL
                 Key: NETBEANS-4768
                 URL: https://issues.apache.org/jira/browse/NETBEANS-4768
             Project: NetBeans
          Issue Type: Bug
          Components: serverplugins - Tomcat
    Affects Versions: 12.0
         Environment: Product Version: Apache NetBeans IDE 12.0
Java: 11.0.8; OpenJDK 64-Bit Server VM 11.0.8+10-post-Ubuntu-0ubuntu118.04.1
Runtime: OpenJDK Runtime Environment 11.0.8+10-post-Ubuntu-0ubuntu118.04.1
System: Linux version 4.15.0-112-generic running on amd64; UTF-8; en_US (nb)
User directory: /home/junior/.netbeans/12.0
Cache directory: /home/junior/.cache/netbeans/12.0
            Reporter: Junior Dussouillez


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 :

{code:xml}
<!-- Before (server status detected correcly) -->
<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" />
{code}

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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to