users@glassfish.java.net

Web Start launch error

From: <glassfish_at_javadesktop.org>
Date: Mon, 25 Jun 2007 16:01:07 PDT

I'm deploying my first Web Start application and I'm stuck.

I get the following error, (from browser or cmd line)

Error:
com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://rc00wkfadf:8080/lib/myapp.jar
        at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
        at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
.. etc, etc ...

Wrapped Exception:
java.io.FileNotFoundException: http://rc00wkfadf:8080/lib/myapp.jar
        at sun.reflect.GeneratedConstructorAccessor2.newInstance(Unknown Source)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
.. etc, etc...
**End of error**

Cmd line: javaws http://localhost:8080/MyApp/MyApp.jnlp

Java version:
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)

Jnlp jar section
<resources>
   <j2se version="1.5+" initial-heap-size="128m" max-heap-size="512m" />
   <jar href="/lib/myapp.jar" />

Contents of Glassfish j2ee-modules directory on the file system, (after auto deployment my my war file):
    /MyApp
    /MyApp/MyApp.jnlp
    /MyApp/lib/myapp.jar
    /MyApp/lib/other jars referenced in jnlp file

So why isn't the jar file found?

Thanks
[Message sent by forum member 'rymd80' (rymd80)]

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