Re: images not appearing
Hello, I had exactly the same problem and found that gifs need to be referenced as "/MyGif.gif". This makes it look in the web root directory (i.e. where your HTMLs and JSPs are). If you have a sub-directory then it might become "/images/MyGif.gif". I messed around with this for ages trying the context path and all sorts of other things including preceding dots etc. as in your examples. Also check the case of your gif file name because if you are ftp'ing from Windows it could be putting them in in uppercase. Regards, Susan Hoddinott http://www.hexworx.com - Original Message - From: "Mark Biciunas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 09, 2003 3:09 AM Subject: images not appearing > I am deploying a test servlet on Tomcat 4.1.24. Everything works great, the > servlet executes, I get results back at my browser, but none of the images > show up. > > In conf/server.xml, I have added the following: > > >prefix="localhost_helloworld_log." suffix=".txt" > timestamp="true"/> > > > In webapps/hello/WEB-INF/web.xml, I have the following: > > > ... > > helloworld > helloworld.Hello > > > > helloworld > / > > > > > > The image directory has been created in webapps/hello, and the requested > image does exist. As part of trying to resolve this, have placed copies of > the image directory up and down the directory tree and tried calling the > image in the servlet in a number of ways (ie: /images/image.gif, > ../images/image.gif, images/image.gif). Nothing seems to work to get the > image to display!!! > > Any and all ideas would be greatly appreciated at this point!!! > > Mark > [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: images not appearing
Hi, Your solution is exactly what was needed and it is the direction I ended up going in overnight with the tender assisstance Bill Barker. There are a couple of tricks to getting it working correctly so I am posting a seperate email to the group outlining what I have learned (it is definately not intuitive). BTW, the problem you ran into in your solution probably has to do with the first "/" on /images/*. I haven't checked it yet, but images/* might work better. Thanks to everyone for their great help! Mark Biciunas [EMAIL PROTECTED] - Original Message - From: "Stefan Radzom" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Wednesday, July 09, 2003 10:25 AM Subject: RE: images not appearing > > > > I can now access the servlet successfully using the url > > "http://192.168.1.3/test/hello";. The problem is, I need to be able to > > access it without supplying any path information (ie: > > http://192.168.1.3). > > > > So the question now is, how can server.xml and web.xml be > > configured to > > allow access without any paths? BTW, this does work in > > earlier versions of > > Tomcat so I would like the think it is still doable. > > > > Ok, this has taken us a long way just to start from the beginning ;-) > > You might want to change your web.xml to something like > > > hello > helloworld.Hello > > > > hello > / > > > > default > *.gif > > > > default > *.jpg > > > My first thought was to apply a pattern like > /images/* to map the entire image folder to > default but that did not work. Maybe I am too dumb or I am completely > missing something ;-? Somebody please give me a hint! > > However, another approach that has been suggested by another poster is to > employ some filter for your request processing. Thus, you can take care of > every incoming request and dispatch it as needed. > > -Stefan > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: images not appearing
> > I can now access the servlet successfully using the url > "http://192.168.1.3/test/hello";. The problem is, I need to be able to > access it without supplying any path information (ie: > http://192.168.1.3). > > So the question now is, how can server.xml and web.xml be > configured to > allow access without any paths? BTW, this does work in > earlier versions of > Tomcat so I would like the think it is still doable. > Ok, this has taken us a long way just to start from the beginning ;-) You might want to change your web.xml to something like hello helloworld.Hello hello / default *.gif default *.jpg My first thought was to apply a pattern like /images/* to map the entire image folder to default but that did not work. Maybe I am too dumb or I am completely missing something ;-? Somebody please give me a hint! However, another approach that has been suggested by another poster is to employ some filter for your request processing. Thus, you can take care of every incoming request and dispatch it as needed. -Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: images not appearing
You need to add a welcome file entry in the web.xml. Look at using filters to do some pre processing on all requests. Regards Jim. -Original Message- From: Mark Biciunas [mailto:[EMAIL PROTECTED] Sent: 08 July 2003 22:49 To: Tomcat Users List Subject: Re: images not appearing Hi, I changed webapps/helloworld/WEB-INF/web.xml to have a url pattern of /hello. I also changed conf/server.xml to set the Context path="/hello". When I go to my browser with http://192.168.1.3/hello, I get a directory listing for /. This is great because I can see the images directory (with my images properly in place). Unfortunately, the servlet doesn't execute at all I would like to think I would see the servlet executing. Any ideas? Also, this solution is problematic anyways, as I need to parse all incoming requests and respond to them, Only multimedia (images, etc.) should not be handled by the servlet. BTW, I can't find the spec SVR.11 - anyone have a link? Mark Biciunas [EMAIL PROTECTED] - Original Message - From: "Stefan Radzom" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Tuesday, July 08, 2003 4:44 PM Subject: RE: images not appearing > > -Original Message- > > In webapps/hello/WEB-INF/web.xml, I have the following: > > > > > > ... > > > > helloworld > > helloworld.Hello > > > > > > > > helloworld > > / > > > > > > > > > > > > You are trying to map every request to your helloworld servlet. This means > really *all* requests (including images etc.) Try to be a bit more specific, > like /helloworld . See the spec (SRV.11) for more > details on request mappings. > > -Stefan > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] PLEASE READ: The information contained in this email is confidential and intended for the named recipient(s) only. If you are not an intended recipient of this email you must not copy, distribute or take any further action in reliance on it and you should delete it and notify the sender immediately. Email is not a secure method of communication and Nomura International plc cannot accept responsibility for the accuracy or completeness of this message or any attachment(s). Please examine this email for virus infection, for which Nomura International plc accepts no responsibility. If verification of this email is sought then please request a hard copy. Unless otherwise stated any views or opinions presented are solely those of the author and do not represent those of Nomura International plc. This email is intended for informational purposes only and is not a solicitation or offer to buy or sell securities or related financial instruments. Nomura International plc is regulated by the Financial Services Authority and is a member of the London Stock Exchange. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: images not appearing
is it a unix link for your images ? Mark Biciunas a écrit: I am deploying a test servlet on Tomcat 4.1.24. Everything works great, the servlet executes, I get results back at my browser, but none of the images show up. In conf/server.xml, I have added the following: In webapps/hello/WEB-INF/web.xml, I have the following: ... helloworld helloworld.Hello helloworld / The image directory has been created in webapps/hello, and the requested image does exist. As part of trying to resolve this, have placed copies of the image directory up and down the directory tree and tried calling the image in the servlet in a number of ways (ie: /images/image.gif, ../images/image.gif, images/image.gif). Nothing seems to work to get the image to display!!! Any and all ideas would be greatly appreciated at this point!!! Mark [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: images not appearing
Hi, SRV.11 does apply to the problem I am having of images not appearing and has taken my issue in a new direction. Stefan, you put me onto the right track - I have the servlet working properly and displaying the images the way it should (Kudo's for pointing out the obvious). What I have done is: Update conf/server.xml to contain /hello I can now access the servlet successfully using the url "http://192.168.1.3/test/hello";. The problem is, I need to be able to access it without supplying any path information (ie: http://192.168.1.3). So the question now is, how can server.xml and web.xml be configured to allow access without any paths? BTW, this does work in earlier versions of Tomcat so I would like the think it is still doable. Mark Biciunas [EMAIL PROTECTED] - Original Message - From: "Robert Wray" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, July 08, 2003 5:52 PM Subject: Re: images not appearing > Chapter 11 of http://www.alexandria.ucsb.edu/dev/doc/java/servlet_2.3.pdf > > I don't see how this spec applies to this problem however. Can someone > please post one specific example of how to reference a file of some sort > that is being requested from a servlet. > > At 05:49 PM 08/07/2003 -0400, you wrote: > >Hi, > > > >I changed webapps/helloworld/WEB-INF/web.xml to have a url pattern of > >/hello. I also changed conf/server.xml to set the Context path="/hello". > >When I go to my browser with http://192.168.1.3/hello, I get a directory > >listing for /. This is great because I can see the images directory (with > >my images properly in place). Unfortunately, the servlet doesn't execute at > >all > > > >I would like to think I would see the servlet executing. Any ideas? Also, > >this solution is problematic anyways, as I need to parse all incoming > >requests and respond to them, Only multimedia (images, etc.) should not be > >handled by the servlet. > > > >BTW, I can't find the spec SVR.11 - anyone have a link? > > > >Mark Biciunas > >[EMAIL PROTECTED] > >- Original Message - > >From: "Stefan Radzom" <[EMAIL PROTECTED]> > >To: "'Tomcat Users List'" <[EMAIL PROTECTED]> > >Sent: Tuesday, July 08, 2003 4:44 PM > >Subject: RE: images not appearing > > > > > > > > -Original Message- > > > > In webapps/hello/WEB-INF/web.xml, I have the following: > > > > > > > > > > > > ... > > > > > > > > helloworld > > > > helloworld.Hello > > > > > > > > > > > > > > > > helloworld > > > > / > > > > > > > > > > > > > > > > > > > > > > > > > > You are trying to map every request to your helloworld servlet. This means > > > really *all* requests (including images etc.) Try to be a bit more > >specific, > > > like /helloworld . See the spec (SRV.11) for > >more > > > details on request mappings. > > > > > > -Stefan > > > > > > > > > > > > - > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: images not appearing
Chapter 11 of http://www.alexandria.ucsb.edu/dev/doc/java/servlet_2.3.pdf I don't see how this spec applies to this problem however. Can someone please post one specific example of how to reference a file of some sort that is being requested from a servlet. At 05:49 PM 08/07/2003 -0400, you wrote: Hi, I changed webapps/helloworld/WEB-INF/web.xml to have a url pattern of /hello. I also changed conf/server.xml to set the Context path="/hello". When I go to my browser with http://192.168.1.3/hello, I get a directory listing for /. This is great because I can see the images directory (with my images properly in place). Unfortunately, the servlet doesn't execute at all I would like to think I would see the servlet executing. Any ideas? Also, this solution is problematic anyways, as I need to parse all incoming requests and respond to them, Only multimedia (images, etc.) should not be handled by the servlet. BTW, I can't find the spec SVR.11 - anyone have a link? Mark Biciunas [EMAIL PROTECTED] - Original Message - From: "Stefan Radzom" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Tuesday, July 08, 2003 4:44 PM Subject: RE: images not appearing > > -Original Message- > > In webapps/hello/WEB-INF/web.xml, I have the following: > > > > > > ... > > > > helloworld > > helloworld.Hello > > > > > > > > helloworld > > / > > > > > > > > > > > > You are trying to map every request to your helloworld servlet. This means > really *all* requests (including images etc.) Try to be a bit more specific, > like /helloworld . See the spec (SRV.11) for more > details on request mappings. > > -Stefan > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: images not appearing
Hi, I changed webapps/helloworld/WEB-INF/web.xml to have a url pattern of /hello. I also changed conf/server.xml to set the Context path="/hello". When I go to my browser with http://192.168.1.3/hello, I get a directory listing for /. This is great because I can see the images directory (with my images properly in place). Unfortunately, the servlet doesn't execute at all I would like to think I would see the servlet executing. Any ideas? Also, this solution is problematic anyways, as I need to parse all incoming requests and respond to them, Only multimedia (images, etc.) should not be handled by the servlet. BTW, I can't find the spec SVR.11 - anyone have a link? Mark Biciunas [EMAIL PROTECTED] - Original Message - From: "Stefan Radzom" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Tuesday, July 08, 2003 4:44 PM Subject: RE: images not appearing > > -Original Message- > > In webapps/hello/WEB-INF/web.xml, I have the following: > > > > > > ... > > > > helloworld > > helloworld.Hello > > > > > > > > helloworld > > / > > > > > > > > > > > > You are trying to map every request to your helloworld servlet. This means > really *all* requests (including images etc.) Try to be a bit more specific, > like /helloworld . See the spec (SRV.11) for more > details on request mappings. > > -Stefan > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: images not appearing
I have the following in my server.xml file: and http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html says that "webapps" (relative to my $CATALINA_HOME directory) is the base directory of my applications http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html says that "test" (relative to my appBase directory of the owning host) is the base directory for this web application So shouldn't I be able to access my document using "c:\jakarta-tomcat-4.1.18\webapps\test\" rather than "c:\" ? What is the possible problem? I'm on Windows 2000 Pro. running standalone with standard installation. At 02:30 PM 08/07/2003 -0600, you wrote: It seems that the problem I was having in another thread is partially related to this and I' would like to know how to fix it. It seems that with the current setup I have, the files (in this case an image file) is being referred to the base OS directory, (in my case c:\). So for my installation, if I wanted to use a file "transform.xsl" in an application "test" in subfolder "transforms" with a tomcat installation directory of "c:\jakarta-tomcat-4.1.18", my servlet that wants to use that particular file would have to refer to it as "/jakarta-tomcat-4.1.18/webapps/test/transforms/transform.xsl" Is this what should be happening? How do you set up the servlet such that you can use a path relative to the base war directory? At 04:11 PM 08/07/2003 -0400, you wrote: What happens if you type in browser: "http://helloworld/images/specificImage.jpg"; or whatever the name of your specific image is? -Original Message- From: Mark Biciunas [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 4:08 PM To: Tomcat Users List Subject: Re: images not appearing Again, I have a transcription error. In server.xml, it is actually "docBase" so that shouldn't be the problem. Mark Biciunas [EMAIL PROTECTED] - Original Message - From: "Robert Wray" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, July 08, 2003 3:58 PM Subject: Re: images not appearing > Is capitalization important? docbase instead of docBase? > > At 03:09 PM 08/07/2003 -0400, you wrote: > >I am deploying a test servlet on Tomcat 4.1.24. Everything works great, the > >servlet executes, I get results back at my browser, but none of the images > >show up. > > > >In conf/server.xml, I have added the following: > > > > > > > prefix="localhost_helloworld_log." suffix=".txt" > > timestamp="true"/> > > > > > >In webapps/hello/WEB-INF/web.xml, I have the following: > > > > > > ... > > > > helloworld > > helloworld.Hello > > > > > > > > helloworld > > / > > > > > > > > > > > >The image directory has been created in webapps/hello, and the requested > >image does exist. As part of trying to resolve this, have placed copies of > >the image directory up and down the directory tree and tried calling the > >image in the servlet in a number of ways (ie: /images/image.gif, > >../images/image.gif, images/image.gif). Nothing seems to work to get the > >image to display!!! > > > >Any and all ideas would be greatly appreciated at this point!!! > > > >Mark > >[EMAIL PROTECTED] > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > Robert Wray, Engineer > Forestry Products, Alberta Research Council > Phone: (780) 450-5045 > Fax: (780) 450-5397 > [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: images not appearing
> -Original Message- > In webapps/hello/WEB-INF/web.xml, I have the following: > > > ... > > helloworld > helloworld.Hello > > > > helloworld > / > > > > > You are trying to map every request to your helloworld servlet. This means really *all* requests (including images etc.) Try to be a bit more specific, like /helloworld . See the spec (SRV.11) for more details on request mappings. -Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: images not appearing
Hi, I just tried typing http://192.168.1.4/images/tomcat.gif and got the usual helloworld html page back (still without images). I am not sure if this is where the problem is. What I need to do is have all requests get processed by my servlet and have it return the appropriate information (the 'real' application will parse the incoming URL to determine what needs to be done). Requests for images are not being handled by my servlet. BTW, since all the pages returned are generated dynamicaly, I am running Tomcat in standalone mode (no Apache). As an aside, this is an upgrade from an earlier version of the application which has been running successfully on 3.23 and 4.0x.. Please let me know if there is anything else I can check to see where the problem is? And thanks to everyone who has helped so far - it is very appreciated. Mark Biciunas Agorex Inc (905) 274-6785 [EMAIL PROTECTED] - Original Message - From: "Januski, Ken" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, July 08, 2003 4:11 PM Subject: RE: images not appearing > What happens if you type in browser: > "http://helloworld/images/specificImage.jpg"; or whatever the name of your > specific image is? > > > > -Original Message- > From: Mark Biciunas [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 08, 2003 4:08 PM > To: Tomcat Users List > Subject: Re: images not appearing > > > Again, I have a transcription error. In server.xml, it is actually > "docBase" so that shouldn't be the problem. > > > Mark Biciunas > [EMAIL PROTECTED] > - Original Message - > From: "Robert Wray" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Tuesday, July 08, 2003 3:58 PM > Subject: Re: images not appearing > > > > Is capitalization important? docbase instead of docBase? > > > > At 03:09 PM 08/07/2003 -0400, you wrote: > > >I am deploying a test servlet on Tomcat 4.1.24. Everything works great, > the > > >servlet executes, I get results back at my browser, but none of the > images > > >show up. > > > > > >In conf/server.xml, I have added the following: > > > > > > > > > > > prefix="localhost_helloworld_log." suffix=".txt" > > > timestamp="true"/> > > > > > > > > >In webapps/hello/WEB-INF/web.xml, I have the following: > > > > > > > > > ... > > > > > > helloworld > > > helloworld.Hello > > > > > > > > > > > > helloworld > > > / > > > > > > > > > > > > > > > > > >The image directory has been created in webapps/hello, and the requested > > >image does exist. As part of trying to resolve this, have placed copies > of > > >the image directory up and down the directory tree and tried calling the > > >image in the servlet in a number of ways (ie: /images/image.gif, > > >../images/image.gif, images/image.gif). Nothing seems to work to get the > > >image to display!!! > > > > > >Any and all ideas would be greatly appreciated at this point!!! > > > > > >Mark > > >[EMAIL PROTECTED] > > > > > > > > >- > > >To unsubscribe, e-mail: [EMAIL PROTECTED] > > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > Robert Wray, Engineer > > Forestry Products, Alberta Research Council > > Phone: (780) 450-5045 > > Fax: (780) 450-5397 > > [EMAIL PROTECTED] > > > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: images not appearing
It seems that the problem I was having in another thread is partially related to this and I' would like to know how to fix it. It seems that with the current setup I have, the files (in this case an image file) is being referred to the base OS directory, (in my case c:\). So for my installation, if I wanted to use a file "transform.xsl" in an application "test" in subfolder "transforms" with a tomcat installation directory of "c:\jakarta-tomcat-4.1.18", my servlet that wants to use that particular file would have to refer to it as "/jakarta-tomcat-4.1.18/webapps/test/transforms/transform.xsl" Is this what should be happening? How do you set up the servlet such that you can use a path relative to the base war directory? At 04:11 PM 08/07/2003 -0400, you wrote: What happens if you type in browser: "http://helloworld/images/specificImage.jpg"; or whatever the name of your specific image is? -Original Message- From: Mark Biciunas [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 4:08 PM To: Tomcat Users List Subject: Re: images not appearing Again, I have a transcription error. In server.xml, it is actually "docBase" so that shouldn't be the problem. Mark Biciunas [EMAIL PROTECTED] - Original Message - From: "Robert Wray" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, July 08, 2003 3:58 PM Subject: Re: images not appearing > Is capitalization important? docbase instead of docBase? > > At 03:09 PM 08/07/2003 -0400, you wrote: > >I am deploying a test servlet on Tomcat 4.1.24. Everything works great, the > >servlet executes, I get results back at my browser, but none of the images > >show up. > > > >In conf/server.xml, I have added the following: > > > > > > > prefix="localhost_helloworld_log." suffix=".txt" > > timestamp="true"/> > > > > > >In webapps/hello/WEB-INF/web.xml, I have the following: > > > > > > ... > > > > helloworld > > helloworld.Hello > > > > > > > > helloworld > > / > > > > > > > > > > > >The image directory has been created in webapps/hello, and the requested > >image does exist. As part of trying to resolve this, have placed copies of > >the image directory up and down the directory tree and tried calling the > >image in the servlet in a number of ways (ie: /images/image.gif, > >../images/image.gif, images/image.gif). Nothing seems to work to get the > >image to display!!! > > > >Any and all ideas would be greatly appreciated at this point!!! > > > >Mark > >[EMAIL PROTECTED] > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > Robert Wray, Engineer > Forestry Products, Alberta Research Council > Phone: (780) 450-5045 > Fax: (780) 450-5397 > [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Robert Wray, Engineer Forestry Products, Alberta Research Council Phone: (780) 450-5045 Fax: (780) 450-5397 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: images not appearing
What happens if you type in browser: "http://helloworld/images/specificImage.jpg"; or whatever the name of your specific image is? -Original Message- From: Mark Biciunas [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 4:08 PM To: Tomcat Users List Subject: Re: images not appearing Again, I have a transcription error. In server.xml, it is actually "docBase" so that shouldn't be the problem. Mark Biciunas [EMAIL PROTECTED] - Original Message - From: "Robert Wray" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, July 08, 2003 3:58 PM Subject: Re: images not appearing > Is capitalization important? docbase instead of docBase? > > At 03:09 PM 08/07/2003 -0400, you wrote: > >I am deploying a test servlet on Tomcat 4.1.24. Everything works great, the > >servlet executes, I get results back at my browser, but none of the images > >show up. > > > >In conf/server.xml, I have added the following: > > > > > > > prefix="localhost_helloworld_log." suffix=".txt" > > timestamp="true"/> > > > > > >In webapps/hello/WEB-INF/web.xml, I have the following: > > > > > > ... > > > > helloworld > > helloworld.Hello > > > > > > > > helloworld > > / > > > > > > > > > > > >The image directory has been created in webapps/hello, and the requested > >image does exist. As part of trying to resolve this, have placed copies of > >the image directory up and down the directory tree and tried calling the > >image in the servlet in a number of ways (ie: /images/image.gif, > >../images/image.gif, images/image.gif). Nothing seems to work to get the > >image to display!!! > > > >Any and all ideas would be greatly appreciated at this point!!! > > > >Mark > >[EMAIL PROTECTED] > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > Robert Wray, Engineer > Forestry Products, Alberta Research Council > Phone: (780) 450-5045 > Fax: (780) 450-5397 > [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: images not appearing
"Robert Wray" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > Is capitalization important? docbase instead of docBase? > Yeah, it is (welcome to the world of XML ;-) ) see http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html HTH, Yann > At 03:09 PM 08/07/2003 -0400, you wrote: > >I am deploying a test servlet on Tomcat 4.1.24. Everything works great, the > >servlet executes, I get results back at my browser, but none of the images > >show up. > > > >In conf/server.xml, I have added the following: > > > > > > > prefix="localhost_helloworld_log." suffix=".txt" > > timestamp="true"/> > > > > > >In webapps/hello/WEB-INF/web.xml, I have the following: > > > > > > ... > > > > helloworld > > helloworld.Hello > > > > > > > > helloworld > > / > > > > > > > > > > > >The image directory has been created in webapps/hello, and the requested > >image does exist. As part of trying to resolve this, have placed copies of > >the image directory up and down the directory tree and tried calling the > >image in the servlet in a number of ways (ie: /images/image.gif, > >../images/image.gif, images/image.gif). Nothing seems to work to get the > >image to display!!! > > > >Any and all ideas would be greatly appreciated at this point!!! > > > >Mark > >[EMAIL PROTECTED] > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > Robert Wray, Engineer > Forestry Products, Alberta Research Council > Phone: (780) 450-5045 > Fax: (780) 450-5397 > [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: images not appearing
Again, I have a transcription error. In server.xml, it is actually "docBase" so that shouldn't be the problem. Mark Biciunas [EMAIL PROTECTED] - Original Message - From: "Robert Wray" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Tuesday, July 08, 2003 3:58 PM Subject: Re: images not appearing > Is capitalization important? docbase instead of docBase? > > At 03:09 PM 08/07/2003 -0400, you wrote: > >I am deploying a test servlet on Tomcat 4.1.24. Everything works great, the > >servlet executes, I get results back at my browser, but none of the images > >show up. > > > >In conf/server.xml, I have added the following: > > > > > > > prefix="localhost_helloworld_log." suffix=".txt" > > timestamp="true"/> > > > > > >In webapps/hello/WEB-INF/web.xml, I have the following: > > > > > > ... > > > > helloworld > > helloworld.Hello > > > > > > > > helloworld > > / > > > > > > > > > > > >The image directory has been created in webapps/hello, and the requested > >image does exist. As part of trying to resolve this, have placed copies of > >the image directory up and down the directory tree and tried calling the > >image in the servlet in a number of ways (ie: /images/image.gif, > >../images/image.gif, images/image.gif). Nothing seems to work to get the > >image to display!!! > > > >Any and all ideas would be greatly appreciated at this point!!! > > > >Mark > >[EMAIL PROTECTED] > > > > > >- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > Robert Wray, Engineer > Forestry Products, Alberta Research Council > Phone: (780) 450-5045 > Fax: (780) 450-5397 > [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: images not appearing
Is capitalization important? docbase instead of docBase? At 03:09 PM 08/07/2003 -0400, you wrote: I am deploying a test servlet on Tomcat 4.1.24. Everything works great, the servlet executes, I get results back at my browser, but none of the images show up. In conf/server.xml, I have added the following: In webapps/hello/WEB-INF/web.xml, I have the following: ... helloworld helloworld.Hello helloworld / The image directory has been created in webapps/hello, and the requested image does exist. As part of trying to resolve this, have placed copies of the image directory up and down the directory tree and tried calling the image in the servlet in a number of ways (ie: /images/image.gif, ../images/image.gif, images/image.gif). Nothing seems to work to get the image to display!!! Any and all ideas would be greatly appreciated at this point!!! Mark [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Robert Wray, Engineer Forestry Products, Alberta Research Council Phone: (780) 450-5045 Fax: (780) 450-5397 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: images not appearing
Hi, My appologies for bad typing (I am transcribing from my text box). The webapp is in fact in "webapps/helloworld". And the images are in the images directory (as per a previous response). BTW, the application does run, I do get results back, it just can't display any images!!! I have set up the RequestDumperValve and checked the output. I see the requests for the images, but no errors. The other log files are also clean as near as I can see. If anyone can suggest a test I could set up to debug the problem, I would be glad to do it. Mark Biciunas [EMAIL PROTECTED] - Original Message - From: "Stefan Radzom" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Tuesday, July 08, 2003 3:31 PM Subject: RE: images not appearing > > > > > In conf/server.xml, I have added the following: > > > > > > > prefix="localhost_helloworld_log." suffix=".txt" > > timestamp="true"/> > > > > > > In server.xml you specified the docbase to be "helloworld". Make sure your > webapp is placed in "webapps/helloworld/" instead of just "webapps/hello/". > > > In webapps/hello/WEB-INF/web.xml, I have the following: > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: images not appearing
> > In conf/server.xml, I have added the following: > > >prefix="localhost_helloworld_log." suffix=".txt" > timestamp="true"/> > > In server.xml you specified the docbase to be "helloworld". Make sure your webapp is placed in "webapps/helloworld/" instead of just "webapps/hello/". > In webapps/hello/WEB-INF/web.xml, I have the following: > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: images not appearing
Hi, The directory name is "images", which matches up with how it is called in the program. Mark Biciunas Agorex Inc (905) 274-6785 [EMAIL PROTECTED] - Original Message - From: "RANDAD,KAILASH (HP-PaloAlto,ex1)" <[EMAIL PROTECTED]> To: "'Tomcat Users List'" <[EMAIL PROTECTED]> Sent: Tuesday, July 08, 2003 3:20 PM Subject: RE: images not appearing > HI > "The image directory has been created in webapps/hello".. > is the directory name "image" or "images"? Pls check... > > -Original Message- > From: Mark Biciunas [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 08, 2003 12:09 PM > To: [EMAIL PROTECTED] > Subject: images not appearing > > > I am deploying a test servlet on Tomcat 4.1.24. Everything works great, the > servlet executes, I get results back at my browser, but none of the images > show up. > > In conf/server.xml, I have added the following: > > >prefix="localhost_helloworld_log." suffix=".txt" > timestamp="true"/> > > > In webapps/hello/WEB-INF/web.xml, I have the following: > > > ... > > helloworld > helloworld.Hello > > > > helloworld > / > > > > > > The image directory has been created in webapps/hello, and the requested > image does exist. As part of trying to resolve this, have placed copies of > the image directory up and down the directory tree and tried calling the > image in the servlet in a number of ways (ie: /images/image.gif, > ../images/image.gif, images/image.gif). Nothing seems to work to get the > image to display!!! > > Any and all ideas would be greatly appreciated at this point!!! > > Mark > [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: images not appearing
HI "The image directory has been created in webapps/hello".. is the directory name "image" or "images"? Pls check... -Original Message- From: Mark Biciunas [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 08, 2003 12:09 PM To: [EMAIL PROTECTED] Subject: images not appearing I am deploying a test servlet on Tomcat 4.1.24. Everything works great, the servlet executes, I get results back at my browser, but none of the images show up. In conf/server.xml, I have added the following: In webapps/hello/WEB-INF/web.xml, I have the following: ... helloworld helloworld.Hello helloworld / The image directory has been created in webapps/hello, and the requested image does exist. As part of trying to resolve this, have placed copies of the image directory up and down the directory tree and tried calling the image in the servlet in a number of ways (ie: /images/image.gif, ../images/image.gif, images/image.gif). Nothing seems to work to get the image to display!!! Any and all ideas would be greatly appreciated at this point!!! Mark [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]