When i try to enable the SSL (editing server.xml to enable port:8443 as HTTPS) in Windows 7, its not getting enabled. sometimes it shows (connected to localhost..) and remains hanged. I'm using Windows 7 64-bits/4GB RAM Tomcat 6.0(netbeans bundle), jre 1.6(64-bit).
相关问题
- Mechanize getting “Errno::ECONNRESET: Connection r
- Tomcat and SSL Client certificate
- Can we add four protocols to ServicePointManager.S
- Can't configure nginx as a proxy for tomcat wi
- .NET Core gives unknown error while processing HTT
I'm running into the same problem, so far I see an error regarding to the certificate. The way I fixed is using the non windows version. It works smooth but the drawback is that no service possible for running in standalone.
I made it work on my case, the problem is the protocol used. In the file server.xml change the connector option protocol="HTTP/1.1" to protocol="org.apache.coyote.http11.Http11NioProtocol"
The section should look something like following.
I encountered the problem even after I installed the tomcat for 32-bit windows. Finally I found a way to solve it, that is to delete the
tcnative-1.dll
file under${CATALINA_HOME}/bin
Solution: Update the server.xml file as follows:
Please note that i changed the protocol from
"HTTP/1.1"
to"org.apache.coyote.http11.Http11Protocol"
This should fix the problem.You can get some detail in the output by adding the following java options. Better do that in catalina.cmd and run directly this command file from the cmd prompt (easier that digging for the log if you have set tomcat as a service - in which case, stop the service beforehand until you get this sorted out to free the ports).