Khurram,

kz wrote:
> I am having this problem that images are not shown in the page
> properly when we load the page for the first time.

Are you using Apache httpd in front of Tomcat? This often happens before
Tomcat has decided that your browser can support cookies and so all your
URLs have the session id encoded in them.

Apache httpd is confused by these URLs when asked to handle them and
ends up returning 404s for those requests. It happens with any encoded
URL that you use from Tomcat (such as CSS files, etc.) and the main
symptom is that images do not show up and the styles are missing.

A simple RELOAD of the page in the browser often will redisplay the page
properly.

If this is the problem, then there are two obvious solutions:

1. Use mod_rewrite to trim-off ";jsessionid=[0-9A-Z]+" from your URLs.
   This incantation worked for me:

   RewriteRule /your-app/(.*);jsessionid=[0-9A-Z]*(.*)   \ (no newline)
               /path/to/tomcat/webapps/your-app/$1$2 [L]

2. Use mod_jk's new JkStripSession attribute (1.2.21 or later, I think).

> I even tried to pre-load images in my cache. But the problem isn't 
> solved. I am using IE. Is there any configuration of Tomcat which I
> am not using properly? What else could be the problem?

Does this only happen in MSIE?

-chris


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to