開啟託管server報錯:Cannot read from policy store. Reason is PolicyStore Error

tolywang發表於2012-11-16

Oracle Fusion Middleware - Version: 11.1.1.2.0 and later [Release: Oracle11g and later ]
Oracle Weblogic Server - Version: 10.3.2 and later ]


報錯資訊類似:
oracle.security.jps.JpsRuntimeException: Cannot read from policy store.
at oracle.security.jps.internal.policystore.xml.XmlPolicyStore.buildFromFile(XmlPolicyStore.java:425)
at oracle.security.jps.internal.policystore.xml.XmlPolicyStore.(XmlPolicyStore.java:224)
at oracle.security.jps.internal.policystore.xml.XmlPolicyStoreProvider.getInstance(XmlPolicyStoreProvider.java:100)
at oracle.security.jps.internal.policystore.xml.XmlPolicyStoreProvider.getInstance(XmlPolicyStoreProvider.java:74)
at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.findServiceInstance(ContextFactoryImpl.java:139)

原因:

The file ${domain.home}/config/fmwconfig/system-jazn-data.xml is either incomplete and / or corrupted, therefore the error is produced due to an Unexpected end of Document error when the OPSS framework (included inside Fusion Middleware) is trying to read an XML.

The reasons for the corruption are typically difficult or impossible to determine. One possible cause is a machine crashes or reboot has occurred at the same time a product or application was writing / updating a configuration file.
解決方法:

1.    Shutdown the all the servers in the domain
2.    Copy the corrupted policy file from a backup location
copy ${oracle.home}/oracle_common/modules/oracle.jps_11.1.1/domain_config/system-jazn-data.xml to ${domain.home}/config/fmwconfig/system-jazn-data.xml.
3.    Restart all servers in the domain

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/35489/viewspace-749367/,如需轉載,請註明出處,否則將追究法律責任。

相關文章