This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Grokking Bitcoin and have Kalle Rosenbaum on-line!
See this thread for details.
Win a copy of Grokking Bitcoin this week in the Cloud/Virtualization forum!
  • 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
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

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?
 
Saloon Keeper
Posts: 20643
122
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using Internet Explorer?
 
Sheriff
Posts: 5925
155
Chrome Eclipse IDE Java Postgres Database Ubuntu 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
Saloon Keeper
Posts: 20643
122
Android Eclipse IDE Java Linux Redhat Tomcat Server
  • 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: 24373
55
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: 10115
212
  • 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.

  •  
    Enjoy the full beauty of the english language. Embedded in this tiny ad:
    Create Edit Print & Convert PDF Using Free API with Java
    https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!