简体   繁体   English

如何为Tomcat禁用HTTPS

[英]How to disable https for tomcat

I didn't do any change but today, after turning on my computer, I'm not able to start Liferay portal...I keep getting 我没有做任何更改,但是今天,在打开计算机后,我无法启动Liferay门户...我不断

SEVERE: Catalina.start:
LifecycleException: service.getName(): "Catalina"; Protocol handler start fail
ed: java.io.FileNotFoundException: C:\Users\Martin\.keystore

I think I didn't do any change there, therefore I really don't know, how to fix it... I will appreciate any advice. 我想我在那里没有进行任何更改,因此我真的不知道如何解决它……我将不胜感激。

I don't want any HTTPS for tomcat - I just want to start my AS 我不需要任何用于tomcat的HTTPS-我只想启动我的AS

Go to your tomcat home directory and find file server.xml (it usualy located in conf folder). 转到您的tomcat主目录并找到文件server.xml (通常位于conf文件夹中)。 There you'll need to find https connector configuration. 在这里,您需要找到https连接器配置。 It looks like this: 看起来像这样:

<Connector port="8443" ... SSLEnabled="true" scheme="https" secure="true" sslProtocol="TLS" ... />

Comment out this configuration line. 注释掉此配置行。

You'll find a Connector reference in conf/server.xml , which most likely is pointing to the keystore you name. 您可以在conf/server.xml找到一个连接器引用,该引用很可能指向您命名的密钥库。 Deactivate that connector and you should be fine 停用该连接器,您就可以了

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM