My Oracle Support Banner

'java.lang.IllegalArgumentException: Content type is not supported' Thrown for an XHTML Portal (Doc ID 1323866.1)

Last updated on JULY 08, 2022

Applies to:

Oracle WebLogic Portal - Version 10.3.2 and later
Information in this document applies to any platform.


When attempting to render an XHTML JSR portlet within an XHTML enabled portal (as documented in the section 'Enabling XHTML in a Portal' of the WLP 10.3.2 Portal Development Guide), the following IllegalArgumentException is thrown:

java.lang.IllegalArgumentException: Content type text/html is not supported for portlet <PORTLET NAME> for this request.
at com.bea.portlet.container.MimeResponseImpl.setContentType(
at javax.portlet.filter.RenderResponseWrapper.setContentType(
at com.bea.portlet.container.MimeResponseDispatcherWrapper.setContentType(
at weblogic.servlet.internal.ServletStubImpl.execute(
at weblogic.servlet.internal.TailFilter.doFilter(
at weblogic.servlet.internal.ServletStubImpl.execute(
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(



To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.