Try adding the following mime type to the list at the end of server/default/deploy/jbossweb-tomcat55.sar/conf/web.xml:
<mime-mapping> <extension>bat</extension> <mime-type>application/octet-stream</mime-type> </mime-mapping>
I added the "bat" mime type in the Web.xml at that location. and restarted/re-published the JBoss/ Application. It still displays the .bat file content in the Browser window!
Do I have to follow any specific steps to make sure that the modified web.xml is in effect!
I verified that the App.war file was updated with current time stemp, so system did proper cleanup while publishing the web app.
I think you are running into a browser caching problem. Either update the timestamp on your bat file and then refresh the browser, or try another bat file.
Hey Peter, Thank you so much! It worked for me!
I just renamed the bat file and redeploy and restert the borwser and it worked.
Also I placed the mime type tag in our Application's WEB-INF/web.xml file rather than the tomcat's web.xml. So it will work out of the box even on those jboss server which does not have this setting.