We had the same problem while deploying our application running apache/tomcat.
As I understand it, during the first transaction of any session, there are no cookies to maintain session information, so tomcat appends the session ID in the URL. The problem then is apache does not recognise session IDs; the dynamic components which apache normally sends off to tomcat work fine, but normal images and static html which apache normally serves will result in errors. Our solution was to strip off the session ID off static content so that apache can still serve them; we did this by RewriteRule (.*[gif|jpg|html])\;jsessionid.*$ $1 [R] There might be a better way to do this as that rule will mean a "double hit" on apache for every static request containing a session ID - first hit "GET /index.html;jsessionid=1E84A042615444560A5E25DF8D277267" which is rewritten to "GET /index.html" The other solution below means that tomcat will also be made to serve static content which have the session ID attached (more work for your app server or more work for your webserver, assuming you have a multi tiered environment). Kwong. -----Original Message----- From: Zabel, Ian [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 12 February 2003 4:14 To: 'Tomcat Users List' Subject: RE: jsessionid problem You may benefit from this thread: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&frame=right&th=6 59de1293fa4e814&seekm=92dh6a%2472j%2403%241%40news.t-online.com#link4 If that's not one long URL, you'll need to copy and paste all three lines together into your browser to get the link. Ian. -----Original Message----- From: vivek karkun [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 11, 2003 12:07 PM To: Tomcat Users List Subject: RE: jsessionid problem i am using the precomplied mod_jk for solaris 8 whcih was available a few days back. Would there be some trick that i could use in httpd.conf file for url rewrting? --- "Zabel, Ian" <[EMAIL PROTECTED]> wrote: > Are you using mod_jk? And maybe an older version? > > Older versions of mod_jk had trouble with URLs that > include the ; in them, > but the newer ones work fine. > > Ian. > > -----Original Message----- > From: vivek karkun [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, February 11, 2003 11:41 AM > To: [EMAIL PROTECTED] > Subject: jsessionid problem > > when i delete my cookie file and go to > ww.mytest.com, > the index page comes up fine, but on the index page > there are a couple of urls like this > http://www.mytest.com/y/z and when i click this i > get > a broken page(404) error with the url like this > http://www.mytest.com/x/y/;jsessionid=1E84A042615444560A5E25DF8D277267. > However when i go back and click the same url or any > url on the index page everything works fine, infact > all the urls now show up like this > http://www.mytest.com/x/y or http://mytest.com/a/b. > __________________________________________________ Do you Yahoo!? Yahoo! Shopping - Send Flowers for Valentine's Day http://shopping.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] www.sensis.com.au A leading Australian advertising, information and directories business. www.yellowpages.com.au www.whitepages.com.au www.citysearch.com.au www.whereis.com.au www.telstra.com.au This email and any attachments are intended only for the use of the recipient and may be confidential and/or legally privileged. Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, loss and/or damage arising from using, opening or transmitting this email. If you are not the intended recipient you must not use, interfere with, disclose, copy or retain this email and you should notify the sender immediately by return email or by contacting Sensis Pty Ltd by telephone on [+61 3 9201 4888] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]