tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Wingfield <jon.wingfi...@mkodo.com>
Subject Re: Tomcat + WebStart
Date Thu, 11 Sep 2003 12:23:01 GMT
The difference in the HTTP response headers is significant. Tomcat has 
probably added the Expires, Pragma and Cache-Control headers. Tomcat 
does this by default if the requested resource is within a 
security-constraint. The browsers probably abide by the directive not to 
store the file. You can override the headers in a filter or move the 
jnlp file outside of the security-constraint.

HTH,

Jon

Finn, Michael wrote:

> Is anyone successfully using WebStart 1.2 with Tomcat 4.1.x? 
> 
> I am using Tomcat under JBoss, but that *should* be irrelevant here.
> 
> We are having a problem deploying a WebStart (1.2) application on JBoss
> 3.2.2RC3 (w/ Tomcat 4.1.27). When the JNLP file is downloaded, WebStart
> errors out, saying it can't find the JNLP file. I can see the JNLP file
> coming over the network (Ethereal), but it never gets written to disk. Odd,
> since IE reads the HTTP headers and gets the MIME type, because WebStart
> *is* launching. 
> 
> When the server is Jetty (JBoss 3.2.2 RC3 + Jetty 4.2.11 tarball),
> everything works fine. I take the same EAR file and drop it into the
> 3.2.2RC3 + Tomcat 4.1.27 server, and it doesn't work. What's stranger is
> that the problem only seems to be on Windows based browsers (IE6 and Moz).
> When browser is Linux Mozilla, it works fine. 
> 
> I trapped the HTTP traffic, and it looks like so. In both instances, the
> content looks to be identical. There is some difference in the headers, but
> nothing looks obvious to me. 
> 
> With Tomcat:
> GET /cwms/app/cwms.jnlp HTTP/1.1
> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
> application/x-shockwave-flash, */*
> Referer: http://mjf860.east.frontiercorp.com:8080/cwms/index.jsp
> Accept-Language: en-us
> Accept-Encoding: gzip, deflate
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; H010818)
> Host: mjf860.east.frontiercorp.com:8080
> Connection: Keep-Alive
> Cookie: JSESSIONID=p-rHbfPDhKlO0ipzG9xpZg**
> 
> HTTP/1.1 200 OK
> Pragma: No-cache
> Cache-Control: no-cache
> Expires: Thu, 01 Jan 1970 00:00:00 GMT
> Last-Modified: Wed, 10 Sep 2003 14:08:34 GMT
> Content-Type: application/x-java-jnlp-file
> Content-Length: 2241
> Date: Wed, 10 Sep 2003 14:37:00 GMT
> Server: Apache Coyote/1.0
> 
> <?xml version="1.0" encoding="utf-8.......
> 
> With Jetty: 
> GET /cwms/app/cwms.jnlp HTTP/1.1
> Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
> application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
> */*
> Referer: http://mjf860.east.frontiercorp.com:8080/cwms/
> Accept-Language: en-us
> Accept-Encoding: gzip, deflate
> If-Modified-Since: Wed, 10 Sep 2003 15:15:21 GMT
> User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461)
> Host: mjf860.east.frontiercorp.com:8080
> Connection: Keep-Alive
> Cookie: JSESSIONID=+o-IddK10DhgQxXN4Frf5Q**
> 
> HTTP/1.1 200 OK
> Date: Wed, 10 Sep 2003 15:36:21 GMT
> Server: Jetty/4.2.11 (Windows 2000/5.0 x86 java/1.4.1-rc)
> Content-Type: application/x-java-jnlp-file
> Content-Length: 2241
> Last-Modified: Wed, 10 Sep 2003 15:15:21 GMT
> 
> <?xml version="1.0" encoding="UTF-8........
> 
> Any ideas? 
> Any help would be appreciated. 
> 
> Mike
> 




Mime
View raw message