Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Can't add an excel mime type in Tomcat web.xml file!

843841Feb 28 2006
Hello!

I have the following problem: I use Apache Tomcat v5.0.
I've to modify web.xml in order to add support for excel mime type.
After I modify the web.xml from conf folder Tomcat has a very strange behaviour. This is what I did:
- stop Tomcat server
- add the following entry in the xml
<mime-mapping>
<extension>xls</extension>
<mime-type>application/vnd.ms-excel</mime-type>
</mime-mapping>
- restart the server

After that I have noticed that the entry from the xml file was deleted. I have done this for several times and in all cases the mime mapping corresponding to excel files was automaticaly deleted from the web.xml
Is this a Tomcat v5.0 bug?
Can you help me and give me an advice?

Thank you very much
With best regards,
Sorin
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 28 2006
Added on Feb 28 2006
0 comments
367 views