Author: rareddy
Date: 2009-05-07 15:40:00 -0400 (Thu, 07 May 2009)
New Revision: 881
Modified:
trunk/server/src/main/java/com/metamatrix/platform/security/audit/destination/AbstractAuditDestination.java
Log:
TEIID-543: Not sure exactly underlying reason, but this is regression from changing the
class look up, reverting back to original methods as providing dynamic classloading
support here is not required.
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
18:17:30 UTC (rev 880)
+++
trunk/server/src/main/java/com/metamatrix/platform/security/audit/destination/AbstractAuditDestination.java 2009-05-07
19:40:00 UTC (rev 881)
@@ -56,7 +56,7 @@
}
try {
LogManager.logTrace(LogSecurityConstants.CTX_AUDIT, new
Object[]{"Initializing audit message format class
\"",formatterClassName,"\""}); //$NON-NLS-1$ //$NON-NLS-2$
- Class formatterClass =
Thread.currentThread().getContextClassLoader().loadClass(formatterClassName);
+ Class formatterClass = Class.forName(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