401 Unauthorized Error Attempting to Access Any Page After Deployment of a WebCenter Application

(Doc ID 438442.1)

Last updated on JUNE 30, 2017

Applies to:

Oracle WebCenter Portal - Version 10.1.3.2.0 to 10.1.3.2.0 [Release AS10gR3]
Information in this document applies to any platform.
Checked for relevance on 27-Mar-2015


Symptoms

A WebCenter Application deployed to an Oracle Application Server is displaying the error "401 Unauthorized" when attempting to access any page.

Here is the error stack shown in the application.log for the OC4J Container:

07/06/26 16:18:52.700 MyApplication: Servlet error
java.lang.IllegalStateException: Response has already been committed
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1)
].server.http.EvermindHttpServletResponse.resetBuffer(EvermindHttpServletResponse.java:1847)
at javax.servlet.ServletResponseWrapper.resetBuffer(ServletResponseWrapper.java:237)
at javax.servlet.ServletResponseWrapper.resetBuffer(ServletResponseWrapper.java:237)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1)
].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:284)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1)
].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:50)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1)
].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:192)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1)
].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:197)
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1)
].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1)
].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1)
].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:17)
at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1)
].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:620)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1)
].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:369)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1)
].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:865)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1)
].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:447)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1)
].server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1)
].server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.1)
].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)

Changes

Here are the changes that were made:

  1. The WebCenter Application was deployed to an Oracle Application Server, which is using the File-Based Security Provider with the default xml file system-jazn-data.xml.
  2. The JAZN Migration tool was executed in realm mode to migrate the users and roles from the app-jazn-data.xml to the system-jazn-data.xml on the Oracle Application Server.

    Here is an example of the syntax used:
    java oracle.security.jazn.tools.JAZNMigrationTool \
    -sr jazn.com -dr jazn.com -st xml -dt xml
    -sf app-jazn-data.xml \
    -df system-jazn-data.xml \
    -m realm

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