Skip to content
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
Closed

Wrong order of resource loading in RAD Tomcat #350

skopf opened this issue Nov 26, 2015 · 2 comments
Assignees
Milestone

Comments

@skopf
Copy link

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
Copy link
Contributor

@gravitonian gravitonian self-assigned this Jan 12, 2016
@gravitonian
Copy link
Contributor

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants