Skip to content

logging-config-path and config-path must be absolute on Tomcat 8 #196

Closed
@dmolesUC

Description

@dmolesUC

In order to get OpenWayback 2.0.0 up and running under Tomcat 8.0.15 / Oracle JDK 8 / Mac OS 10.10, I had to change the default logging-config-path and config-path from relative to absolute paths:

    <context-param>
        <param-name>logging-config-path</param-name>
        <!-- <param-value>WEB-INF/classes/logging.properties</param-value> -->
        <param-value>/WEB-INF/classes/logging.properties</param-value>
    </context-param>
    <context-param>
        <param-name>config-path</param-name>
        <!-- <param-value>WEB-INF/wayback.xml</param-value> -->
        <param-value>/WEB-INF/wayback.xml</param-value>
    </context-param>

This looks to be a Tomcat issue, as org.apache.catalina.webresources.StandardRoot.validate(String) has a path.startsWith("/") check.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions