exceptions de java web start
je veux déployer une application en utilisant le java web start mais quand je veux lancer mon programme via une page web j'aurai les exceptions suivantes:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
com.sun.deploy.net.FailedDownloadException: Impossible de charger la ressource : <a href="http://localhost:8080/starjavapos.jnlp" target="_blank">http://localhost:8080/starjavapos.jnlp</a>
at com.sun.deploy.net.DownloadEngine.actionDownload(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.deploy.net.DownloadEngine.getResource(Unknown Source)
at com.sun.javaws.Launcher.updateFinalLaunchDesc(Unknown Source)
at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
at com.sun.javaws.Launcher.launch(Unknown Source)
at com.sun.javaws.Main.launchApp(Unknown Source)
at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
at com.sun.javaws.Main$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source) |
voici mon fichier .jnlp:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://localhost:8080" href="starjavapos.jnlp">
<!-- jnlp tag comment : change the codebase attribute to point to your server and the href attribute to point to your jnlp file -->
<information>
<!-- information tag comment - change the below information to describe your application, anything is OK -->
<title>StarJavaPOS</title>
<vendor>Star Micronics</vendor>
<homepage href="starjavapos-jnlp.html"/>
<description>StarJavaPOS - Java Web Start Example</description>
<description kind="short">StarJavaPOS-JWS</description>
<offline-allowed/>
<!-- offline tag comment : if this tag is present then this application is allowed to be executed from the local cache without an internet connection -->
</information>
<security>
<!-- security tag comment : this tag is required because StarJavaPOS needs communications port access -->
<all-permissions/>
</security>
<resources>
<!-- resources tag comment : list all JAR files required for your application here (the ones listed below are required for StarJavaPOS) -->
<j2se version="1.4+"/>
<!--j2se tag comment : specify the J2SE version required for your application -->
<jar href="javapos-registry_signed.jar"/>
<jar href="jcl_signed.jar"/>
<jar href="jpos17-controls_signed.jar"/>
<jar href="jpos1122_signed.jar"/>
<jar href="jpos1122-controls_signed.jar"/>
<jar href="jpos_signed.jar"/>
<jar href="POSPrinterService_signed.jar"/>
<jar href="starjavapos_signed.jar"/>
<jar href="xercesimpl_signed.jar"/>
<jar href="xml-apis_signed.jar"/>
</resources>
<resources os="Windows">
<!-- resources tag comment : this tag specifies those additional JAR files required when this application is run on a Windows computer (primarily DLLs) -->
<nativelib href="star-windows-libs_signed"/>
</resources>
<resources os="Linux" arch="i386">
<!-- resources tag comment : this tag specifies those additional JAR files required when this application is run on a Linux computer (primarily SOs) -->
<nativelib href="star-linux-libs_signed"/>
</resources>
<resources os="Mac OS X" arch="ppc">
<!-- resources tag comment : this tag specifies those additional JAR files required when this application is run on a Mac computer (primarily JNILIBs) -->
<nativelib href="star-mac-libs_signed"/>
</resources>
<application-desc main-class="fr.application.impression.jpos.StarReceiptTest"/>
<!-- application desc tag comment : this tag specifies the package and class name of your application's Main Class -->
</jnlp> |
merci pour votre aide
exception de java web start
si le chemin du fichier .jnlp est correct