• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

CSS was ignored due to mime type mismatch - tomcat8.5.29  RSS feed

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have recently upgraded to Tomcat-8.5.29. Post this upgrade, my web app is not able to load the css and jpg,gif images.
I see below error message in IE developers tool.

SEC7113: CSS was not loaded due to mime type mismatch

I tried adding in my css file but with no success.

Any pointers to resolve the issue?
 
Bartender
Posts: 19807
93
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using Internet Explorer?
 
Sheriff
Posts: 5285
142
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim: The OP is using IE.

OP: What happens if you use other browsers?
 
Abhishek Naswale
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Tim: Yes, I am using IE
 
Abhishek Naswale
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Knute: I don't have option of using different browser as client has restricted environment.
 
Tim Holloway
Bartender
Posts: 19807
93
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Next question: Are you using IE 10 or higher?

Because there are major software vendors that outright refuse to support any older versions of IE. Opera, yes. Firefox, yes, Safari, no problem. But not IE8 or lower and sometimes not even IE9.

And when I say "major", one of them is one of the biggest names in software today
 
Abhishek Naswale
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried accessing the app in all versions of IE i.e. from IE5 to Edge. Same issue persists in all of them.
 
Sheriff
Posts: 23714
50
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And this CSS file: what MIME type did it have when you tried to download it?
 
Abhishek Naswale
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
@Paul: For every file in my project(jsp,css,java etc), I am getting mime type as "application/octet-stream"
 
Saloon Keeper
Posts: 9378
181
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Copied from this question on StackOverflow:

user3781952 wrote:

  • On your computer search for "regedit.exe" (go to the start menu and click on the search button on the top-right corner of the screen).
  • Once regedit opens up, on the left column click on "HKEY_CLASSES_ROOT" and then on ".css"
  • On the right column double-click on "Content Type". This will open up a dialog box.
  • In the dialog box change "value data" to "text/css".
  • Click "Ok" and that's it.

  •  
    Consider Paul's rocket mass heater.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!