If you create a JSP page like the following: <HTML> <B> Blah Blah HTML </B> <% response.sendRedirect("/root/myjspdir/newpage.jsp"); %> </HTML> it will not correctly redirect you to newpage.jsp when using the mod_jk connector(AJPV13). You get back some of the HTML at the begining with the HTTP response header inserted in the page(among other weird effects). However if you try this page by using tomcat directly, i.e 192.187.223.123:8080/thisjsp.jsp, it will redirect to the other page(newpage.jsp) just fine. This appears to be a problem with the mod_jk or AJPV13 connector(s)
*** Bug 357 has been marked as a duplicate of this bug. ***
Tested by Steve Jones <stevejones@qwest.net> -- couldn't reproduce.
*** Bug 762 has been marked as a duplicate of this bug. ***
You have to retry accessing the URL 4-5 times to get it to happen with v 3.2.1 final.
Same problem with IIS on NT 4.0 and redirector (isapi_redirect.dll).
I had the very same problem usin ajp12 and IIS/Tomcat 3.3..i'll put this bug in the NEW state thus confirming it..
Fixed in Tomcat 3.3
*** Bug 4676 has been marked as a duplicate of this bug. ***
Hi, I reopend this Bug because i`m using Tomcat 3.3 final with isapi_redirect.dll 27.3.2002 just downloaded from jakarta website and IIS 5.0 on Windows 2k Server. This is what i get t–î¡3Ët‘<ÛšƒWöm,Êÿ —†7®}Zï6ØQØns-Õ¬BU• EÝ¥/^gÃLöjüªXŽ8ãÎ}UMTª~<ß•ÿ &§Â"ðñnâ\—ŠîÌãá ŸpŽ˜ñbõW.õ'ë~ß-.Élq3ˆ½‘U½‹g¢ §^÷ÞÊÆí¼Ë&„ª§u@ß¡O»A>41£P•dãàâUÄZ”¸ðåÊ$·Ï–W\|.£0USN7ù]F‰§NšÒç×áœ×·Š¼… i¨³*ÉÏÊoyoˆNfQ<—<|:1‰¼;ªöñáI9óW‘›¦œÊ¶qä— ŸqŒ5o*¯,5òªUâÁ¡UJCbƒxª®Øƒ$. ™Uáö•ù8TËj¬ª²¦ÄŸ~úŒú$;¤<*ò©cËüØéÞ^oúŠÕv?³‘Þô— Vtæ±Á´E™oj:~’mù“&þµ¤aØëç_cG´»°¸9_ZEoÇÿ W”F[ñ ì:… Šžðªë¶U³Öç¹axŠCe‡1U™_} MxE¹Ans~aÌ©ßÕ79eÑíÕ®~Žh£53ì¯+6æñædÜö¨ÅO*YÂeåÆKSuSÓØ÷õEá¤s+óÏÂ÷™óßu‘Ó"! WÏf£uÍ} ¤·ˆœ"üšŸ(üy¿HŸs¹Hªk³Wá|õæ|±t‰ÏˆªK»¯„ΟPZÓX•}oÕoìø,•JÚ,jeNì-îï+%64m? x5U”P\A¶ZÎbÞ¥k'¬µlÔMOv¢ùøG·+ˆ‘‡.ò¼Vÿ +¨‘4s+ç>¾jš¾ß¨Pˆ±ªÙʳ³—A ¹Nže7ψMñò¼ˆÝ#¦Bœñâ¯g>VÑ£S™gÇ%¼cyBñ=¡©R¯ [T·ˆ Ø*«²A’ OŠ ç›S3Àëλ·ôÛìÇ&JD—‡P„JšE^ur¦·Ã™êÛ'QFxE½FÈiŸm{‡þ7•¬â³—˜¬»yAiqÞjÛ-æa9ˆ [ÂTûK¯æ97ž+(Ö(–8œ¼<_Xáf"[Ûß×ÙÅõĺyf[ÃUDEèª^×W__<±fYM¦áµ§ÈJœ¢·Ïcu±|ªÑÂ;° ìîåÑ×Õ½øbX‹2åç—OÂ3QRæU^Ê–v‰R9Sƒ”B`ÙÄ+?UŸI@¨³)„H¼72©äbL•#•8g [4Fžò·r;K2prÚ,U‡uW„·c")À²bÖB:„8¸Sáóò±ƒoÄæeyçä·…£ŠªwU½ïÃ>>«XÑ)Ê*mõó ßoqÓVòÚÖ<}ð¡›”‰,¥öùN§¯ÂþjKLr5®<Frr¼b&:jšñæ/<ø«hцš·”Z™qš«2¥«È±diÂ9T- Ûj”i„UÜ(–J«2@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@AÁAÁA ö”ëÂ}žç½¥öîЮ_Bóz5pâ]=;svGŸtÝåû=æ4Ær‰Ràñ6Y…Mœ©/Ðì>ëmÒÞ&^ÅOé,³®+] c˜§¹4áT%„xVݪc§‡×¶²ä[˜9c–/D–x¼¯\׆\¾Uº m…ïé-áXë-q¦É1**·Ue^ªdŽ¶ÝWQ›ÃNòš–$¹ [–ˆª« …¬ª3Z1iÂKlÆuôY§²š ÈXÝÊ8[•¶3cï=æêpr´b‰TYVs¶óðšÜOv´ù%ãåg&îò¿¼ø8ú #D§2Œß_4ÕöñÑ¢UnªÊ›‘"jSH-öñqë殣F¤i§{qâœsæ-¢1§™SáŸfÄj±n¨µ2,›j¬ª– ¯"cb¬ˆ’ØÒ#xŠ¢ $P³$ˆPkpPDu¤ÿ Uô½¿¨- [f16àæmÁÊà ð‰>Mu„{°ÅÛz!÷Ñ!¦ž"˯ósŸ‡Šö†ã†ÙZ""% è®yy®‹8ˆ2ãjT´ÝWGr·¶ó²ðÔÛƒI ¤«Øò¤é¹vy$T“ˆ¼7¿D–¿‘•Â•^3·…Š²¤êSá¶8‹¼²Þšuåm.RB"°Ü‘Ž™á% Õšçᨛ«j´“u*ðr6׈-Ž*°¨ôOºÌznäX›Œ^µ#ùÊ“õµUßìæ!M²KŽý/7IzB·Ï^²¤íÆ‘Ê3áxH}% y¹M*pŠ¥¶/$© Æ·–²3·Ÿ”ÛkZ’ÛÞ©¸¾o¡ˆU$+<ùk||'³OŠ·ÇÃ?Ÿ•‹ýêT_óò³¬Â“ÏÉ||- #DÅM*$çå6ñð³.Z"C‚Ë-â'©Wã…9åÎËós¦â»Lv™ûAùêþŠû§Ù¼åéYO‹sz _Hà‰Ì©=w¦[_*3r"¸2#856ãeP¬7–¹«š¥R-¨–"¤oA° UWdƒ$ÈPj!A¤…gZA ÖU³Ÿ ë^PœaW7Êu<!K`K*ÓuŠy1*TÍ^ÅT»kN6à‹‚Y„±(ž®b_C؉ÝNPGѨE^v)pÈí,2ÖœvűÑTÖšf!? oS”iÅõ%™ØoóB>™»¤¶Ågb„ÖÜ1µ·Rf+ª›‡5ÛF’"K2Þa†¶ï†!x‡6\ˣ߇ñÊ-Û§_¸1…º_ljj îêsj’ú¸² J;ÂBC™²T¶;$§$Ý$MŠÎâV“u‚ı‘¶¯+Ι¶¹2^°†Î÷ySq|^£Pww—?Ë£á>4GÒxg|§±¬ñò_?F! ê_?ñò³b ÓM8•¸å^xy_›·™%tnÎ%Lhí‹Ž…Åè«ÉÇÊ–òàÊð!ÃÓ¼Œê™0z„ln9U¾áU-–ëÖŸIaÙ–uú- ¡\ήÄT³nK%U„ Å$(5 ÒB‚3 ˆë!¹LøLq^eI—mé)²¡‘6þõHTTP/1.1 100 Continue Server: Microsoft-IIS/5.0 Date: Wed, 03 Jul 2002 09:55:30 GMT HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Wed, 03 Jul 2002 09:55:30 GMT Connection: close Content-Type: text/html;charset=ISO-8859-1 <html ... page follows
Hallo, my mistake. I wrote more Data into a Buffer then needed (<img src="myservlet" .../>) When this Connection was reused by the Browser (Keep-Alive=300) mod_jk or isapi.dll hadn´t flushed the Buffer.