Use JnlpDownloadServlet with Visual Age for Java 3.5.3 and the WTE
843802Oct 25 2001 — edited Nov 14 2001Hi!
We want to use the JnlpDownloadServlet to provide the version-based download protocol. We created a test environment with Tomcat 4.01 and everything works fine (ok, after a certain time of try & error ;-).
Now we need this servlet in a Websphere Test Environment. We are working with the WTE and Visual Age for Java 3.5.3. The we included the servlet configuration in the webapp. The serlvet is assigned to the file types *.jar, *.jardiff and *.jar. The basic download protocol works fine. We can see that in the log file, that the servlet writes.
But as soon as we switch to version-based download, nothing seems to work.
Here is a snippet of the log file with version-based download, I marked (***) the line, where I think the error happens:
JnlpDownloadServlet(4): Initializing
JnlpDownloadServlet(3): Request: /launch.jnlp
JnlpDownloadServlet(3): User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)
JnlpDownloadServlet(4): DownloadRequest[path=/launch.jnlp isPlatformRequest=false]
JnlpDownloadServlet(4): Basic Protocol lookup
JnlpDownloadServlet(4): JnlpResource: JnlpResource[WAR Path: /launch.jnlp lastModified=Thu Oct 25 13:24:49 GMT+02:00 2001]]
JnlpDownloadServlet(3): Resource returned: /launch.jnlp
JnlpDownloadServlet(4): lastModified: 1004009089516 Thu Oct 25 13:24:49 GMT+02:00 2001
JnlpDownloadServlet(3): Request: /launch.jnlp
JnlpDownloadServlet(3): User-Agent: javaws-1.0.1_01/b04
JnlpDownloadServlet(4): DownloadRequest[path=/launch.jnlp isPlatformRequest=false]
JnlpDownloadServlet(4): Basic Protocol lookup
JnlpDownloadServlet(4): JnlpResource: JnlpResource[WAR Path: /launch.jnlp lastModified=Thu Oct 25 13:24:49 GMT+02:00 2001]]
JnlpDownloadServlet(3): Resource returned: /launch.jnlp
JnlpDownloadServlet(4): lastModified: 1004009089516 Thu Oct 25 13:24:49 GMT+02:00 2001
***************
JnlpDownloadServlet(3): Request: /test.jar?version-id=1.0
JnlpDownloadServlet(3): User-Agent: javaws-1.0.1_01/b04
JnlpDownloadServlet(4): DownloadRequest[path=/test.jar isPlatformRequest=false]
***************
JnlpDownloadServlet(4): Basic Protocol lookup
JnlpDownloadServlet(3): Error code returned for request: /test.jar?version-id=1.0
JnlpDownloadServlet(4): Response: com.sun.javaws.servlet.DownloadResponse$NotFoundResponse
You can see the download request:
Request: /test.jar?version-id=1.0
This is handled with the following parameters:
DownloadRequest[path=/test.jar isPlatformRequest=false]
I think here is the version parameter missing. Compared with the logs created when running under Tomcat:
DownloadRequest[path=/test.jar version=1.0 isPlatformRequest=false]
Has anyone managed to run this servlet with the Websphere Test Environment using the version-based download protocol? Please tell us the trick.
Thanks in advance,
Marc Schneider