Sites Fails to Start after Adding a 404 Page in web.xml Due to "string value 'xxx/xxx'' does not match pattern for war-pathType" (Doc ID 1947852.1)

Last updated on JULY 07, 2017

Applies to:

Oracle WebCenter Sites - Version 11.1.1.8.0 and later
Information in this document applies to any platform.

Symptoms

Sites fails to start due to -

weblogic.application.ModuleException: VALIDATION PROBLEMS WERE FOUND
problem: cvc-datatype-valid.1.1: string value 'path/to/404.html' does not match pattern for war-pathType in namespace http://java.sun.com/xml/ns/javaee:

Changes

An error page is added into web.xml:

<error-page>
<error-code>404</error-code>
<location>path/to/404.html</location>
</error-page>

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