users@glassfish.java.net

Re: Webstart icons & codebase mismatch

From: <glassfish_at_javadesktop.org>
Date: Mon, 27 Aug 2007 07:32:08 PDT

Hi, again Roll.

(I hope your vacation was restful!)

Exactly which URL do you enter in the browser to try to retrieve the images?

Could you try this: Use

javaws -viewer

to open the Java Web Start application viewer. It will list the client applications Java Web Start knows about on your system. Find your app client and view its JNLP source using a right-click on the application and then on the "Show JNLP File" menu item. Look for the <icon> element(s) and copy one and paste that URL into your browser and see if that works for you. It does on my system, using JDK 1.6 and GlassFish 9.1.

If it does, then the files are where GlassFish expects them to be and perhaps you are encountering a Java Web Start issue.

Well, while it's true that Java Web Start uses HTTP to retrieve all files it needs - JNLP, JARs, and images - how a URL is handled depends on exactly which web app handles the request, right? The URL that GlassFish generates makes sure that the request goes to a GlassFish-provided servlet that handles the request. This servlet internally maps the path in the URL to the correct actual file location and then serves that file as the HTTP response. The path in the URL is a logical structure that does not correspond directly to a physical structure in the GlassFish directories.

This is why the URLs in the JNLP do not have to - and do not - refer to the application's context.

- Tim
[Message sent by forum member 'tjquinn' (tjquinn)]

http://forums.java.net/jive/thread.jspa?messageID=232724