@ SuppressWarnings ( "rawtypes" ) public Class getException ( ) { try { return Class . forName ( errorParam , true , Thread . currentThread ( ) . getContextClassLoader ( ) ) . newInstance ( ) . getClass ( ) ; } catch ( Exception e ) { return null ; } }
Use of the WAR class loader is correct .