[jboss-user] [JBoss Portal] - Re: image/png Content type not accepted

avalendino do-not-reply at jboss.com
Fri Jul 25 06:59:52 EDT 2008


Hi all

i hai the same problem discussed here but i'm going to fighting with an application/pdf mime tipe.

the proble is analogous, what change is the type of output returned.
I have developed a CMS portlet that contain a link to my PDF file that is stored in the CMS too, but now i need to open the pdf content only within a window, reading the PDF file from a CMS
I have already set the returned mime type in my portlet implementation

rResponse.setContentType("application/pdf");

and in my portlet.xml

<mime-type>application/pdf</mime-type>

but as result i have only seen a "wonderful", unlimited stack trace in my server's log that say:

java.lang.IllegalArgumentException: Content type not accepted
...
<infinite stack...>
...
Caused by: javax.activation.MimeTypeParseException: Type [application/pdf] not supported

any advice will be appreciated!!!

I use jboss portal 2.6.5


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4166622#4166622

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4166622



More information about the jboss-user mailing list