2 Replies Latest reply on Jan 10, 2007 4:11 AM by Thomas Heute

    Displaying XML Data in portlet page

    Manjunath N Newbie

      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