配置tomcat连接器后,启动服务报错“No Certificate file specified or invalid file format"异常

1:原来的配置是

1 <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
2                maxThreads="150" scheme="https" secure="true"
3                clientAuth="false" sslProtocol="TLS" keystoreFile="conf/.keystore" keystorePass="123456"/>

2:保存配置,启动服务器,报如下异常:

java.lang.Exception: No Certificate file specified or invalid file format
at org.apache.tomcat.jni.SSLContext.setCertificate(Native Method)
at org.apache.tomcat.util.net.AprEndpoint.init(AprEndpoint.java:835)
at org.apache.coyote.http11.Http11AprProtocol.init(Http11AprProtocol.java:109)
at org.apache.catalina.connector.Connector.initialize(Connector.java:1141)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:703)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:843)
at org.apache.catalina.startup.Catalina.load(Catalina.java:538)
at org.apache.catalina.startup.Catalina.load(Catalina.java:562)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:261)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)

原因:tomcat版本问题,我用的是tomcat6_45版本,默认使用apr协议,解决办法:

配置修改为:

1   <Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true"
2                maxThreads="150" scheme="https" secure="true"
3                clientAuth="false" sslProtocol="TLS" keystoreFile="conf/.keystore" keystorePass="123456"/>

再次重启服务器,就没有问题了。

时间: 2024-10-05 20:33:30

配置tomcat连接器后,启动服务报错“No Certificate file specified or invalid file format"异常的相关文章

ceph升级到10.2.3 版本启动服务报错:Unknown lvalue &#39;TasksMax&#39; in section &#39;Service&#39;

#### ceph软件包升级完成,执行命令重启服务 sudo systemctl restart [email protected]"$HOSTNAME" #### 故障现象 服务可以启动,启动后显示有报错信息: Nov 23 17:14:45 ceph-6-12 systemd[1]:        [/usr/lib/systemd/system/[email protected]:18] Unknown lvalue 'TasksMax' in section 'Service'

【亲测有效】Centos安装完成docker后启动docker报错docker: unrecognized service的两种解决方案

今天在学习Docker的时候 使用yum install docker安装完后启动不了,报错如下: [[email protected] ~]# service docker start docker: unrecognized service 一直停留在以上步骤,如果有遇到和我一样类似问题的小伙伴可以按照如下方法进行安装,即可安装成功~~ 方法一: 先移除docker [[email protected] ~]# yum remove docker 再移除docker-selinux(如果你之

COGNOS10启动服务报错 问题解决

今天安装了在我的机器上(WIN7 64位)安装了COGNOS 10.2, 然后进入configuration各种测试都通过了,但是启动服务的时候一直不成功(具体错误没有记录下来...) 后来我按网上帖子的意见,把以前安装的JAVA全卸载了,然后重装了一遍Cognos BI Server 10.2 64Bit, 之后用COGNOS自带的jre设置了JAVA_HOME变量: JAVA_HOME: C:\Program Files\ibm\cognos\c10_64\bin64\jre\6.0 之后启

Docker 安装完启动服务报错

[[email protected]1 ~]# docker images Cannot connect to the Docker daemon. Is the docker daemon running on this host? [[email protected]-1 ~]# systemctl start docker.service Job for docker.service failed because a timeout was exceeded. See "systemctl

gulp启动服务报错

1.mongodb数据库没启动 2.nodemon没有安装

Appium启动服务报错

错误信息如下: error: Could not find a device to launch. You requested 'iPhone 6 (8.4)', but the available devices were: ["iPad 2 (9.3) [D9ACBD66-90B7-4457-8FEB-36A6EC0288C1] (Simulator)","iPad Air (9.3) [9C4C4EED-F452-4849-B5D7-5CA7BB518304] (Sim

linux 使用systemctl 启动服务报错: Error: No space left on device

By default, Linux only allocates 8192 watches for inotify, which is ridiculously low. And when it runs out, the error is also No space left on device, which may be confusing if you aren't explicitly looking for this issue. vi /etc/sysctl.conf  增加  fs

lnmp下启动mysql报错 The server quit without updating PID file

启动时候错误代码:Starting MySQL[FAIL.] The server quit without updating PID file (/var/run/mysqld/mysqld.pid). ... failed! lnmp作者军哥给的解答是:     这里面没有任何错误信息,按[FAIL.] The server quit without updating PID file (/var/run/mysqld/mysqld.pid     这个看可能又另外安装了mysql或存在其他

Centos 7上启动 vsftp报错处理

系统环境:CentOS Linux release 7.2.1511 (Core) yum方式安装ftp server: yum install vsftpd db4-utils ftp 然后根据具体需求和业务场景等进行配置,我这里是禁止匿名用户登录,配置ok后启动ftp报错: ...由于是系统是Cent 7,与6的有些区别,所以看了下报错信息,后半部分引起了我注意,故试着执行了下: ..这些信息表示基本看不懂了,看来到了在网上找答案的时候了,百度搜了下,进入一篇博客,大致看了下,说是 cent