Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
12.0
-
None
-
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.0Product 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
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