From 0cbab859f8b529deb17b08040649068a2b96d378 Mon Sep 17 00:00:00 2001 From: jomu Date: Wed, 28 Aug 2019 07:53:05 +0200 Subject: [PATCH] made context root configurable --- account-ui/pom.xml | 1 + account-ui/src/main/filters/development.properties | 1 + account-ui/src/main/filters/production.properties | 1 + account-ui/src/main/webapp/WEB-INF/jboss-web.xml | 7 +++++++ account-ui/src/main/webapp/index.xhtml | 2 +- 5 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 account-ui/src/main/webapp/WEB-INF/jboss-web.xml diff --git a/account-ui/pom.xml b/account-ui/pom.xml index a0c4c76..ed320df 100644 --- a/account-ui/pom.xml +++ b/account-ui/pom.xml @@ -124,6 +124,7 @@ true WEB-INF/web.xml + WEB-INF/jboss-web.xml WEB-INF/shiro.ini diff --git a/account-ui/src/main/filters/development.properties b/account-ui/src/main/filters/development.properties index c37b080..ef4d834 100644 --- a/account-ui/src/main/filters/development.properties +++ b/account-ui/src/main/filters/development.properties @@ -1,4 +1,5 @@ jsf.projectStage=Development +context.root=account shiro.contextFactory = # not defined shiro.passwordMatcher= passwordMatcher = org.apache.shiro.authc.credential.PasswordMatcher${line.separator}passwordMatcher.passwordService = $passwordService diff --git a/account-ui/src/main/filters/production.properties b/account-ui/src/main/filters/production.properties index c413bb0..ec870b7 100644 --- a/account-ui/src/main/filters/production.properties +++ b/account-ui/src/main/filters/production.properties @@ -1,4 +1,5 @@ jsf.projectStage=Production +context.root=account ldap.url = ldaps://host:port ## we will use provided username / password from webapplication diff --git a/account-ui/src/main/webapp/WEB-INF/jboss-web.xml b/account-ui/src/main/webapp/WEB-INF/jboss-web.xml new file mode 100644 index 0000000..f1fdbb4 --- /dev/null +++ b/account-ui/src/main/webapp/WEB-INF/jboss-web.xml @@ -0,0 +1,7 @@ + + + ${context.root} + \ No newline at end of file diff --git a/account-ui/src/main/webapp/index.xhtml b/account-ui/src/main/webapp/index.xhtml index ac83f88..67d8f87 100644 --- a/account-ui/src/main/webapp/index.xhtml +++ b/account-ui/src/main/webapp/index.xhtml @@ -2,7 +2,7 @@