I have migrated one of my web applications from Weblogic 10.3.6 to JBoss 7.1. For some reason, none of my css-files packaged inside the war-file is working anymore. Take a look at the consol message:
This is the only message I get, and it is only a warning, not an error. Even with that warning, I would expect the CSS to work. I can also find all of the css files in the resources tab, in the Chrome debugger.
The exact same thing happens in other browsers as well.
CSS files downloaded through CDNs are evaluated however. Any ideas whatsoever how to debug this?
EDIT:
All CSS files are available in dev tools. Both in resources tab, and network tab. The full content of each file is available. They seem to all be there, but not be evaluated.
EDIT 2:
After further reading in the network tab, I can see a difference between my old deployment (weblogic) and the new (JBoss). Even though I specify type="text/css"
, the css files are retrieved with type="text/html"
in the JBoss deployment. This question here offers a myriad of possible solutions, none of which I have been able to implement yet.
This answer states that:
"Then something else about your server is making that stylesheet come with the wrong content type"
Any ideas at all on what that "something else" can be?