zengkid / SmartTomcat

The Tomcat plugin for Intellij IDEA
Apache License 2.0
125 stars 56 forks source link

SSL port forced to 8443 #107

Closed leopoldhub closed 1 year ago

leopoldhub commented 1 year ago

Describe the bug I have configured one https port per http port in the tomcat server.xml. When I run an instance on the 8080 port (configured with https 8440 port), everything works fine, but when I run a second instance on the 8081 port (configured with https 844 port), tomcat seys that the port 8443 is already in use (it should not since I dont want to use it)

Details

instance 1

14-Jun-2023 10:13:44.425 INFOS [main] org.apache.coyote.AbstractProtocol.init Initialisation du gestionnaire de protocole ["http-nio-8081"] 14-Jun-2023 10:13:44.456 INFOS [main] org.apache.coyote.AbstractProtocol.init Initialisation du gestionnaire de protocole ["https-openssl-nio-8443"] 14-Jun-2023 10:13:44.986 INFOS [main] org.apache.catalina.startup.Catalina.load L'initialisation du serveur a pris [1367] millisecondes

instance 2

14-Jun-2023 10:14:29.491 INFOS [main] org.apache.coyote.AbstractProtocol.init Initialisation du gestionnaire de protocole ["http-nio-8080"] 14-Jun-2023 10:14:29.535 INFOS [main] org.apache.coyote.AbstractProtocol.init Initialisation du gestionnaire de protocole ["https-openssl-nio-8443"] 14-Jun-2023 10:14:29.541 GRAVE [main] org.apache.catalina.util.LifecycleBase.handleSubClassException Echec d'initialisation du composant [Connector[HTTP/1.1-8443]]

my server.xml configuration

<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8440" /> <Connector SSLEnabled="true" connectionTimeout="20000" keystoreFile="xxxxxx" keystorePass="xxxxxx" maxThreads="150" port="8440" protocol="org.apache.coyote.http11.Http11NioProtocol" schema="https" sslProtocol="TLS"/> <Connector port="8081" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8441" /> <Connector SSLEnabled="true" connectionTimeout="20000" keystoreFile="xxxxxx" keystorePass="xxxxxx" maxThreads="150" port="8441" protocol="org.apache.coyote.http11.Http11NioProtocol" schema="https" sslProtocol="TLS"/>

Intellij & SmartTomcat Version (Help -> About copy & paste below)

IntelliJ IDEA 2023.1.2 (Community Edition) Build #IC-231.9011.34, built on May 16, 2023 Runtime version: 17.0.6+10-b829.9 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 2024M Cores: 8 Registry: debugger.new.tool.window.layout=true ide.experimental.ui=true

Non-Bundled Plugins: com.poratu.idea.plugins.tomcat (4.5.0)

Kotlin: 231-1.8.21-IJ9011.34