Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/389.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 经过一段时间后,正在刷新系统属性_Java_Linux_Properties_Centos - Fatal编程技术网

Java 经过一段时间后,正在刷新系统属性

Java 经过一段时间后,正在刷新系统属性,java,linux,properties,centos,Java,Linux,Properties,Centos,我们有CentOS服务器和部署了WAR应用程序的Tomcat 经过半年的无问题工作,我们得到了一个例外: org.bouncycastle.cms.CMSAttributeTableGenerationException: Validation failed for the target, %CERT INFO HERE% For online validation by CRLDP parameter 'com.sun.security.enableCRLDP' (Oracle)

我们有CentOS服务器和部署了WAR应用程序的Tomcat

经过半年的无问题工作,我们得到了一个例外:

org.bouncycastle.cms.CMSAttributeTableGenerationException: Validation failed for the target, %CERT INFO HERE% 
  For online validation by CRLDP parameter 'com.sun.security.enableCRLDP' (Oracle) 
  or 'com.ibm.security.enableCRLDP' (IBM) must be set 'true' to enable 
  or 'ocsp.enable' must be set 'true' (OCSP), 
  or CRL passed for offline validation
它说系统属性
com.sun.security.enableCRLDP
com.ibm.security.enableCRLDP
ocsp.enable
中的一个属性没有设置为
true
,但关键是WAR应用程序在启动时设置了这些道具

System.setProperty("com.sun.security.enableCRLDP", "true");
log.debug("Property com.sun.security.enableCRLDP enabled");

System.setProperty("ocsp.enable", "true");
log.debug("Property ocsp.enable enabled");
tomcat重新启动后,它开始工作,没有任何问题。 所以,看起来,某物或某人出于某种原因改变了CentOS的系统属性

我100%确信tomcat和CentOS在异常之前并没有重新启动,服务器上并没有部署任何东西

什么可以在一段时间后重置系统道具或作为某个过程的结果? 是否有任何机制可以避免这是未来


另外,我知道我可以将这个props设置为true作为默认值,但我想先尝试构建独立的解决方案。

据我所知,系统属性是JVM实例的本地属性。对环境变量进行更改的另一个应用程序或JVM实例不应反映在已经运行的JVM实例中。