You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the ResourceHttpRequestHandler returns a 404 NOT FOUND when a resource is requested for which ServletContext#getMimeType() returns null. This causes severe issues when common files have no associated mime type configured in the server, which might be avoidable by using some generic mime type and/or by trying an alternative approach like the Java Activation framework to determine the mime type if the servlet context can't.
I ran into this on a WebLogic 10.3.2 server, which didn't even return a mime type for .gif, .png and .js files. Not sure if this was caused by a misconfiguration of the server or if WebLogic really doesn't have any pre-configured mime types for these files, but now the only solution was to add a bunch of mime type mappings to the web.xml.