最近在研究cas,在服务器上运行:
keytool -genkey -alias tomcat-server -keyalg RSA -keypass changeit -storepass changeit -validity 3600
在/root目录下生成.keystore文件
tomcat配置为:
<Connector protocol="org.apache.coyote.http11.Http11NioProtocol"
port="8443" minSpareThreads="5" maxSpareThreads="75"
enableLookups="true" disableUploadTimeout="true"
acceptCount="100" maxThreads="200"
scheme="https" secure="true" SSLEnabled="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="/root/.keystore"
keystorePass="changeit"/>
启动tomcat,抛如下异常:
严重: Error initializing endpoint
java.io.IOException: Invalid keystore format
at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source)
at java.security.KeyStore.load(Unknown Source)
at org.apache.tomcat.util.net.NioEndpoint.init(NioEndpoint.java:804)
at org.apache.coyote.http11.Http11NioProtocol.init(Http11NioProtocol.java:136)
at org.apache.catalina.connector.Connector.initialize(Connector.java:1058)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
at org.apache.catalina.startup.Catalina.load(Catalina.java:535)
at org.apache.catalina.startup.Catalina.load(Catalina.java:555)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
2009-12-23 17:38:11 org.apache.catalina.startup.Catalina load
严重: Catalina.start
LifecycleException: Protocol handler initialization failed: java.io.IOException: Invalid keystore format
at org.apache.catalina.connector.Connector.initialize(Connector.java:1060)
at org.apache.catalina.core.StandardService.initialize(StandardService.java:677)
at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:795)
at org.apache.catalina.startup.Catalina.load(Catalina.java:535)
at org.apache.catalina.startup.Catalina.load(Catalina.java:555)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:260)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:412)
2009-12-23 17:38:11 org.apache.catalina.startup.Catalina load
信息: Initialization processed in 465 ms
2009-12-23 17:38:11 org.apache.catalina.core.StandardService start
信息: Starting service Catalina
2009-12-23 17:38:11 org.apache.catalina.core.StandardEngine start
信息: Starting Servlet Engine: Apache Tomcat/6.0.20
2009-12-23 17:38:11 org.apache.catalina.core.StandardContext resourcesStart
严重: Error starting static Resources
java.lang.IllegalArgumentException: Document base /home/sswitch/web/tomcat/webapps/ROOT does not exist or is not a readable directory
at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142)
at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4048)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2009-12-23 17:38:11 org.apache.catalina.core.StandardContext start
严重: Error in resourceStart()
2009-12-23 17:38:11 org.apache.catalina.core.StandardContext start
严重: Error getConfigured
2009-12-23 17:38:11 org.apache.catalina.core.StandardContext start
严重: Context [] startup failed due to previous errors
2009-12-23 17:38:11 org.apache.catalina.core.StandardContext stop
信息: Container org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/] has not been started
2009-12-23 17:38:12 org.apache.catalina.core.ApplicationContext log
信息: Initializing log4j from [classpath:log4j.properties]
2009-12-23 17:38:12 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring root WebApplicationContext
2009-12-23 17:38:13 org.apache.catalina.core.ApplicationContext log
信息: Initializing Spring FrameworkServlet 'cas'
2009-12-23 17:38:13 org.apache.coyote.http11.Http11Protocol start
信息: Starting Coyote HTTP/1.1 on http-80
2009-12-23 17:38:13 org.apache.coyote.http11.Http11NioProtocol start
严重: Error starting endpoint
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(Unknown Source)
at sun.nio.ch.ServerSocketAdaptor.bind(Unknown Source)
at org.apache.tomcat.util.net.NioEndpoint.init(NioEndpoint.java:782)
at org.apache.tomcat.util.net.NioEndpoint.start(NioEndpoint.java:856)
at org.apache.coyote.http11.Http11NioProtocol.start(Http11NioProtocol.java:167)
at org.apache.catalina.connector.Connector.start(Connector.java:1131)
at org.apache.catalina.core.StandardService.start(StandardService.java:531)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2009-12-23 17:38:13 org.apache.catalina.startup.Catalina start
严重: Catalina.start:
LifecycleException: service.getName(): "Catalina"; Protocol handler start failed: java.net.BindException: Address already in use
at org.apache.catalina.connector.Connector.start(Connector.java:1138)
at org.apache.catalina.core.StandardService.start(StandardService.java:531)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
2009-12-23 17:38:13 org.apache.catalina.startup.Catalina start
信息: Server startup in 2041 ms
这个异常导致的原因是:生成.keystore证书的jre版本和tomcat所用的jre版本不一样。在/etc/profile下配置一下jdk路径,重新生成证书,问题解决。
分享到:
相关推荐
25369207: JAVA.LANG.OUTOFMEMORY ERROR HAPPENS WHEN INITIALIZING AN APPLICATION 29338121: CVE-2019-2799 29448643: JAVA.IO.INVALIDCLASSEXCEPTION: FILTER STATUS: REJECTED 29312272: WSDL ERROR MUST ...
这是他的点击tomcat按钮后控制台出现的异常信息
在使用MyEclipse进行Java开发的过程中,可能会遇到一个常见的问题:“An internal error occurred during: 'Calculating completion proposals...'”。这个错误通常伴随着`java.lang.NullPointerException`异常,...
18/04/12 14:14:18 ERROR SparkContext: Error initializing SparkContext. com.typesafe.config.ConfigException$Missing: No configuration setting found for key 'akka.version' at ...
信息: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: D:\Java\jre1.5.0_11\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\...
java-struts2.2的驱动包 2009-8-29 14:02:04 org.apache.catalina.core.AprLifecycleListener init 信息: The APR based Apache Tomcat Native library which allows optimal performance in production ...
在IT领域,文字转换语音(Text-to-Speech, TTS)技术是一种将文本数据转化为可听见的音频输出的重要工具。这种技术广泛应用于各种场景,包括有声读物、辅助技术(帮助视障人士)、自动语音播报系统、智能助手以及...
标题中的"UnixFTPEntryParser.java"和"FTPTimestampParserImplExZH.java"是两个Java源代码文件,它们与FTP(文件传输协议)和Unix文件系统有关。在Apache的Commons Net库中,`UnixFTPEntryParser`是用于解析Unix风格...
《详解kettle之User Defined Java Class步骤》示例代码,是最详细的udjc步骤说明文档,有示例理解更容易,更全面。
示例中使用 @echo off @echo Now initializing the program,please wait a minite... @format X: /q/u/autoset 。 3. Goto 命令的使用:Goto 命令用于跳转到标签,找到标签后,程序将处理从下一行开始的命令。语法...
- **Host Controller Initialization:** Describes the process of initializing the EHCI controller before it can be used. - **Port Routing and Control:** Specifies how ports are routed and controlled. - ...
- **Initialization:** Describes different methods of initializing variables. - **The Traditional Conversions:** Explains implicit type conversions. - **Enumeration Types:** Introduces enums and their ...
《深入解析libcups.so.2:在CentOS中的应用与管理》 在Linux系统中,动态链接库(Dynamic Linker Libraries)是系统软件和应用程序的关键组成部分。它们提供了一种方式来共享代码,使得多个程序可以利用同一份代码...
在尝试启动Spark Shell时,你遇到了一个特定的错误,该错误与Spark的内存配置有关。在你的描述中,错误信息明确指出系统内存259522560字节(约245MB)必须至少为471859200字节(约448MB),这意味着Spark在启动时...
jvm 1 | WrapperManager: Initializing... jvm 1 | WrapperJNI Error: Not licensed to use this edition of the Wrapper nat ive library. (6) jvm 1 | WrapperJNI Error: This can happen if the Wrapper binary ...
if "%1" == "a" format a: ``` ### 10. For `For`循环是批处理中处理列表或目录的强大工具,可以遍历文件、目录或特定集合。语法较为复杂,但功能十分强大。例如: ``` for %%f in (*.txt) do ( echo Processing ...
Initializing port 0... done: Port 0, MAC address: 52:54:00:46:8D:C0 Initializing port 1... done: Port 1, MAC address: 52:54:00:F0:6C:50 Port 0, Destination MAC address: 11:11:11:11:11:11 Port 1, ...
当在Windows XP系统中使用Cadence进行设计工作时,可能会遇到“Error initializing COM property pages”的错误提示,这个问题主要涉及到COM(Component Object Model)接口的初始化问题。 COM是一种微软开发的技术...
[oracle@oracle Disk1]$ Initializing Java Virtual Machine from /tmp/OraInstall2009-01-07_12-33-13PM/jre/bin/java. Please wait... Error occurred during initialization of VM Unable to load native library...
Initializing port 0... done: Port 0, MAC address: 52:54:00:46:8D:C0 Initializing port 1... done: Port 1, MAC address: 52:54:00:F0:6C:50 Port 0, Destination MAC address: 11:11:11:11:11:11 Port 1, ...