'java.lang.IllegalArgumentException: Content type is not supported' Thrown for an XHTML Portal

(Doc ID 1323866.1)

Last updated on FEBRUARY 22, 2017

Applies to:

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

Symptoms

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 ONE for this request.
at com.bea.portlet.container.MimeResponseImpl.setContentType(MimeResponseImpl.java:198)
at javax.portlet.filter.RenderResponseWrapper.setContentType(RenderResponseWrapper.java:139)
at com.bea.portlet.container.MimeResponseDispatcherWrapper.setContentType(MimeResponseDispatcherWrapper.java:177)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:222)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.ServletStubImpl.execute(SerlvetStubImpl.java:222)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:408)

...

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms