-
Notifications
You must be signed in to change notification settings - Fork 90
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
Unable to start two apps with the same name - When using variables and includes in server.xml to resolve app location #1145
Comments
Looking at the code in ci.common, I don't think the pre-defined variables were ever handled for resolving variables in the application location attribute, but it should be handled for the |
And it's not clear there's any value in resolving |
@scottkurz While working on the fixes in the two referenced PRs, I found I had to change one thing in the pom.xml (from what you had in the referenced repo) in the test case that I used to test the fix. In your repo, you have this for copying the environment.xml file:
I had to change it to this in my test case:
It may just have to do with how the integration tests are configured. Also, I used the following steps in the test case instead of liberty:dev:
Matt has reviewed the PRs. Are you good with my merging them, or did you want to review them? |
@cherylking I'll take a look in the next couple days. Thanks. |
My initial test of the original app seems to show the same high-level end result... we generate the install apps config dropin instead of using the one in the src server.xml. Will try to dig a bit further. |
Confirmed the PRs together seem to resolve my original recreate scenario on Windows. |
With liberty-maven-plugin 3.3.4, we hit the same symptom as in #583, see #583 (comment).
use case
In server.xml
So I think there's two layers of failure here: first, we're failing to resolve
${shared.config.dir}
in the include location. But even if we did, there'd be a second failure to resolve the${server.config.dir}
and substitution in the webApplication location when building the ServerConfigDocument to understand whether we need to generate the configDropin for app deployment.Recreate
mvn resources:copy-resources liberty:dev
NOTES
There's a lot of overlap here with: #1039 but I'm not clear where that stands, if it's broader than resolving the app location or focused elsewhere. So let me open this new issue though also thinking a full solution
The text was updated successfully, but these errors were encountered: