Monday, September 12, 2005

Fixed Weblogic Apache Bridge CSS Mimetype

After switching our jsp pages to render in w3c transitional mode (by adding the doctype to our pages), the css files stopped working in firefox. I found that the css files were being served with an incorrect mime-type of text/html instead of the required text/css from the firefox page info. (IE apparently guesses the mimetype for you, which is against the w3c spec but get's your pages to show correctly.)

Our first check was the Apache config, which appeared correct. Next was a web search where I found some links to the apache weblogic bridge. The bridge incorrectly places a text/html mimetype on everything. We fixed this by putting the mime mapping into the web.xml file of our webapp. Everything works beautifully again!

Here's the mapping that needs to be added:



Anonymous said...

Thanks a lot for that comment. It was exactly what I needed for our Weblogic installation.

Tommaso Torti said...

Thanks a lot, it works also for me.

Anonymous said...

awesome. thanks man!

VeLeNo said...

Excelent, really really thanks... even this problem was solve four years ago it was so useful your blog

Term Papers said...

I have been visiting various blogs for my term papers writing research. I have found your blog to be quite useful. Keep updating your blog with valuable information... Regards