This content has been marked as final.
Show 1 reply
-
1. Re: MIME Type Mismatch - JBoss AS 7.0
dotun.kolaolaleye Apr 9, 2014 5:49 AM (in response to esang)I know this is old, but someone might come looking just like I did... before I discovered the reason.
Apparently, protection offered by the <security-contstraint> tag of web.xml causes everything that matches the pattern specified in the <url-pattern> to be served as text/html from the server. So, if scripts and css are served from a url that matches the pattern, they'll be sent as text/html.
Try placing resources such as those outside the url pattern and that should solve the problem.