-
1. Re: Not able to set global mime-mapping
alllle Jun 1, 2012 1:35 PM (in response to alllle)Also want to add that I understand you can add mime-mapping in the web.xml file of each application. But I'm looking for a global solution.
Thanks!
-
2. Re: Not able to set global mime-mapping
ctomc Jun 2, 2012 8:12 AM (in response to alllle)hi,
mime-mapping is complex field and not resource.
that is why it has its own operation handlers add-mime/remove-mime to handle its value.
what are you trying to achive can be done by command:
/subsystem=web/configuration=container:add-mime(name=manifest,value="text/cache-manifest")
Just bit of a warning when using this, there was a bug in 7.1.1 when you added mime type that prevented server to start.
so please use 7.1.2 or 7.2 nightly builds where this is fixed.
--
tomaz
-
3. Re: Not able to set global mime-mapping
alllle Jun 4, 2012 11:40 AM (in response to ctomc)The command worked which inserts the following line to the configuration file:
<configuration> <mime-mapping name="manifest" value="text/cache-manifest"/> </configuration> And just as you mentioned, this prevents the server from startup. I'm using EAP v6 beta 2, apparently the fix is not included in this release.
Thank you for the accurate reply.