You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Alberto Gobbi <AG...@anadyspharma.com> on 2001/09/11 01:17:33 UTC

tomcat 4.0b7: Transfer-Encoding: chunked

Hi,	
I am trying to call a jsp page on tomcat 4.0b7 from an <a href=> link
whithin excel and get back a strange page, which does not open correctly in
Netscape. Entering the same link into the location bar in netscape works
fine. I checked at the http headers send in both cases using HttpInspector
please find those below. The difference in the response from tomcat is that
when excels asks for the page it will include the "Transfer-Encoding:
chunked" header and some numbers grabled into the html. Here is the full bad
response (please note the 299 and 0 which miss completly when the same
request is send from netscape.

any help?

Thanks alberto

------------------------ Bad response --------------------------------------

HTTP/1.1 200 OK
Content-Type: text/html;charset=ISO-8859-1
Date: Mon, 10 Sep 2001 23:09:12 GMT
Transfer-Encoding: chunked
Server: Apache Tomcat/4.0-b7 (HTTP/1.1 Connector)

299




<html>
<head>
<title>Structure Editor</title>

<script language="javascript">
  function GetStruct(theForm)
  {  theForm._molfile.value=document.applets["CSApplet"].getData(1);
  }
</script>
</head>



<body bgcolor="#f0ffff">

<embed type="chemical/x-cdx" width="350" height="250" id="1"
viewonly="FALSE" border=1
 
dataurl="http://localhost:8080/LOCAL/ARISE/servlet/ards.gui.Mol2PNGServlet?r
etMolFile=1&MolType=BatchID&MolKey=10207">

<applet name="CSApplet" code="camsoft.cdp.CDPHelperAppSimple" width=0
height=10 VIEWASTEXT>
<param name="ID" value="1">
<param name="CABBASE" value="camsoft.cab">
</applet>

</body>
</html>

0


 
------------------------------- Excel Request ----------------------
GET
http://null:0/LOCAL/ARISE/gui/utilities/MolEdit.jsp?MolType=BatchID&MolKey=1
0207 HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
Host: localhost:8080
Connection: Keep-Alive
Cookie: JSESSIONID=41F0A8E924F7B0772043B814A5413265

-------------------------------- Netscape request -------------------
GET /LOCAL/ARISE/gui/utilities/MolEdit.jsp?MolType=BatchID&MolKey=10207
HTTP/1.0
Connection: Keep-Alive
User-Agent: Mozilla/4.77 [en] (Windows NT 5.0; U)
Host: localhost:8080
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, image/png, */*
Accept-Encoding: gzip
Accept-Language: en
Accept-Charset: iso-8859-1,*,utf-8
Cookie: JSESSIONID=81C050338145C1645855976182D0C207



can't get tomcat work with apache-1.3.19-5.i386.rpm

Posted by Tony Cheung <dr...@asiayeah.com>.
Hi All,

I have upgraded apache to apache-1.3.19-5.i386.rpm. Since then, I am not
able to get tomcat (I've tried v3.3-b2, v3.2.1) to work with it using
mod_jk. I am only able to run tomcat in standalone mode.

Have anyone successfully get apache-1.3.19-5.i386.rpm to work with
Tomcat? What's the trick?

thanks a lot!

Tony Cheung