Hello.

I've a server running w2003k with IIS 6 and Tomcat 5.5.12. Also, I'm using
JK 1.2 to mapping tomcat for IIS.

All the system work fine, and very stable. However, when i try to download
some files (like .xls, .doc, .rar) from a application in Tomcar, the binary
contento f file is opened by Internet Explorer.

After a research on the web, I found something about the mime-mapping, that
I must put on the conf\web.xml file. I put the entries like this:

 

   <mime-mapping>

        <extension>xls</extension>

        <mime-type>application/vnd.ms-excel</mime-type>

    </mime-mapping>

    <mime-mapping>

        <extension>doc</extension>

        <mime-type>application/vnd.ms-word</mime-type>

    </mime-mapping>

 

But, even after restart the tomcat/iis won't work.

Other tests tha I' maked:

 

1- Try to download a xls file directly from IIS: Ex:
http://localhost/test.xls.    It work fine.

2- Try to download a xls file from um tomcat application, using tomcat. Ex:
http://localhost:8080/files/test.xls   It work fine.

3- try to download a xls file from tomcat application, using integration
with IIS.  Ex: http://localhost/files/test.xls      The problem occurred.

 

Someone can please help-me ?

 

Jean Carlos Bormanieri

Reply via email to