• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue with MIME settings in WebSphere

 
Ramakanta Sahoo
Ranch Hand
Posts: 255
Fedora Firefox Browser Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

We are facing problem in opening pdf,xls and doc files through IE while the application is deployed on WAS6.1.0.11
We have required mappings in web.xml but it seems its not taking them.
The problem is its opening all the files in IE as text/html which is default if no mapping present.
The same web.xml and mapping works very fine in Tomcat instances.
Please help do we need to do something else ...???
We have already below mapping in WEB.XML of war file.
-------------------------------
 
Ramakanta Sahoo
Ranch Hand
Posts: 255
Fedora Firefox Browser Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any Help Guys!!!
Still royally stumped
 
manisha Gupta Garg
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Ramakanta,

did you get the solution?
actually our problem is all about same as you are facing.

we have problem with 2007 format MS oofice reports. like pptx,dox amd xlsx reports are opening as zip file.
we have too set mew mime type for 2007 format reports, but of no use.

we have entered as-

<mime-mapping>
<extension>docx</extension>
<mime-type>application/vnd.openxmlformats-officedocument.wordprocessingml.document</mime-type>
</mime-mapping>

<mime-mapping>
<extension>xlsx</extension>
<mime-type>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</mime-type>
</mime-mapping>

<mime-mapping>
<extension>pptx</extension>
<mime-type>application/vnd.openxmlformats-officedocument.presentationml.presentation</mime-type>
</mime-mapping>

any clue, where we are lacking?

Thanks,
Manisha
 
Ramakanta Sahoo
Ranch Hand
Posts: 255
Fedora Firefox Browser Netbeans IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Manisha,

Yes, I found the solution but its only for the applications which are deployed in WebSphere App Server.

Steps to follow:
Login to WAS Admin Console.
Go to Virtual Hosts
You will see a link called MIME TYPES
Enter all your mime types there and restart the server
You are Done.

Bye Tc.

-Ricky
 
manisha Gupta Garg
Ranch Hand
Posts: 41
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Ramakanta,

Thanks for replying ..

yup the solution that you suggested was already in place in our WAS admin console,virtual host.

so to solve this issue, we had to write the code in servlet. Earlier we were opening the report in Iframe in the jsp file.

Thanks,
Manisha
 
S Nikam
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Manisha and Ricky,

I am also facing same issue in my application.
I have added through console ,application/vnd.openxmlformats-officedocument.wordprocessingml.document as a mime type and .docx extension.
Or do I need to add application/vnd.openxmlformats as a mime type.

But still its not working.
I am opening a file in a simple jsp after uploading to the server.
Please help...

Thanks
ssn
 
S Nikam
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys..Its working fine now!!
I added application/vnd.openxmlformats-officedocument.wordprocessingml.document only

Regards,
ssn
 
Kumar prasanna
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
S Nikam wrote:Thanks guys..Its working fine now!!
I added application/vnd.openxmlformats-officedocument.wordprocessingml.document only

Regards,
ssn


Hey ,

What is that you tried differently for the next time so that it worked ?

Thanks,
Kumar
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic