Adding Tomcat Catalina configuration for "privileged" applications
------------------------------------------------------------------ Key: OFBIZ-2945 URL: https://issues.apache.org/jira/browse/OFBIZ-2945 Project: OFBiz Issue Type: New Feature Affects Versions: SVN trunk Reporter: Brett G. Palmer Fix For: SVN trunk Out of the box Tomcat allows you to configure "privileged" applications by specifying the context as follows. <Context path="/manager" debug="0" privileged="true" docBase="/usr/local/kinetic/tomcat6/server/webapps/manager"> </Context> Since OFBiz is an embedded version of Tomcat it does not currently include a similar configuration for privileged applications. The Tomcat manager application is a "privileged" application that includes utilities for monitoring JMX resources such as thread counts, connections, and any other configured JMX parameter. We use JMX with Hyperic to monitor our OFBiz servers I'm including a patch of the following three files that will allow a user to configure a "privileged" application like Tomcat's manager to run as a regular ofbiz-component. framework\base\src\org\ofbiz\base\component\ComponentConfig.java framework\base\dtd\ofbiz-component.xsd framework\catalina\src\org\ofbiz\catalina\container\CatalinaContainer.java Here is an example configuration for the manager application with the attached patch. <ofbiz-component name="manager" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/ofbiz-component.xsd"> <resource-loader name="main" type="component"/> <!-- Example Application --> <webapp name="manager" title="Tomcat Manager" server="default-server" location="webapp/manager" mount-point="/manager" privileged="true" app-bar-display="false" /> </ofbiz-component> Let me know if you have any questions. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
[ https://issues.apache.org/jira/browse/OFBIZ-2945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brett G. Palmer updated OFBIZ-2945: ----------------------------------- Attachment: ofbiz_catalina_privileged_rev815575.patch Here is a patch from svn revision 815575 (Sept. 15, 2009). If we could apply this to the trunk that would be appreciated. Thanks, Brett > Adding Tomcat Catalina configuration for "privileged" applications > ------------------------------------------------------------------ > > Key: OFBIZ-2945 > URL: https://issues.apache.org/jira/browse/OFBIZ-2945 > Project: OFBiz > Issue Type: New Feature > Affects Versions: SVN trunk > Reporter: Brett G. Palmer > Fix For: SVN trunk > > Attachments: ofbiz_catalina_privileged_rev815575.patch > > > Out of the box Tomcat allows you to configure "privileged" applications by specifying the context as follows. > <Context path="/manager" debug="0" privileged="true" > docBase="/usr/local/kinetic/tomcat6/server/webapps/manager"> > </Context> > Since OFBiz is an embedded version of Tomcat it does not currently include a similar configuration for privileged applications. > The Tomcat manager application is a "privileged" application that includes utilities for monitoring JMX resources such as thread counts, connections, and any other configured JMX parameter. We use JMX with Hyperic to monitor our OFBiz servers > I'm including a patch of the following three files that will allow a user to configure a "privileged" application like Tomcat's manager to run as a regular ofbiz-component. > framework\base\src\org\ofbiz\base\component\ComponentConfig.java > framework\base\dtd\ofbiz-component.xsd > framework\catalina\src\org\ofbiz\catalina\container\CatalinaContainer.java > Here is an example configuration for the manager application with the attached patch. > <ofbiz-component name="manager" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/ofbiz-component.xsd"> > <resource-loader name="main" type="component"/> > > <!-- Example Application --> > <webapp name="manager" > title="Tomcat Manager" > server="default-server" > location="webapp/manager" > mount-point="/manager" > privileged="true" > app-bar-display="false" /> > > </ofbiz-component> > Let me know if you have any questions. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2945?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jacques Le Roux closed OFBIZ-2945. ---------------------------------- Resolution: Fixed Assignee: Jacques Le Roux Thanks Brett, Your patch is in trunk at r816335. > Adding Tomcat Catalina configuration for "privileged" applications > ------------------------------------------------------------------ > > Key: OFBIZ-2945 > URL: https://issues.apache.org/jira/browse/OFBIZ-2945 > Project: OFBiz > Issue Type: New Feature > Affects Versions: SVN trunk > Reporter: Brett G. Palmer > Assignee: Jacques Le Roux > Fix For: SVN trunk > > Attachments: ofbiz_catalina_privileged_rev815575.patch > > > Out of the box Tomcat allows you to configure "privileged" applications by specifying the context as follows. > <Context path="/manager" debug="0" privileged="true" > docBase="/usr/local/kinetic/tomcat6/server/webapps/manager"> > </Context> > Since OFBiz is an embedded version of Tomcat it does not currently include a similar configuration for privileged applications. > The Tomcat manager application is a "privileged" application that includes utilities for monitoring JMX resources such as thread counts, connections, and any other configured JMX parameter. We use JMX with Hyperic to monitor our OFBiz servers > I'm including a patch of the following three files that will allow a user to configure a "privileged" application like Tomcat's manager to run as a regular ofbiz-component. > framework\base\src\org\ofbiz\base\component\ComponentConfig.java > framework\base\dtd\ofbiz-component.xsd > framework\catalina\src\org\ofbiz\catalina\container\CatalinaContainer.java > Here is an example configuration for the manager application with the attached patch. > <ofbiz-component name="manager" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/ofbiz-component.xsd"> > <resource-loader name="main" type="component"/> > > <!-- Example Application --> > <webapp name="manager" > title="Tomcat Manager" > server="default-server" > location="webapp/manager" > mount-point="/manager" > privileged="true" > app-bar-display="false" /> > > </ofbiz-component> > Let me know if you have any questions. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
Free forum by Nabble | Edit this page |