Depuis quelques jours je suis face à un mur et je n'arrive pas à le contourner. Il s'agit d'un problème de déploiement.
J'ai fini mon application javaFx sous netBeans donc je dois l'intégrer dans mon application web sous Tomcat.
je prends le contenu du dossier dist et je le copie dans mon dossier monApp/jsp/javafx.
Ainsi je modifie le XWorkFlow_browser.jnlp pour changer le codebase et le href.
mais je tombe toujours sur
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 <?xml version="1.0" encoding="UTF-8"?> <jnlp spec="1.0+" codebase="http://localhost:8080/monApp/jsp/javafx/" href="XWorkFlow_browser.jnlp"> <information> <title>XWorkFlow</title> <vendor>Administrateur</vendor> <homepage href="http://localhost:8080/monApp/jsp/javafx/" /> <description>XWorkFlow</description> <offline-allowed/> <shortcut> <desktop/> </shortcut> </information> <resources> <j2se version="1.5+"/> <extension name="JavaFX Runtime" href="http://dl.javafx.com/1.2/javafx-rt.jnlp"/> <jar href="XWorkFlow.jar" main="true"/> </resources> <applet-desc name="XWorkFlow" main-class="com.sun.javafx.runtime.adapter.Applet" width="200" height="200"> <param name="MainJavaFXScript" value="Workflow.Main.Main"> </applet-desc> <update check="background"> </jnlp>
Je suis en online.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 exception : JNLP file error: XWorkFlow_browser.jnlp. Please make sure the file exists and check if "codebase" and "href" in the JNLP file are correct.. java.io.FileNotFoundException: JNLP file error: XWorkFlow_browser.jnlp. Please make sure the file exists and check if "codebase" and "href" in the JNLP file are correct. at sun.plugin2.applet.JNLP2Manager.loadJarFiles(Unknown Source) at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Exception : java.io.FileNotFoundException: JNLP file error: XWorkFlow_browser.jnlp. Please make sure the file exists and check if "codebase" and "href" in the JNLP file are correct.
D'après mes recherches (Voir http://forums.sun.com/thread.jspa?th...art=0&tstart=0) j'ai vu qu'il y' a un problème que je rencontrerai plus tard. Il s'agit de l'accès à partir d'une machine distante . Mais j'en suis pas encore là. Merci d'avance
Partager