private static List < URL > hackForWeblogic ( FilterConfig config ) { List < URL > urls = new ArrayList <> ( ) ; Set libJars = config . getServletContext ( ) . getResourcePaths ( "/WEB-INF/lib" ) ; for ( Object jar : libJars ) { try { urls . add ( config . getServletContext ( ) . getResource ( ( String ) jar ) ) ; } catch ( MalformedURLException e ) { LOGGER . warn ( "Failed to get resource: " + jar ) ; } } addClassesUrl ( config , urls ) ; return urls ; }
Maybe this is a hack for other containers too?? Maybe this is not a hack at all?