[jboss-user] [JBoss Portal] - Displaying XML Data in portlet page

manjunath_n156 do-not-reply at jboss.com
Wed Jan 10 00:25:23 EST 2007


Hi. 
I am trying to display xml data in a portlet page which is getting failed..
i have specified  
   
     <mime-type>text/xml</mime-type>

in portlet.xml and in the portlet class, i have set the content type to text/xml.

     renderResponse.setContentType("text/xml");

when i do this, i am getting an error message......

java.lang.IllegalArgumentException: Content type not accepted
        at org.jboss.portal.portlet.impl.jsr168.RenderResponseImpl.setContentTyp
e(RenderResponseImpl.java:95)
        at com.mvnforum.MVNForumPortlet.doView(MVNForumPortlet.java:106)
        at com.mvnforum.MVNForumPortlet.doDispatch(MVNForumPortlet.java:281)
        at javax.portlet.GenericPortlet.render(GenericPortlet.java:407)
        at org.jboss.portal.portlet.container.PortletContainer.invokeRender(Port
letContainer.java:519)
        at org.jboss.portal.portlet.container.PortletContainer.dispatch(PortletC
ontainer.java:440)
        at org.jboss.portal.portlet.container.PortletContainerInvoker$1.dispatch
(PortletContainerInvoker.java:143)
        at org.jboss.portal.portlet.invocation.PortletInvocation.dispatch(Portle
tInvocation.java:242)
        at org.jboss.portal.common.invocation.Invocation.invokeNext(Invocation.j
ava:140)
        at org.jboss.portal.core.aspects.portlet.TransactionInterceptor.org$jbos
s$portal$core$aspects$portlet$TransactionInterceptor$invokeNotSupported$aop(Tran
sactionInterceptor.java:85)
        at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNo
tSupported_4827075286966232824.invokeNext(TransactionInterceptor$invokeNotSuppor
ted_4827075286966232824.java)
        at org.jboss.aspects.tx.TxPolicy.invokeInNoTx(TxPolicy.java:66)
        at org.jboss.aspects.tx.TxInterceptor$NotSupported.invoke(TxInterceptor.
java:102)
        at org.jboss.portal.core.aspects.portlet.TransactionInterceptor$invokeNo
tSupported_4827075286966232824.invokeNext(TransactionInterceptor$invokeNotSuppor
ted_4827075286966232824.java)


Thanxs in advance

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

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



More information about the jboss-user mailing list