WebStart prob w/ Tomcat
mikefinn Sep 10, 2003 10:03 AMHave not found answer anywhere else, so I thought I'd try here.
Is anyone successfully using WebStart 1.2 with JBoss 3.2.x/Tomcat 4.1.x?
I am having a problem deploying a WebStart (1.2) application on 3.2.2RC3 w/ Tomcat. 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