Re: Tomcat 9.0.87 - status 400 in css / images

2024-04-02 Thread Konstantin Kolinko
пн, 1 апр. 2024 г. в 23:54, DAngel : > > Hi! > > I am using http 1.1 > > The browser connects directly to tomcat (in my environment, I directly > access localhost:8080/myApp ) > > In my development environment I can do the necessary tests (without > restrictions) > > I can always reproduce the

Re: Tomcat 9.0.87 - status 400 in css / images

2024-04-01 Thread DAngel
TTP > > > > I have migrated an application from tomcat 7 (7.0.76) to tomcat 9.0.76 > (and > > also to tomcat 9.0.87) > > > > After upgrading to Tomcat 9.0.76, the web page is not displaying > correctly > > as some CSS/images are returning HTTP status 400.

Re: Tomcat 9.0.87 - status 400 in css / images

2024-03-25 Thread Christopher Schultz
.0.76, the web page is not displaying correctly as some CSS/images are returning HTTP status 400. If we reload the browser, it works fine. When this happens, the "type" of the resources is text/html . My error is similar to this: https://stackoverflow.com/questions/77989064/intermitt

Tomcat 9.0.87 - status 400 in css / images

2024-03-22 Thread DAngel
displaying correctly as some CSS/images are returning HTTP status 400. If we reload the browser, it works fine. When this happens, the "type" of the resources is text/html . My error is similar to this: https://stackoverflow.com/questions/77989064/intermittently-getting-status-400-for

Re: [OT] loading images through a Servlet

2015-10-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Bill, On 10/2/15 5:02 PM, Bill Ross wrote: > On 10/2/2015 1:55 PM, André Warnier (tomcat) wrote: >> On 02.10.2015 21:18, Bill Ross wrote: >>> Installed FF, HttpFox wasn't installed, installed it but it >>> doesn't show up under developer tools, but

Re: [OT] loading images through a Servlet

2015-10-02 Thread Bill Ross
he URL and protected myself against later downloads: HTTP ERROR 404 Problem accessing /images/_ewjMC3. Reason: Not Found While on the server side: ...TagResourceServlet - DANGER OLD HASH ATTACK ... Will the fame and money just arrive? I'll settle for 6 month's salary (that'

Re: [OT] loading images through a Servlet

2015-10-02 Thread tomcat
, I have definitely masked the name in the URL and protected myself against later downloads: HTTP ERROR 404 Problem accessing /images/_ewjMC3. Reason: Not Found While on the server side: ...TagResourceServlet - DANGER OLD HASH ATTACK ... Will the fame and money just arrive? I'll

Re: [OT] loading images through a Servlet

2015-10-02 Thread Bill Ross
st later downloads: HTTP ERROR 404 Problem accessing /images/_ewjMC3. Reason: Not Found While on the server side: ...TagResourceServlet - DANGER OLD HASH ATTACK ... Will the fame and money just arrive? I'll settle for 6 month's salary (that's how long I've been working

Re: loading images through a Servlet

2015-10-02 Thread Bill Ross
2/2015 8:26 AM (GMT-08:00) To: users@tomcat.apache.org Subject: Re: loading images through a Servlet On 02.10.2015 17:04, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > André, > > On 10/2/15 10:38 AM, André Warnier (tomcat) wrote: >>

Re: loading images through a Servlet

2015-10-02 Thread Bill Ross
I agree it's not a million-dollar idea - I will settle for half! :-)  Nowadays a lawyer might try for a patent. Bill Original message From: "André Warnier (tomcat)" Date:10/02/2015 8:26 AM (GMT-08:00) To: users@tomcat.apache.org Subject: Re: loading im

Re: loading images through a Servlet

2015-10-02 Thread tomcat
e than that, though : a user cannot, for example, save the html page containing the images, and then reload it later, and still see get the images with the same image links, because they will have "expired". Neither can one of these image links simply be copied to a friend in an email,

Re: loading images through a Servlet

2015-10-02 Thread Christopher Schultz
well-considered reply. To Thad - thanks, >>>> I also asked on stackoverflow after here. >>>> >>>> I believe I have solved the obfuscation problem independent >>>> of the javascript issue. What I just got working is >>>> logically: >>>>

Re: loading images through a Servlet

2015-10-02 Thread tomcat
issue. What I just got working is logically: img.src = "/images/" + /servlet/getnext(params) Where I now have a Servlet at /images that serves the file, thanks to a generous coder at stackoverflow. I'll post the nicely designed code here if anyone wants. Why not just use the Defa

Re: loading images through a Servlet

2015-10-02 Thread Christopher Schultz
ipt issue. What I just got working is logically: > > img.src = "/images/" + /servlet/getnext(params) > > Where I now have a Servlet at /images that serves the file, thanks > to a generous coder at stackoverflow. I'll post the nicely designed > code here if an

Re: [OT] loading images through a Servlet

2015-10-02 Thread tomcat
HTTP ERROR 404 Problem accessing /images/_ewjMC3. Reason: Not Found While on the server side: ...TagResourceServlet - DANGER OLD HASH ATTACK ... Will the fame and money just arrive? I'll settle for 6 month's salary (that's how long I've been working on my own unpa

Re:[OT] loading images through a Servlet

2015-10-02 Thread Bill Ross
Whether or not I have masked the file name in the header properly, which I can't verify easily but believe is working, I have definitely masked the name in the URL and protected myself against later downloads: HTTP ERROR 404 Problem accessing /images/_ewjMC3. Reason:     Not Found Whi

Re:[OT] loading images through a Servlet

2015-10-02 Thread tomcat
ct: Re: loading images through a Servlet Thanks Andre for the well-considered reply. To Thad - thanks, I also asked on stackoverflow after here. I believe I have solved the obfuscation problem independent of the javascript issue. What I just got working is logically: img.src = "

Re: loading images through a Servlet

2015-10-02 Thread Bill Ross
ssage From: Bill Ross Date:10/02/2015 2:04 AM (GMT-08:00) To: Tomcat Users List Subject: Re: loading images through a Servlet Thanks Andre for the well-considered reply. To Thad - thanks, I also asked on stackoverflow after here. I believe I have solved the obfuscation problem independent o

Re: loading images through a Servlet

2015-10-02 Thread Bill Ross
Thanks Andre for the well-considered reply. To Thad - thanks, I also asked on stackoverflow after here. I believe I have solved the obfuscation problem independent of the javascript issue. What I just got working is logically: img.src = "/images/" + /servlet/getnext(params) W

Re: loading images through a Servlet

2015-10-02 Thread tomcat
the client (user). So, as long as /that/ is not your ultimate purpose, I have a slide show web page that does the logical equivalent of: var img = new Image(); img.src = "/images/" + /servlet/getnextfile(params) img.[onload]: document["image"].src = img.src; res

Re: loading images through a Servlet

2015-10-02 Thread tomcat
as long as /that/ is not your ultimate purpose, I have a slide show web page that does the logical equivalent of: var img = new Image(); img.src = "/images/" + /servlet/getnextfile(params) img.[onload]: document["image"].src = img.src; resizeImage(); Rather than u

Re: loading images through a Servlet

2015-10-01 Thread Thad Humphries
r question to Stackoverflow. On Thu, Oct 1, 2015 at 5:52 PM, Bill Ross wrote: > Please let me know if there is a better place to ask Servlet/javascript > interface questions. > > I have a slide show web page that does the logical equivalent of: > > var img = new Image

loading images through a Servlet

2015-10-01 Thread Bill Ross
Please let me know if there is a better place to ask Servlet/javascript interface questions. I have a slide show web page that does the logical equivalent of: var img = new Image(); img.src = "/images/" + /servlet/getnextfile(params) img.[onload]: document["image&

Re: PNG images are served intermittently in Apache Tomcat 8.0.15

2015-03-31 Thread Mark Thomas
On 31/03/2015 10:29, Selvakumar Sellamuthu Ayyavu wrote: > Question: > > Is it a known problem? No. > If so, can I get a link from issue tracker? N/A. > Can I have a work around? N/A. > If you want more info, please let me know... 1. Do you see the issue with Apache Tomcat 8.0.21? 2. If y

PNG images are served intermittently in Apache Tomcat 8.0.15

2015-03-31 Thread Selvakumar Sellamuthu Ayyavu
Hi All, Problem: PNG images are served intermittently from Apache Tomcat 8.0.15 in IE8 Platform: Windows Server 2008 Description: I have recently migrated from Tomcat 7 to Tomcat 8. Everything is working fine in Tomcat 8. Except these PNGs. But when I run WAR in Tomcat 7 these problems are not

Re: restricting access to images

2015-03-10 Thread Neven Cvetkovic
Carl, Chris and Chuck have already provided great insights. Below are few thoughts to consider. On 3/9/15 12:04 PM, Carl Dreher wrote: > > I need to restrict access to a website's images, to people that > > have logged on, have authorization etc. I've searched though

Re: restricting access to images

2015-03-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Carl, On 3/9/15 12:04 PM, Carl Dreher wrote: > I need to restrict access to a website's images, to people that > have logged on, have authorization etc. I've searched though the > Tomcat user's mailing list archives and

RE: restricting access to images

2015-03-09 Thread Caldarale, Charles R
> From: Carl Dreher [mailto:focus...@arn.net] > Subject: restricting access to images > I need to restrict access to a website's images, to people that have > logged on, have authorization etc. I've searched though the Tomcat > user's mailing list archives and

restricting access to images

2015-03-09 Thread Carl Dreher
I need to restrict access to a website's images, to people that have logged on, have authorization etc. I've searched though the Tomcat user's mailing list archives and didn't find a discussion that addressed this, so I thought I'd asked for some architectural guidance

Re: How to fix the problem of partial loading of images?

2014-11-15 Thread Felix Schumacher
! Thanks for your response. What is serving the images (default servlet, own servlet, ...)? The system consists of following parts: 1) The web app based on Primefaces Mobile 2) A server In the web app, I have following xhtml page, which is supposed to display the image: Source (start) http

Re: How to fix the problem of partial loading of images?

2014-11-01 Thread Dmitri Pisarenko
Hello Felix! Thanks for your response. > What is serving the images (default servlet, own servlet, ...)? The system consists of following parts: 1) The web app based on Primefaces Mobile 2) A server In the web app, I have following xhtml page, which is supposed to display the image: Sou

Re: How to fix the problem of partial loading of images?

2014-11-01 Thread Felix Schumacher
Am 01.11.2014 um 09:28 schrieb Dmitri Pisarenko: Hi! I have a web application, which runs on an Apache Tomcat 7 instance. The application loads images from a web service and then displays it. Sometimes, but not always, the image is displayed only partially (for an example, see http

How to fix the problem of partial loading of images?

2014-11-01 Thread Dmitri Pisarenko
Hi! I have a web application, which runs on an Apache Tomcat 7 instance. The application loads images from a web service and then displays it. Sometimes, but not always, the image is displayed only partially (for an example, see http://i.stack.imgur.com/Nup8o.png ). Provided that the problem

Re: Severe performance issues on images

2014-06-26 Thread Christopher Schultz
equired. This would correspond with the > bandwidth issue. > > >> Wait, you have a server with 64GiB of RAM? Cool. And it serves >> images for a living? Weird. > > It is both cool and weird. :P The reason for 64Gb is basically that > when things break down, more ram and

Re: Severe performance issues on images

2014-06-25 Thread Jim Lindqvist
ng Tomcat is required. This would correspond with the bandwidth issue. > Wait, you have a server with 64GiB of RAM? Cool. And it serves images > for a living? Weird. It is both cool and weird. :P The reason for 64Gb is basically that when things break down, more ram and cpu delays the problem.

Re: Severe performance issues on images

2014-06-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Jim, On 6/23/14, 4:21 PM, Jim Lindqvist wrote: > I have I server with Apache and Tomcat through jk_mod and the > perfonrmance is awful. This is mostly confined to images as far as > I know, but it is hard to tell. > > The images

Severe performance issues on images

2014-06-23 Thread Jim Lindqvist
Hi, I have I server with Apache and Tomcat through jk_mod and the perfonrmance is awful. This is mostly confined to images as far as I know, but it is hard to tell. The images are served from Apache with the help of the following lines: # Serve static content from /resources and /data using

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-24 Thread Christopher Schultz
nderstand >> your own URL space: you might always know that /images/X will >> translate directly into /file/place/on/the/disk/X and you don't >> have to do a prefix match. You could do something like this: >> >> // configured once Map dirMapping = ...; String >&g

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-22 Thread Kiran Badi
On 9/17/2012 10:20 PM, Christopher Schultz wrote: If you instead implemented your own "aliases" feature using a servlet, you could do it in a smarter way because you understand your own URL space: you might always know that /images/X will translate directly into /file/place/on/the/disk

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kiran, On 9/13/12 8:24 PM, Kiran Badi wrote: > On 9/13/2012 8:13 AM, Christopher Schultz wrote: >> Large sites will use a single URL that ends up resolving the >> images from some kind of data source. That data source might be a &g

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-13 Thread Kiran Badi
On 9/13/2012 8:13 AM, Christopher Schultz wrote: Large sites will use a single URL that ends up resolving the images from some kind of data source. That data source might be a disk (e.g. you could forward to the DefaultServlet) or a database (relational or otherwise) where you would write your

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-13 Thread Vishwanath Washimkar
"/UploadedImages=c:/UploadedImages,/st=c:/st,/sb=c:/sb,/UploadedImages/scr=c:/UploadedImages/scr,/UploadedImages/scyr=c:/UploadedImages/scyr,/UploadedImages/sem=c:/UploadedImages/sem"> > > > > > > > > Now I have one clarification, I am going need close to 150 >

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-12 Thread Christopher Schultz
ploadedImages,/st=c:/st,/sb=c:/sb,/UploadedImages/scr=c:/UploadedImages/scr,/UploadedImages/scyr=c:/UploadedImages/scyr,/UploadedImages/sem=c:/UploadedImages/sem"> > > > > Now I have one clarification, I am going need close to 150 > categories(think of marketplace) an

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-11 Thread Konstantin Kolinko
adedImages/scr,/UploadedImages/scyr=c:/UploadedImages/scyr,/UploadedImages/sem=c:/UploadedImages/sem"> > > Now I have one clarification, I am going need close to 150 categories(think > of marketplace) and there will be fair amount of images upload which my > users will be doing.

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-11 Thread Kiran Badi
ne clarification, I am going need close to 150 categories(think of marketplace) and there will be fair amount of images upload which my users will be doing. I expect the aliases to grow till 150 to 200 paths, do you feel this is correct.I am not sure as how large sites deal when they have heavy

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-08 Thread Kiran Badi
have separate folders where the Images should go in. Currently for all categories my images goes into the C://UploadedImages folder and it working fine. Now I was wondering , if its possible that I can do something like, Regarding the aliases feature: single path -> multiple file paths:

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-08 Thread Konstantin Kolinko
2012/9/8 Kiran Badi : > Hi Chris and All, > > I hope its alright if I reopen my old thread since I want to expand my > earlier requirement. > > I have a requirement where for each category I need to have separate > folders where the Images should go in. > > Currently f

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-09-07 Thread Kiran Badi
Hi Chris and All, I hope its alright if I reopen my old thread since I want to expand my earlier requirement. I have a requirement where for each category I need to have separate folders where the Images should go in. Currently for all categories my images goes into the C://UploadedImages

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-06-05 Thread Kiran Badi
On 6/5/2012 7:41 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kiran, On 6/5/12 1:31 AM, Kiran Badi wrote: After playing around for a day, this is another solutions which worked for me, with Tomcat 7.0.11 in context.xml Good, except that you should really u

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-06-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kiran, On 6/5/12 1:31 AM, Kiran Badi wrote: > After playing around for a day, > > this is another solutions which worked for me, > > > with Tomcat 7.0.11 in context.xml Good, except that you should really upgrade to the latest Tomcat 7.0 version.

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-06-04 Thread Kiran Badi
After playing around for a day, this is another solutions which worked for me, with Tomcat 7.0.11 in context.xml I think now I understand as how aliases work, /UploadedImages is the aliaspath and c:/UploadedImages is the docbase to which it refers. Is this understanding correct ? In mana

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-06-01 Thread Kiran Badi
On 6/1/2012 9:27 PM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kiran, On 5/31/12 10:37 PM, Kiran Badi wrote: Ok I did it this way in TC 7.0.27 as I decided not to touch Netbeans setup with 7.0.11( I had messed up TC7.0.11 after doing several trial and error stuf

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-06-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kiran, On 5/31/12 10:37 PM, Kiran Badi wrote: > Ok I did it this way in TC 7.0.27 as I decided not to touch > Netbeans setup with 7.0.11( I had messed up TC7.0.11 after doing > several trial and error stuff,felt real pain) > > I have TC7.0.27 running

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-05-31 Thread Kiran Badi
/Chrome by default do allow to access local file system on the client.Good till here. But I am not able to figure out where do I store the images now so that I can display it correctly and they remain in place when I redeploy the app? First, you need to reference them from your web pages using ht

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-05-30 Thread Kiran Badi
s with 404 status. Now I can understand that this is FF/Chrome by default do allow to access local file system on the client.Good till here. But I am not able to figure out where do I store the images now so that I can display it correctly and they remain in place when I redeploy the app? First

Re: Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-05-29 Thread Christopher Schultz
ow to > access local file system on the client.Good till here. > > But I am not able to figure out where do I store the images now so > that I can display it correctly and they remain in place when I > redeploy the app? First, you need to reference them from your web pages using http://

Where do I store Images in tomcat structure so that I can retrive it properly in all browsers

2012-05-28 Thread Kiran Badi
ils saying cannot load local resources with 404 status. Now I can understand that this is FF/Chrome by default do allow to access local file system on the client.Good till here. But I am not able to figure out where do I store the images now so that I can display it correctly and they remain in pl

Re: Unable to access images stored in webapps//WEB-INF/images ?

2012-01-24 Thread Alastair Baldwin
Thank you all for clearing that up. Alastair - Original Message - From: "Caldarale, Charles R" To: Tomcat Users List Cc: Sent: Tuesday, 24 January 2012, 2:00 Subject: RE: Unable to access images stored in webapps//WEB-INF/images ? > From: removeps-c...@yahoo.com [mail

RE: Unable to access images stored in webapps//WEB-INF/images ?

2012-01-23 Thread Caldarale, Charles R
> From: removeps-c...@yahoo.com [mailto:removeps-c...@yahoo.com] > Subject: Re: Unable to access images stored in webapps//WEB-INF/images > ? > Tomcat doesn't let you access anything in the META-INF or WEB-INF folders. It's not just Tomcat - the servlet spec forbids d

Re: Unable to access images stored in webapps//WEB-INF/images ?

2012-01-23 Thread removeps-code
l and see your implementation details. --- On Mon, 1/23/12, Alastair Baldwin wrote: > From: Alastair Baldwin > Subject: Unable to access images stored in webapps//WEB-INF/images ? > To: "users@tomcat.apache.org" > Date: Monday, January 23, 2012, 5:21 PM > Dear User

Re: Unable to access images stored in webapps//WEB-INF/images ?

2012-01-23 Thread Igor Cicimov
On Tue, Jan 24, 2012 at 12:21 PM, Alastair Baldwin < alastairgbald...@yahoo.co.uk> wrote: > Dear Users > > Why am I able to access images stored here: > > http://localhost:8080/imageUploader/1234.jpg > > > but not here: > > http://localhost:8080/imageUploade

Unable to access images stored in webapps//WEB-INF/images ?

2012-01-23 Thread Alastair Baldwin
Dear Users Why am I able to access images stored here: http://localhost:8080/imageUploader/1234.jpg but not here: http://localhost:8080/imageUploader/WEB-INF/images/1234.jpg File permissions are the same Any ideas? Thanks Alastair

Browser Caching Of Static Files (css/images/js)

2011-07-16 Thread Reinwald Warapen
Hey, I recently implemented that static resources of my web application running on Tomcat v 6.0.32 should be cached by the browser for a very large period of time (> 1 year) . Though of sharing these helpful articles for those who are interested in the same. http://www.reinwaldwarapen.com/

RE: [tomcat 7 migartion] cannot load images with jsession id in url

2011-06-23 Thread Guy Katz
7 migartion] cannot load images with jsession id in url 2011/6/22 Guy Katz : > Hi all; > > I am migrating to tomcat 7 from 6. > > In tomcat 6 urls like > http://68.169.51.83:8080/gallery/wave_surfing_gallery_thumb_652.jpg;js > es > sionid=A859D830090798F238DABADC713C1327 wo

Re: [tomcat 7 migartion] cannot load images with jsession id in url

2011-06-22 Thread Konstantin Kolinko
aders E.g. with wget --save-headers If Tomcat 7 were not able to serve images it would have been noted a long ago. Best regards, Konstantin Kolinko - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org

[tomcat 7 migartion] cannot load images with jsession id in url

2011-06-21 Thread Guy Katz
Hi all; I am migrating to tomcat 7 from 6. In tomcat 6 urls like http://68.169.51.83:8080/gallery/wave_surfing_gallery_thumb_652.jpg;jses sionid=A859D830090798F238DABADC713C1327 would load an image but in tomcat 7 I get the following response: The Image "." cannot be displayed because it cont

Re: [OT] storing images

2011-05-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexis, On 5/13/2011 11:14 AM, alexis wrote: > upon new data, what i only build new are the series, then i get the > object on the servletcontext and set the new data inside this object > (if exists, if not, the whole chart object is created) That's

Re: [OT] storing images

2011-05-13 Thread alexis
On May 13, 2011, at 11:47 AM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > Alexis, > > Marking off-topic because this has nothing whatsoever to do with Tomcat. > > On 5/11/2011 5:06 PM, alexis wrote: >> For real time purposes,

Re: [OT] storing images

2011-05-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexis, Marking off-topic because this has nothing whatsoever to do with Tomcat. On 5/11/2011 5:06 PM, alexis wrote: > For real time purposes, im building images I get it. > We'll going to images, what i store in servletcon

Re: storing images

2011-05-11 Thread alexis
Sorry guys ive been not so clear. here's the deal , ill explain the whole process trying to resume so nobody gets bored reading :) final images are 400x300px (sometimes png, sometimes jpg) containing pie charts, bar charts, etc. The webapp is constantly connected getting information from

Re: storing images

2011-05-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexis, On 5/6/2011 12:37 PM, alexis wrote: > small images (never more than 35kB) in a LAN. :) Martin's comment was, as usual, off-topic and hot terribly helpful. Martin, use of the JAI doesn't have anything to do with bandwidth unl

Re: storing images

2011-05-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexis, On 5/6/2011 10:52 AM, alexis wrote: > I understand, but i have top 12 images of 35kbytes, no more. Fair enough. > Encoding load is an issue yes, but the images are reflecting > callcenters call queues and some stuff related so th

Re: How to configure Access logs to ignore images

2011-05-07 Thread Arun Rajendran
fix=".txt" pattern="common" > resolveHosts="false"/> > > > > -- View this message in context: http://old.nabble.com/How-to-configure-Access-logs-to-ignore-images-tp23714046p31567407.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org

Re: storing images

2011-05-06 Thread alexis
small images (never more than 35kB) in a LAN. :) On May 6, 2011, at 1:12 PM, Martin Gainty wrote: > > depends on available bandwidth as well as the memory available on the client > side > if bandwidth is an issue you may want to implement some manner of compression > with jai

RE: storing images

2011-05-06 Thread Martin Gainty
lement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Subject: Re: storing images > To: users@tomcat.apache.org > From: alz...@gmail.com > Date: Fri, 6 May 2011 14:5

Re: storing images

2011-05-06 Thread alexis
I understand, but i have top 12 images of 35kbytes, no more. Encoding load is an issue yes, but the images are reflecting callcenters call queues and some stuff related so the need to refresh and rebuild the images is a requirement. What im thinking is to avoid the generation upon servlet calls

RE: storing images

2011-05-06 Thread Joseph Morgan
Alexis, We do this exact same thing all the time. I solve the concurrency on the image problem by adding a small session hash value to the image name. It does mean we may get 10 of the same images if 10 concurrent access are happening, but it also allows us clean things up without worry of

Re: storing images

2011-05-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexis, On 5/5/2011 8:19 PM, alexis wrote: > Im storing the images as servletcontext attribute. Uh... in memory? That's a bad idea IMO for two reasons: 1. Large memory requirements 2. Likely repeated encoding into a file format like JPEG,

Re: storing images

2011-05-06 Thread alexis
berry -Original Message- From: sebb Date: Fri, 6 May 2011 14:05:14 To: Tomcat Users List Reply-To: "Tomcat Users List" Subject: Re: storing images If multiple threads try to create the image at the same time it is possible that one thread will see a partial file - or the file may

Re: storing images

2011-05-06 Thread sebb
tried with /tmp, i tried with servletcontext.getpath to store the file on >> that dir, nothing seems to work. where should i store and reference those >> images to be written by the servlet and read by the jsp? >> >> thanks in advance >> >> >>

Re: storing images

2011-05-06 Thread Thad Humphries
he servlet (done) , store the image on > the disk (done), and return the tab also done. Thing is, where im able > to store the image from the servlet im not able to read it from the jsp. > > I tried with /tmp, i tried with servletcontext.getpath to store the file on > that dir, nothing se

Re: storing images

2011-05-06 Thread alexis
-Original Message- From: Mark Thomas Date: Fri, 06 May 2011 09:09:55 To: Tomcat Users List Reply-To: "Tomcat Users List" Subject: Re: storing images On 06/05/2011 01:19, alexis wrote: > What i did (im testing and profiling it) is. > > As the images are around 10/12 and each ima

Re: storing images

2011-05-06 Thread alexis
It's ok, theres no need to keep or persist images on reloads/restart/reboots. Since images are graphs generates with jfreechart on measurements done live by the same webapp. So, upon reboot if the getattribute from servletcontext requesting an image returns null, i return a message fro

Re: storing images

2011-05-06 Thread Mark Thomas
On 06/05/2011 01:19, alexis wrote: > What i did (im testing and profiling it) is. > > As the images are around 10/12 and each image has around 30 to 35k. > > Im storing the images as servletcontext attribute. > > So calling to the servlet with ?code=1 builds and sto

RE: storing images

2011-05-05 Thread Martin Gainty
nt obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Subject: Re: storing images > To: users@tomcat.apache.org > From: alz...@gmail.com > Date: Fri, 6 May 2011 01:32:40

Re: storing images

2011-05-05 Thread alexis
- From: Martin Gainty Date: Thu, 5 May 2011 21:26:12 To: Tomcat Users List Reply-To: "Tomcat Users List" Subject: RE: storing images achieved if you correspond the userid-imageid parameter with the acquired image identifier e.g. ?code=1.1 puts user1 image 1 on servlet and retur

RE: storing images

2011-05-05 Thread Martin Gainty
importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Subject: Re: storing images > To: users@tomcat.apache.org > From: alz...@gmail.com > Date:

Re: storing images

2011-05-05 Thread alexis
What i did (im testing and profiling it) is. As the images are around 10/12 and each image has around 30 to 35k. Im storing the images as servletcontext attribute. So calling to the servlet with ?code=1 builds and stores image1 on servlet context. And returns html with So ajax sends that to

Re: storing images

2011-05-05 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alexis, On 5/5/2011 2:19 PM, alexis wrote: > I have a servlet that basically does > > . creates an image > . store the image on disk > . returns an html tag pointing to the stored image. > > there's no way to return binary content (the image) from

Re: storing images

2011-05-05 Thread alexis
perfect, ill check this. Thanks for the answer. On May 5, 2011, at 5:42 PM, Leo Donahue - PLANDEVX wrote: >> -Original Message- >> From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] >> Subject: RE: storing images >> >>> From: alexis [mai

RE: storing images

2011-05-05 Thread Leo Donahue - PLANDEVX
>-Original Message- >From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] >Subject: RE: storing images > >> From: alexis [mailto:alz...@gmail.com] >> Subject: storing images > > >You have a couple of options: > >1) Create a dummy webapp whos

RE: storing images

2011-05-05 Thread Caldarale, Charles R
> From: alexis [mailto:alz...@gmail.com] > Subject: storing images > So, i have to create the image on the servlet (done) , store > the image on the disk (done), and return the tab also > done. Thing is, where im able to store the image from the > servlet im not able to re

Re: storing images

2011-05-05 Thread David kerber
tried with servletcontext.getpath to store the file on that dir, nothing seems to work. where should i store and reference those images to be written by the servlet and read by the jsp? Will java.io.tmpdir work? D - To unsubscri

storing images

2011-05-05 Thread alexis
store the file on that dir, nothing seems to work. where should i store and reference those images to be written by the servlet and read by the jsp? thanks in advance - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.or

Re: [css-d] Floating images - understanding the details

2010-08-19 Thread André Warnier
Wesley Acheson wrote: Pardon I knew that, I must have been having an off day. Yes what I said is wrong. And you are having another, it seems. Isn't this the wrong list for that ? Oh well, there are just weeks like that.. - To

Re: [css-d] Floating images - understanding the details

2010-08-19 Thread Wesley Acheson
Pardon I knew that, I must have been having an off day. Yes what I said is wrong. On Thu, Aug 19, 2010 at 12:46 PM, Bobby Jack wrote: > --- On Wed, 8/18/10, Wesley Acheson wrote: > > No-one spotted the deliberate mistake? ;) > > > 4 values: are Top, bottom, left and right. > > should be > > 4 v

Re: DB connection error and broken images while changing webapp context path

2010-08-13 Thread Mark Eggers
ested, then post your information (Tomcat server version - complete with minor revision numbers, JRE version, OS, server.xml with no comments and sensitive info blanked out, web.xml from your application, hibernate.cfg.xml, Spring configuration files, and where your images are located in y

Re: DB connection error and broken images while changing webapp context path

2010-08-13 Thread David Smith
te: > Hello All. > > I have Apache Tomcat 6 server running on Ubuntu 9.10. . I've changed my > application context path http://myip:8080/myapp to http://myip:8080 by > making changes in server.xml. > > > resourceName="UserDatabase"/> > xmlValidation="

Re: DB connection error and broken images while changing webapp context path

2010-08-13 Thread Astghik
And to create virtual host and to set my webapp as root dir. I've done both of them. But now I have db access problems and images on site don't display. Estanislao Gonzalez-2 wrote: > > Hi Astghik, > > I don't really have a clue on your problem as I think you are

Re: DB connection error and broken images while changing webapp context path

2010-08-13 Thread Estanislao Gonzalez
/ROOT instead of webaps/myapp. But maybe you wanted to achieve something else... In any case I think you should check your images are being properly accessed (use firebug or something alike) and see if the path being resolved for them make sense (note you have set www.myip.com as host pointing to

  1   2   3   >