Author: rareddy
Date: 2009-05-07 16:42:19 -0400 (Thu, 07 May 2009)
New Revision: 882
Modified:
trunk/server/src/main/java/com/metamatrix/platform/security/audit/destination/AbstractAuditDestination.java
Log:
TEIID-543: Reverting to previous, as this is a configuration issue
Modified:
trunk/server/src/main/java/com/metamatrix/platform/security/audit/destination/AbstractAuditDestination.java
===================================================================
---
trunk/server/src/main/java/com/metamatrix/platform/security/audit/destination/AbstractAuditDestination.java 2009-05-07
19:40:00 UTC (rev 881)
+++
trunk/server/src/main/java/com/metamatrix/platform/security/audit/destination/AbstractAuditDestination.java 2009-05-07
20:42:19 UTC (rev 882)
@@ -56,7 +56,8 @@
}
try {
LogManager.logTrace(LogSecurityConstants.CTX_AUDIT, new
Object[]{"Initializing audit message format class
\"",formatterClassName,"\""}); //$NON-NLS-1$ //$NON-NLS-2$
- Class formatterClass = Class.forName(formatterClassName);
+ ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
+ Class formatterClass = classLoader.loadClass(formatterClassName);
formatter = (AuditMessageFormat) formatterClass.newInstance();
} catch ( ClassNotFoundException e ) {
throw new AuditDestinationInitFailedException(e,
ErrorMessageKeys.SEC_AUDIT_0016,
PlatformPlugin.Util.getString(ErrorMessageKeys.SEC_AUDIT_0016, formatterClassName));
Show replies by date