Re: virtual mapping on Tomcat 5.5
Hi In Tomcat 5.5.17 webapps itself deployed hence put the RMS under webapps and change the docbase Context path=/images docBase=webapps/RMS debug=0 reloadable=true/Context Regards Raju On 11/30/06, olivier nouguier [EMAIL PROTECTED] wrote: hi, A: put apache (httpd) in front of tomcat == quite easy. B: dirty read/stream hack == don't know what to say :-) On 11/29/06, Jennifer Lu [EMAIL PROTECTED] wrote: Hi David, I think I have joined the list as I have received the confirmation on this? Probably this is the first email I sent before the confirmation. Thank you for your advice on my question. However, the templates/images folder has to be outside of the RMS webapp folder in this case so I cannot figure out how to do this. I do not have problems in retrieving images from the RMS webapp folder. Any idea on how to refer to an images folder outside of the webapp root? Thanks. Jen On 11/29/06, David Smith [EMAIL PROTECTED] wrote: 1. the path attribute of your context definition will be ignored by tomcat 5.5. The webapp itself will be deployed as RMS, not images. 2. Assuming you have an images folder in your RMS webapp and a file named logo.gif exists there, the url http://localhost:8080/RMS/images/logo.gif should work. Check the logs if it's not working. 3. Please don't hijack threads. Join the list and send a NEW message to [EMAIL PROTECTED] Replying to a message and changing the subject isn't enough. --David Jennifer Lu wrote: Dear all, I need to define a virtual mapping path on Tomcat 5.5. The following works well on Tomcat 5.0.28 (I put it in the server.xml) Context path=/images docBase=E:/templates/images debug=0 reloadable=true/Context The webapp is called RMS and its classes directory has been installed on C:. http://localhost:8080/RMS/images/logo.gifthis url works well on Tomcat 5.0.28 but causes a HTTP404error on Tomcat5.5 I have tried several approaches on Tomcat5.5 but none of them succeeded. Approach 1. put it in conf/Catalina/localhost/RMS.xml Approach 2. put it in webapps/RMS/META-INF/context.xml Any advice on this? Thanks a lot. Jen - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Souviens-toi qu'au moment de ta naissance tout le monde était dans la joie et toi dans les pleurs. Vis de manière qu'au moment de ta mort, tout le monde soit dans les pleurs et toi dans la joie.
Re: virtual mapping on Tomcat 5.5
hi, A: put apache (httpd) in front of tomcat == quite easy. B: dirty read/stream hack == don't know what to say :-) On 11/29/06, Jennifer Lu [EMAIL PROTECTED] wrote: Hi David, I think I have joined the list as I have received the confirmation on this? Probably this is the first email I sent before the confirmation. Thank you for your advice on my question. However, the templates/images folder has to be outside of the RMS webapp folder in this case so I cannot figure out how to do this. I do not have problems in retrieving images from the RMS webapp folder. Any idea on how to refer to an images folder outside of the webapp root? Thanks. Jen On 11/29/06, David Smith [EMAIL PROTECTED] wrote: 1. the path attribute of your context definition will be ignored by tomcat 5.5. The webapp itself will be deployed as RMS, not images. 2. Assuming you have an images folder in your RMS webapp and a file named logo.gif exists there, the url http://localhost:8080/RMS/images/logo.gif should work. Check the logs if it's not working. 3. Please don't hijack threads. Join the list and send a NEW message to [EMAIL PROTECTED] Replying to a message and changing the subject isn't enough. --David Jennifer Lu wrote: Dear all, I need to define a virtual mapping path on Tomcat 5.5. The following works well on Tomcat 5.0.28 (I put it in the server.xml) Context path=/images docBase=E:/templates/images debug=0 reloadable=true/Context The webapp is called RMS and its classes directory has been installed on C:. http://localhost:8080/RMS/images/logo.gifthis url works well on Tomcat 5.0.28 but causes a HTTP404error on Tomcat5.5 I have tried several approaches on Tomcat5.5 but none of them succeeded. Approach 1. put it in conf/Catalina/localhost/RMS.xml Approach 2. put it in webapps/RMS/META-INF/context.xml Any advice on this? Thanks a lot. Jen - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Souviens-toi qu'au moment de ta naissance tout le monde était dans la joie et toi dans les pleurs. Vis de manière qu'au moment de ta mort, tout le monde soit dans les pleurs et toi dans la joie.
virtual mapping in Tomcat 5.5
Dear all, I need to define a virtual mapping path on Tomcat 5.5. The following works well on Tomcat 5.0.28 (I put it in the server.xml) Context path=/images docBase=E:/templates/images debug=0 reloadable=true/Context The webapp is called RMS and its classes directory has been installed on C:. http://localhost:8080/RMS/images/logo.gifthis url works well on Tomcat 5.0.28 but causes a HTTP404error on Tomcat5.5 I have tried several approaches on Tomcat5.5 but none of them succeeded. Approach 1. put it in conf/Catalina/localhost/RMS.xml Approach 2. put it in webapps/RMS/META-INF/context.xml Any advice on this? Thanks a lot. Jen
virtual mapping on Tomcat 5.5
Dear all, I need to define a virtual mapping path on Tomcat 5.5. The following works well on Tomcat 5.0.28 (I put it in the server.xml) Context path=/images docBase=E:/templates/images debug=0 reloadable=true/Context The webapp is called RMS and its classes directory has been installed on C:. http://localhost:8080/RMS/images/logo.gifthis url works well on Tomcat 5.0.28 but causes a HTTP404error on Tomcat5.5 I have tried several approaches on Tomcat5.5 but none of them succeeded. Approach 1. put it in conf/Catalina/localhost/RMS.xml Approach 2. put it in webapps/RMS/META-INF/context.xml Any advice on this? Thanks a lot. Jen
Re: virtual mapping on Tomcat 5.5
1. the path attribute of your context definition will be ignored by tomcat 5.5. The webapp itself will be deployed as RMS, not images. 2. Assuming you have an images folder in your RMS webapp and a file named logo.gif exists there, the url http://localhost:8080/RMS/images/logo.gif should work. Check the logs if it's not working. 3. Please don't hijack threads. Join the list and send a NEW message to [EMAIL PROTECTED] Replying to a message and changing the subject isn't enough. --David Jennifer Lu wrote: Dear all, I need to define a virtual mapping path on Tomcat 5.5. The following works well on Tomcat 5.0.28 (I put it in the server.xml) Context path=/images docBase=E:/templates/images debug=0 reloadable=true/Context The webapp is called RMS and its classes directory has been installed on C:. http://localhost:8080/RMS/images/logo.gifthis url works well on Tomcat 5.0.28 but causes a HTTP404error on Tomcat5.5 I have tried several approaches on Tomcat5.5 but none of them succeeded. Approach 1. put it in conf/Catalina/localhost/RMS.xml Approach 2. put it in webapps/RMS/META-INF/context.xml Any advice on this? Thanks a lot. Jen - 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: virtual mapping on Tomcat 5.5
Hi David, I think I have joined the list as I have received the confirmation on this? Probably this is the first email I sent before the confirmation. Thank you for your advice on my question. However, the templates/images folder has to be outside of the RMS webapp folder in this case so I cannot figure out how to do this. I do not have problems in retrieving images from the RMS webapp folder. Any idea on how to refer to an images folder outside of the webapp root? Thanks. Jen On 11/29/06, David Smith [EMAIL PROTECTED] wrote: 1. the path attribute of your context definition will be ignored by tomcat 5.5. The webapp itself will be deployed as RMS, not images. 2. Assuming you have an images folder in your RMS webapp and a file named logo.gif exists there, the url http://localhost:8080/RMS/images/logo.gif should work. Check the logs if it's not working. 3. Please don't hijack threads. Join the list and send a NEW message to [EMAIL PROTECTED] Replying to a message and changing the subject isn't enough. --David Jennifer Lu wrote: Dear all, I need to define a virtual mapping path on Tomcat 5.5. The following works well on Tomcat 5.0.28 (I put it in the server.xml) Context path=/images docBase=E:/templates/images debug=0 reloadable=true/Context The webapp is called RMS and its classes directory has been installed on C:. http://localhost:8080/RMS/images/logo.gifthis url works well on Tomcat 5.0.28 but causes a HTTP404error on Tomcat5.5 I have tried several approaches on Tomcat5.5 but none of them succeeded. Approach 1. put it in conf/Catalina/localhost/RMS.xml Approach 2. put it in webapps/RMS/META-INF/context.xml Any advice on this? Thanks a lot. Jen - 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: virtual mapping on Tomcat 5.5
Sorry about the hijack warning. Must have been not enough coffee. So you want to put your resources outside the RMS webapp. I think you have about four options: 1. Put the resources in the ROOT webapp and then refer to them with a url like http://localhost:8080/images/logo.gif 2. If fronting tomcat with apache, store the resources in an apache httpd served directory. Construct URLs that point to them like http://localhost/images/logo.gif. 3. Construct a separate webapp that just contains the essential WEB-INF/web.xml file and your resources. It can be stored outside tomcat's directory with a images.xml in the conf/Catalina/localhost/ like follows: Context docBase=E:/templates/images debug=0 reloadable=true/Context Urls could be constructed similar to #1 above. 4. Build a servlet that can be configured with an absolute path to the resources. Map it to respond to requests for images. You should be able to download the tomcat sources and use the default servlet as a starting point basis for your servlet. In that case you'd be constructing urls like http://localhost:8080/RMS/images/logo.gif --David Jennifer Lu wrote: Hi David, I think I have joined the list as I have received the confirmation on this? Probably this is the first email I sent before the confirmation. Thank you for your advice on my question. However, the templates/images folder has to be outside of the RMS webapp folder in this case so I cannot figure out how to do this. I do not have problems in retrieving images from the RMS webapp folder. Any idea on how to refer to an images folder outside of the webapp root? Thanks. Jen On 11/29/06, David Smith [EMAIL PROTECTED] wrote: 1. the path attribute of your context definition will be ignored by tomcat 5.5. The webapp itself will be deployed as RMS, not images. 2. Assuming you have an images folder in your RMS webapp and a file named logo.gif exists there, the url http://localhost:8080/RMS/images/logo.gif should work. Check the logs if it's not working. 3. Please don't hijack threads. Join the list and send a NEW message to [EMAIL PROTECTED] Replying to a message and changing the subject isn't enough. --David Jennifer Lu wrote: Dear all, I need to define a virtual mapping path on Tomcat 5.5. The following works well on Tomcat 5.0.28 (I put it in the server.xml) Context path=/images docBase=E:/templates/images debug=0 reloadable=true/Context The webapp is called RMS and its classes directory has been installed on C:. http://localhost:8080/RMS/images/logo.gifthis url works well on Tomcat 5.0.28 but causes a HTTP404error on Tomcat5.5 I have tried several approaches on Tomcat5.5 but none of them succeeded. Approach 1. put it in conf/Catalina/localhost/RMS.xml Approach 2. put it in webapps/RMS/META-INF/context.xml Any advice on this? Thanks a lot. Jen - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- === David Smith Network Operations Supervisor Department of Entomology College of Agriculture Life Sciences Cornell University 2132 Comstock Hall Ithaca, NY 14853 Phone: 607.255.9571 Fax: 607.255.0939 - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]