New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong order of resource loading in RAD Tomcat #350

Closed
skopf opened this Issue Nov 26, 2015 · 2 comments

Comments

Projects
None yet
3 participants
@skopf
Collaborator

skopf commented Nov 26, 2015

Resources in the AMP overwrite resources with the same name in the WAR.

But this does not work in the Tomcat RAD environment that we start. In this environment, we use the file /tomcat/context.xml to define an extraResourcePaths. But these paths are searched after the docBase. So resources in the amp can never overwrite resources in the docBase.

Instead, we should point the docBase to an empty directory and list the docBase in extraResourcePaths after the resources of the amp:

<Context docBase="${project.basedir}/tomcat/empty_doc_base" path="${alfresco.client.contextPath}">

    <Resources className="org.apache.naming.resources.VirtualDirContext" extraResourcePaths="/=${project.build.directory}/${project.build.finalName}/web,/=${alfresco.client.war.folder}" />
    ...

@ohej ohej added this to the 2.2.0 milestone Jan 11, 2016

@gravitonian

This comment has been minimized.

Show comment
Hide comment
Contributor

gravitonian commented Jan 12, 2016

@gravitonian gravitonian self-assigned this Jan 12, 2016

@gravitonian

This comment has been minimized.

Show comment
Hide comment
@gravitonian

gravitonian Jan 21, 2016

Contributor

Fixed

Contributor

gravitonian commented Jan 21, 2016

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment