We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
This issue was migrated from Pagure Issue #748. Originally filed by edewata (@edewata) on 2013-09-27 21:51:34:
Currently the subsystem web.xml contains slots that need to substituted during deployment in order to generate the value for cfgPath parameter:
<servlet> <servlet-name>...</servlet-name> <servlet-class>com.netscape.cms.servlet.base.CMSStartServlet</servlet-class> <init-param> <param-name>cfgPath</param-name> <param-value>[PKI_INSTANCE_PATH]/conf/[PKI_SUBSYSTEM_TYPE]/CS.cfg</param-value> </init-param> ... </servlet>
The value can actually be computed with this code:
ServletContext servletContext = config.getServletContext(); String instanceDir = System.getProperty("catalina.base"); String subsystem = servletContext.getContextPath().substring(1); String path = instanceDir + "/conf/" + subsystem + "/CS.cfg";
So the cfgPath can be removed from the web.xml. This way the web.xml no longer needs to be customized for each instance, allowing direct web application deployment in the future. See: http://pki.fedoraproject.org/wiki/Customization#Direct_Deployment
An upgrade script is needed to remove the cfgPath from existing web.xml.
The text was updated successfully, but these errors were encountered:
Comment from edewata (@edewata) at 2014-03-17 18:03:44
master: 4c1ce95
Sorry, something went wrong.
Comment from edewata (@edewata) at 2017-02-27 14:03:45
Metadata Update from @edewata:
No branches or pull requests
This issue was migrated from Pagure Issue #748. Originally filed by edewata (@edewata) on 2013-09-27 21:51:34:
Currently the subsystem web.xml contains slots that need to substituted during deployment in order to generate the value for cfgPath parameter:
The value can actually be computed with this code:
So the cfgPath can be removed from the web.xml. This way the web.xml no longer needs to be customized for each instance, allowing direct web application deployment in the future. See: http://pki.fedoraproject.org/wiki/Customization#Direct_Deployment
An upgrade script is needed to remove the cfgPath from existing web.xml.
The text was updated successfully, but these errors were encountered: