Pyromanci
asked on
Java web start Unable to load resource and not validating
Hello,
I have a few issues with a a java web launch program I'm in the process of developing.
First here is a copy of the jnlp file.
First let me cover the jnlp file not validating. I've been tring to use JaNeLA to help with this. Right now I'm stuck . Janela is reporting a error.
Now I have located it is in reference to the href value of the opening jnlp tag. Those values are needed as the jnlp file is actually a php file and dynamically generated based on information in the d get value. As well that d value is based off a login form and if the k and d values are not present in the get/post it will refuse to generate the jnlp file.
While the jnlp file doesn't validate it does run, but fails to load a resource. This is where the second problem comes in. The core/Util.jar resource fails to load. So the app wont start. Now here is the message java kicks out:
This is the oddest part. You can point your browser to that url (http://mydomain.com/java/core/Util.jar) and the file will download. So i'm not sure why java can't download it.
I have a few issues with a a java web launch program I'm in the process of developing.
First here is a copy of the jnlp file.
<?xml version='1.0' encoding='utf-8' ?>
<jnlp
spec="1.0+"
codebase="http://mydomain.com/java/"
href="App.jnlp?k=20&d=5JptGkg%2BmHDR03U9HglJ%2BBtb7qIcf6mSMH4gmppd16L7majcHHvU%2B7X%2FFEICXjITaEByE%2B0oDA%2FLNHjdHUGyrg%3D%3D">
<information>
<title>App name</title>
<vendor>Comapny name</vendor>
<description>Our long app discription</description>
<description kind="short">Short discription</description>
</information>
<update check="always" policy="always" />
<resources>
<j2se version="1.6+" href="http://java.sun.com/products/autodl/j2se" />
<property name="jnlp.concurrentDownloads" value="15"/>
<jar href="core/Util.jar" />
<jar href="core/DPFP.jar" />
<jar href="core/SigPad.jar" />
<jar href="core/AppWebService.jar" />
<jar href="core/TimeServer.jar" />
<jar href="core/Marketing.jar" />
<jar href="core/App.jar" />
<jar href="core/ElementTest.jar" />
<jar href="universal/ekitspell.jar" />
<jar href="universal/DJNativeSwing.jar" />
<jar href="universal/DJNativeSwing-SWT.jar" />
<jar href="universal/SigPlus2_57.jar" />
<jar href="universal/japura.jar" />
<jar href="universal/ekit.jar" />
<jar href="universal/RXTXcomm.jar" />
<jar href="universal/json_simple-1.1.jar" />
</resources>
<resources os="Linux">
<jar href="linux/dpfpenrollment.jar" />
<jar href="linux/dpfpverification.jar" />
<jar href="linux/dpotapi.jar" />
<jar href="linux/dpotjni.jar" />
</resources>
<resources os="Mac OS">
<jar href="mac/OS/swt_mac.jar" />
</resources>
<resources os="Mac OS X">
<jar href="mac/OSX/swt_mac.jar" />
</resources>
<resources os="Windows 2000" arch="x86">
<jar href="windows/dpfpenrollment.jar" />
<jar href="windows/dpfpverification.jar" />
<jar href="windows/dpotapi.jar" />
<jar href="windows/dpotjni.jar" />
<jar href="windows/x86/swt_windows_x86.jar" />
</resources>
<resources os="Windows 2000" arch="x86_64">
<jar href="windows/dpfpenrollment.jar" />
<jar href="windows/dpfpverification.jar" />
<jar href="windows/dpotapi.jar" />
<jar href="windows/dpotjni.jar" />
<jar href="windows/x86_64/swt_windows_x86_64.jar" />
</resources>
<resources os="Windows XP" arch="x86">
<jar href="windows/dpfpenrollment.jar" />
<jar href="windows/dpfpverification.jar" />
<jar href="windows/dpotapi.jar" />
<jar href="windows/dpotjni.jar" />
<jar href="windows/x86/swt_windows_x86.jar" />
</resources>
<resources os="Windows XP" arch="x86_64">
<jar href="windows/dpfpenrollment.jar" />
<jar href="windows/dpfpverification.jar" />
<jar href="windows/dpotapi.jar" />
<jar href="windows/dpotjni.jar" />
<jar href="windows/x86_64/swt_windows_x86_64.jar" />
</resources>
<resources os="Windows Vista" arch="x86">
<jar href="windows/dpfpenrollment.jar" />
<jar href="windows/dpfpverification.jar" />
<jar href="windows/dpotapi.jar" />
<jar href="windows/dpotjni.jar" />
<jar href="windows/x86/swt_windows_x86.jar" />
</resources>
<resources os="Windows Vista" arch="x86_64">
<jar href="windows/dpfpenrollment.jar" />
<jar href="windows/dpfpverification.jar" />
<jar href="windows/dpotapi.jar" />
<jar href="windows/dpotjni.jar" />
<jar href="windows/x86_64/swt_windows_x86_64.jar" />
</resources>
<resources os="Windows 2003" arch="x86">
<jar href="windows/dpfpenrollment.jar" />
<jar href="windows/dpfpverification.jar" />
<jar href="windows/dpotapi.jar" />
<jar href="windows/dpotjni.jar" />
<jar href="windows/x86/swt_windows_x86.jar" />
</resources>
<resources os="Windows 2003" arch="x86_64">
<jar href="windows/dpfpenrollment.jar" />
<jar href="windows/dpfpverification.jar" />
<jar href="windows/dpotapi.jar" />
<jar href="windows/dpotjni.jar" />
<jar href="windows/x86_64/swt_windows_x86_64.jar" />
</resources>
<resources os="Windows 7" arch="x86">
<jar href="windows/dpfpenrollment.jar" />
<jar href="windows/dpfpverification.jar" />
<jar href="windows/dpotapi.jar" />
<jar href="windows/dpotjni.jar" />
<jar href="windows/x86/swt_windows_x86.jar" />
</resources>
<resources os="Windows 7" arch="x86_64">
<jar href="windows/dpfpenrollment.jar" />
<jar href="windows/dpfpverification.jar" />
<jar href="windows/dpotapi.jar" />
<jar href="windows/dpotjni.jar" />
<jar href="windows/x86_64/swt_windows_x86_64.jar" />
</resources>
<application-desc main-class="hyperion.Main">
<argument>k=20</argument>
<argument>"d=5JptGkg+mHDR03U9HglJ+Btb7qIcf6mSMH4gmppd16L7majcHHvU+7X/FEICXjITaEByE+0oDA/LNHjdHUGyrg=="</argument>
</application-desc>
<security>
<all-permissions/>
</security>
</jnlp>
First let me cover the jnlp file not validating. I've been tring to use JaNeLA to help with this. Right now I'm stuck . Janela is reporting a error.
The reference to entity "d" must end with the ';' delimiter.
Now I have located it is in reference to the href value of the opening jnlp tag. Those values are needed as the jnlp file is actually a php file and dynamically generated based on information in the d get value. As well that d value is based off a login form and if the k and d values are not present in the get/post it will refuse to generate the jnlp file.
While the jnlp file doesn't validate it does run, but fails to load a resource. This is where the second problem comes in. The core/Util.jar resource fails to load. So the app wont start. Now here is the message java kicks out:
com.sun.deploy.net.FailedDownloadException: Unable to load resource: http://mydomain.com/java/core/Util.jar
at com.sun.deploy.net.DownloadEngine.actionDownload(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResourceCacheEntry(Unknown Source)
at com.sun.deploy.net.DownloadEngine.getResource(Unknown Source)
at com.sun.javaws.LaunchDownload$DownloadTask.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
This is the oddest part. You can point your browser to that url (http://mydomain.com/java/core/Util.jar) and the file will download. So i'm not sure why java can't download it.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
:)
ASKER
As for the downloading. I found that somehow that jar files signature got corrupted. After republishing and signing it. everything worked correctly again.