RE: Tomcat6 Manager App HOW-TO
From: John Moore [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat6 Manager App HOW-TO I also gather that you should copy the manager directory into each webapp..??? Not required, but it's an alternative to creating manager.xml files under each conf/Catalina/[host] directory that all have a docBase attribute pointing to the single copy of the webapp. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat6 Manager App HOW-TO
Caldarale, Charles R wrote: From: John Moore [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat6 Manager App HOW-TO I also gather that you should copy the manager directory into each webapp..??? Not required, but it's an alternative to creating manager.xml files under each conf/Catalina/[host] directory that all have a docBase attribute pointing to the single copy of the webapp. Ah yes, thanks, that makes sense now... I think for production I'm going to need to fall back to 5.5.23 for now, too many issues to resolve and test. I'll setup a test machine for Tomcat6 and keep working on it.. I appreciate your assistance.. John..
Re: Tomcat6 Manager App HOW-TO
Caldarale, Charles R wrote: The only part that I find somewhat misleading is the following: There are two ways to configure the Manager web application Context: * Install the manager.xml context configuration file in the $CATALINA_HOME/conf/[enginename]/[hostname] folder. * Configure the Manager Context within the Host configuration in your Tomcat server.xml configuration. Here is an example: Context path=/manager privileged=true docBase=/usr/local/kinetic/tomcat6/server/webapps/manager /Context This is now clarified for TC4, 5 6. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat6 Manager App HOW-TO
Caldarale, Charles R wrote: From: John Moore [mailto:[EMAIL PROTECTED] Subject: Tomcat6 Manager App HOW-TO It appears that the instruction to add (paths corrected) Context path=/manager privileged=true docBase=/usr/local/tomcat/webapps/manager /Context is wrong (based on message from Charles Caldarale on 5/16/2007) The path attribute is only valid when the Context element is in server.xml, which is strongly discouraged. For other Context uses, the path is derived from the name of war file (or directory) or the name of the .xml file in conf/Catalina/[host]. i.e. Don't follow the directions..G So.. in reading the rest of the instructions I'm finding things are not quite working as documented. Please point out where in the Tomcat 6 doc you're finding discrepancies. Everything I'm asking here comes from the Tomcat6 Manager HOW-TO.. (newly printed from the site) You are basically saying, as I understand it, that it is either wrong or incomplete. (It may, of course, just be that my ignorance is so bad that I can make sense of it all..G) 1) Is the instruction that you add a manager.xml to each $CATALINA_HOME/conf/[enginename]/[hostname] ..folder required? Not for Tomcat 6, since the directory structure has changed. In TC 5.5 and older, the various management applications were located outside of the normal Host appBase (in server/webapps), and therefore required [appname].xml files in conf/Catalina/[host]. For TC 6, the management applications are located under the configured appBase directory, so their Context elements can be found in their respective META-INF directories. If you configure multiple Host elements with differing appBase attributes, you have two choices. Either copy the management applications to each appBase, or keep them in one spot and create [appname].xml files with appropriate docBase attributes in each conf/[engine]/[host], similar to TC 5.5. Great thanks.. That is the missing piece(s) in the docs... Ditto for your following advice.. but can not access the host-manager at: http://localhost:8080/host-manager/html ..I get a 403 (I did try adding a host-manager role to the tomcat-user.xml , but no joy) Look in the WEB-INF/web.xml file for host-manager; you'll see that the required role name is admin, not manager or host-manager. 3) I can not access a virtual host Manager at http://www.domainhere.com:8080/manager/html What appBase did you configure for the www.domainhere.com Host? If you don't have a manager webapp deployed there, you'll need to create a conf/Catalina/www.domainhere.com/manager.xml file that contains a Context element with a docBase attribute that points to the location of the manager webapp.
RE: Tomcat6 Manager App HOW-TO
From: John Moore [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat6 Manager App HOW-TO Everything I'm asking here comes from the Tomcat6 Manager HOW-TO.. (newly printed from the site) You are basically saying, as I understand it, that it is either wrong or incomplete. The only part that I find somewhat misleading is the following: There are two ways to configure the Manager web application Context: * Install the manager.xml context configuration file in the $CATALINA_HOME/conf/[enginename]/[hostname] folder. * Configure the Manager Context within the Host configuration in your Tomcat server.xml configuration. Here is an example: Context path=/manager privileged=true docBase=/usr/local/kinetic/tomcat6/server/webapps/manager /Context The first bullet is really only needed when additional Host elements have been configured, and you want a manager webapp for each. It fails to mention that the manager webapp is automatically set up for the default Host in the standard Tomcat 6 download. The second bullet should probably be eliminated, since it's no longer in keeping with the philosophy of avoiding placing webapp configurations inside the server.xml file. It may be there simply for completeness, but ideally it should at least include a caveat. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat6 Manager App HOW-TO
Caldarale, Charles R wrote: The only part that I find somewhat misleading is the following: There are two ways to configure the Manager web application Context: * Install the manager.xml context configuration file in the $CATALINA_HOME/conf/[enginename]/[hostname] folder. * Configure the Manager Context within the Host configuration in your Tomcat server.xml configuration. Here is an example: Context path=/manager privileged=true docBase=/usr/local/kinetic/tomcat6/server/webapps/manager /Context The first bullet is really only needed when additional Host elements have been configured, and you want a manager webapp for each. It fails to mention that the manager webapp is automatically set up for the default Host in the standard Tomcat 6 download. The second bullet should probably be eliminated, since it's no longer in keeping with the philosophy of avoiding placing webapp configurations inside the server.xml file. It may be there simply for completeness, but ideally it should at least include a caveat. I guess I understood from an earlier post from you that it was a rather strong no-no.. Which made it's presence in the HOW-TO rather odd.. I also gather that you should copy the manager directory into each webapp..??? Thank you for clarifying these issues.. John.. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat6 Manager App HOW-TO
I would appreciate some clarifications/advice on this How-To.. It appears that the instruction to add (paths corrected) Context path=/manager privileged=true docBase=/usr/local/tomcat/webapps/manager /Context is wrong (based on message from Charles Caldarale on 5/16/2007) So.. in reading the rest of the instructions I'm finding things are not quite working as documented. Searched this list and google and so far have not come up with any answers: Specifically.. 1) Is the instruction that you add a manager.xml to each $CATALINA_HOME/conf/[enginename]/[hostname] ..folder required? (I assume the path should be corrected since there is no longer any server directory structure.) .. at this point it does not seem to matter.. but I would like access to virtual hosts.. 2) So I can access the localhost manager at: http://localhost:8080/manager/html but can not access the host-manager at: http://localhost:8080/host-manager/html ..I get a 403 (I did try adding a host-manager role to the tomcat-user.xml , but no joy) Is there something that has not been documented as yet to configure this..??? 3) I can not access a virtual host Manager at http://www.domainhere.com:8080/manager/html Thank you for any hints or advice.. John.. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat6 Manager App HOW-TO
From: John Moore [mailto:[EMAIL PROTECTED] Subject: Tomcat6 Manager App HOW-TO It appears that the instruction to add (paths corrected) Context path=/manager privileged=true docBase=/usr/local/tomcat/webapps/manager /Context is wrong (based on message from Charles Caldarale on 5/16/2007) The path attribute is only valid when the Context element is in server.xml, which is strongly discouraged. For other Context uses, the path is derived from the name of war file (or directory) or the name of the .xml file in conf/Catalina/[host]. So.. in reading the rest of the instructions I'm finding things are not quite working as documented. Please point out where in the Tomcat 6 doc you're finding discrepancies. 1) Is the instruction that you add a manager.xml to each $CATALINA_HOME/conf/[enginename]/[hostname] ..folder required? Not for Tomcat 6, since the directory structure has changed. In TC 5.5 and older, the various management applications were located outside of the normal Host appBase (in server/webapps), and therefore required [appname].xml files in conf/Catalina/[host]. For TC 6, the management applications are located under the configured appBase directory, so their Context elements can be found in their respective META-INF directories. If you configure multiple Host elements with differing appBase attributes, you have two choices. Either copy the management applications to each appBase, or keep them in one spot and create [appname].xml files with appropriate docBase attributes in each conf/[engine]/[host], similar to TC 5.5. but can not access the host-manager at: http://localhost:8080/host-manager/html ..I get a 403 (I did try adding a host-manager role to the tomcat-user.xml , but no joy) Look in the WEB-INF/web.xml file for host-manager; you'll see that the required role name is admin, not manager or host-manager. 3) I can not access a virtual host Manager at http://www.domainhere.com:8080/manager/html What appBase did you configure for the www.domainhere.com Host? If you don't have a manager webapp deployed there, you'll need to create a conf/Catalina/www.domainhere.com/manager.xml file that contains a Context element with a docBase attribute that points to the location of the manager webapp. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]