java 如何为tomcat禁用https

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26037054/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-11-02 09:11:09  来源:igfitidea点击:

How to disable https for tomcat

javatomcathttpsliferay

提问by Martin Dvoracek

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

回答by SimY4

Go to your tomcat home directory and find file server.xml(it usualy located in conf folder). There you'll need to find https connector configuration. It looks like this:

转到您的 tomcat 主目录并找到文件server.xml(它通常位于 conf 文件夹中)。在那里您需要找到 https 连接器配置。它看起来像这样:

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

Comment out this configuration line.

注释掉这个配置行。

回答by Olaf Kock

You'll find a Connector reference in conf/server.xml, which most likely is pointing to the keystore you name. Deactivate that connector and you should be fine

您将在 中找到一个连接器引用conf/server.xml,它很可能指向您命名的密钥库。停用该连接器,您应该没问题