org.springframework.security.saml.metadata.ExtendedMetadataDelegate:destroy:178-销毁代表

时间:2016-06-24 05:04:12

标签: spring-security logback spring-saml

我有一个配置了SAML的spring应用程序用于身份验证。 它使用logback进行日志记录。日志记录仅发生一天左右,之后日志会自动停止,日志中包含以下消息:

[LOG] [org.apache.commons.logging.impl.Jdk14Logger:log:87] - Closing      WebApplicationContext for namespace 'dispatcherServlet-servlet': startup date [Wed Jun 22 04:50:14 UTC 2016]; parent: Root WebApplicationContext
[LOG] [org.springframework.security.saml.util.SAMLUtil:marshallMessage:390] - XMLObject already had cached DOM, returning that element
[LOG] [org.springframework.security.saml.util.SAMLUtil:marshallMessage:390] - XMLObject already had cached DOM, returning that element
[LOG] [org.springframework.security.saml.util.SAMLUtil:marshallMessage:390] - XMLObject already had cached DOM, returning that element
[LOG] [org.springframework.security.saml.util.SAMLUtil:marshallMessage:390] - XMLObject already had cached DOM, returning that element
[LOG] [org.springframework.security.saml.util.SAMLUtil:marshallMessage:390] - XMLObject already had cached DOM, returning that element
[LOG] [org.springframework.security.saml.util.SAMLUtil:marshallMessage:390] - XMLObject already had cached DOM, returning that element
[LOG] [org.springframework.security.saml.util.SAMLUtil:marshallMessage:390] - XMLObject already had cached DOM, returning that element
[LOG] [org.springframework.security.saml.util.SAMLUtil:marshallMessage:390] - XMLObject already had cached DOM, returning that element
[LOG] [org.springframework.security.saml.util.SAMLUtil:marshallMessage:390] - XMLObject already had cached DOM, returning that element
[LOG] [org.springframework.security.saml.util.SAMLUtil:marshallMessage:390] - XMLObject already had cached DOM, returning that element
[LOG] [org.springframework.security.saml.util.SAMLUtil:marshallMessage:390] - XMLObject already had cached DOM, returning that element
[LOG] [org.springframework.security.saml.util.SAMLUtil:marshallMessage:390] - XMLObject already had cached DOM, returning that element
[LOG] [org.springframework.security.saml.util.SAMLUtil:marshallMessage:390] - XMLObject already had cached DOM, returning that element
[LOG] [org.springframework.security.saml.util.SAMLUtil:marshallMessage:390] - XMLObject already had cached DOM, returning that element
[LOG] [org.springframework.security.saml.util.SAMLUtil:marshallMessage:390] - XMLObject already had cached DOM, returning that element
[LOG] [org.springframework.security.saml.util.SAMLUtil:marshallMessage:390] - XMLObject already had cached DOM, returning that element
[LOG] [org.springframework.security.saml.util.SAMLUtil:marshallMessage:390] - XMLObject already had cached DOM, returning that element
[LOG] [org.springframework.security.saml.util.SAMLUtil:marshallMessage:390] - XMLObject already had cached DOM, returning that element
[LOG] [org.apache.commons.logging.impl.Jdk14Logger:log:87] - ClosingRoot WebApplicationContext: startup date [Wed Jun 22 04:50:00 UTC 2016]; root of context hierarchy
[LOG] [org.springframework.security.saml.metadata.ExtendedMetadataDelegate:destroy:178] - Destroying delegate
[LOG] [org.springframework.security.saml.metadata.ExtendedMetadataDelegate:destroy:178] - Destroying delegate
[LOG] [org.springframework.security.saml.metadata.ExtendedMetadataDelegate:destroy:178] - Destroying delegate

我必须重新启动tomcat才能恢复日志记录。每次,日志记录仅以上述消息停止。所以,我怀疑SAML集成的东西。 有关如何解决此问题的任何指示都非常感谢。

1 个答案:

答案 0 :(得分:0)

这根本不是Spring或Spring SAML的问题。 我在logback配置中使用了相对文件路径。 看起来日志轮换无法与相对文件路径一起正常工作。

使用绝对文件路径解决了这个问题。