IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

JWS Java Discussion :

pb lancement rcp via jws (equinox.launcher)


Sujet :

JWS Java

  1. #1
    Membre du Club
    Profil pro
    Ingénieur
    Inscrit en
    Juillet 2006
    Messages
    61
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur

    Informations forums :
    Inscription : Juillet 2006
    Messages : 61
    Points : 46
    Points
    46
    Par défaut pb lancement rcp via jws (equinox.launcher)
    bonjour,
    ceci est un problème qui a surement été vu mais les solution que j'ai trouvé ne m'ont pas aidé
    j'essaye de deployer une appli RCP via jws de la facon decrite ici : http://help.eclipse.org/ganymede/top..._web_start.htm

    mon fichier jnlp :
    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
    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
    <?xml version="1.0" encoding="UTF-8"?>
    <jnlp 
        spec="1.0+" 
        codebase="http://localhost/ccc" 
        href="main.jnlp"> <!-- URL to the site containing the jnlp application. It should match the value used on  export. Href, the name of this file -->
      <information>
       <title>Cocpit</title>
    		 <vendor>Capgemini</vendor>
            <homepage href="http://localhost/ccc/"/>
            <icon href="logo-cocpit_32.gif" width="32" height="32"/>
            <description>The Cocpit client application</description>
            <description kind="short">The Cocpit client application</description>
            <offline-allowed/>
      </information>
     
      <!--request all permissions from the application. This does not change-->
      <security>
        <all-permissions/>
      </security>
     
      <!-- The name of the main class to execute. This does not change-->
      <application-desc main-class="org.eclipse.core.launcher.WebStartMain">
        <argument>-nosplash -local</argument>
      </application-desc>
     
      <resources>
        <!-- Reference to the launcher jar. The version segment must be updated to the version being used-->
        <jar href="plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20081125.jar"/>
     
        <!-- Reference to all the plugins and features constituting the application -->
        <!-- Here we are referring to the wrapper feature since it transitively refers to all the other plug-ins  necessary -->
        <extension 
            name="Cocpit feature"
            href="features/GenereClient_1.0.0.jnlp"/>
     
        <!-- Information usually specified in the config.ini-->
        <property 
            name="osgi.instance.area" 
            value="@user.home/Application Data/cocpitws"/>
        <property 
            name="osgi.configuration.area" 
            value="@user.home/Application Data/cocpitws"/> 
     
        <!-- The id of the product to run, like found in the overview page of the product editor -->
        <property 
            name="eclipse.product" 
            value="cocpit.product"/>
      </resources>
     
      <!-- Indicate on a platform basis which JRE to use --> 
      <resources os="Mac">
        <j2se version="1.5+" java-vm-args="-XstartOnFirstThread"/>
      </resources>
      <resources os="Windows">
        <j2se version="1.5+"/>
      </resources>
      <resources os="Linux">
      	<property name="osgi.ws" value="gtk"/>
        <j2se version="1.4+"/>
      </resources>
    </jnlp>
    l'erreur jws :
    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
    com.sun.deploy.net.FailedDownloadException: Impossible de charger la ressource : http://localhost/ccc/main.jnlp
    	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.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)
    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
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    java.net.ConnectException: Connection refused: connect
    	at java.net.PlainSocketImpl.socketConnect(Native Method)
    	at java.net.PlainSocketImpl.doConnect(Unknown Source)
    	at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
    	at java.net.PlainSocketImpl.connect(Unknown Source)
    	at java.net.SocksSocketImpl.connect(Unknown Source)
    	at java.net.Socket.connect(Unknown Source)
    	at java.net.Socket.connect(Unknown Source)
    	at sun.net.NetworkClient.doConnect(Unknown Source)
    	at sun.net.www.http.HttpClient.openServer(Unknown Source)
    	at sun.net.www.http.HttpClient.openServer(Unknown Source)
    	at sun.net.www.http.HttpClient.<init>(Unknown Source)
    	at sun.net.www.http.HttpClient.New(Unknown Source)
    	at sun.net.www.http.HttpClient.New(Unknown Source)
    	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)
    	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)
    	at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
    	at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
    	at com.sun.deploy.net.BasicHttpRequest.doRequest(Unknown Source)
    	at com.sun.deploy.net.BasicHttpRequest.doGetRequest(Unknown Source)
    	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.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)
    toute aide sera la bienvenue

  2. #2
    Membre du Club
    Profil pro
    Ingénieur
    Inscrit en
    Juillet 2006
    Messages
    61
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur

    Informations forums :
    Inscription : Juillet 2006
    Messages : 61
    Points : 46
    Points
    46
    Par défaut
    En attendant une solution j'ai contourné le probleme en remplacant "http://localhost/" par "file//D:/..."
    cela fonctionne, le deployement se fait mais au lancement il ne se passe rien et j'ai cette erreur dans le fichier log :

    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
    !SESSION Tue Mar 17 18:14:32 CET 2009 ------------------------------------------
    !ENTRY org.eclipse.equinox.launcher 4 0 2009-03-17 18:14:32.592
    !MESSAGE Exception launching the Eclipse Platform:
    !STACK
    java.lang.RuntimeException: Could not find framework
    	at org.eclipse.equinox.launcher.Main.getBootPath(Main.java:859)
    	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:488)
    	at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
    	at org.eclipse.equinox.launcher.Main.main(Main.java:1212)
    	at org.eclipse.core.launcher.Main.main(Main.java:30)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at com.sun.javaws.Launcher.executeApplication(Unknown Source)
    	at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
    	at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
    	at com.sun.javaws.Launcher.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)
    quelqu'un a t il déjà rencontré ce problème?

    ps: je presice que mes dependance on pourtant l'air correct, il m'en manque peut etre une mais j'ai bien les jar equinox.launcher et ceux lié à rcp

  3. #3
    Membre du Club
    Profil pro
    Ingénieur
    Inscrit en
    Juillet 2006
    Messages
    61
    Détails du profil
    Informations personnelles :
    Âge : 41
    Localisation : France, Haute Garonne (Midi Pyrénées)

    Informations professionnelles :
    Activité : Ingénieur

    Informations forums :
    Inscription : Juillet 2006
    Messages : 61
    Points : 46
    Points
    46
    Par défaut
    après de nombreux essais on dirai que ca avance mais il me reste un probleme, il ne trouve pas le . product de mon appli
    pourtant j'ai bien specifié l'ID de mon fichier .product et exporter le .product au moment du build

    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
    23
    24
    25
    26
    27
    28
    29
    30
    31
    !ENTRY org.eclipse.equinox.app 0 0 2009-03-18 10:25:45.762
    !MESSAGE Product fr.mycompany.myapp.client.product could not be found.
     
    !ENTRY org.eclipse.osgi 4 0 2009-03-18 10:25:45.793
    !MESSAGE Application error
    !STACK 1
    java.lang.RuntimeException: No application id has been found.
    	at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:236)
    	at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
    	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
    	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
    	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
    	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
    	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
    	at org.eclipse.equinox.launcher.WebStartMain.basicRun(WebStartMain.java:73)
    	at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
    	at org.eclipse.equinox.launcher.WebStartMain.main(WebStartMain.java:51)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    	at java.lang.reflect.Method.invoke(Unknown Source)
    	at com.sun.javaws.Launcher.executeApplication(Unknown Source)
    	at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
    	at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
    	at com.sun.javaws.Launcher.run(Unknown Source)
    	at java.lang.Thread.run(Unknown Source)
    je commence a penser à abandonner à moins que quelqu'un puisse me venir en aide !

Discussions similaires

  1. Lancement DTSRun via une procédure stockée
    Par dut-dut dans le forum MS SQL Server
    Réponses: 5
    Dernier message: 12/12/2007, 16h57
  2. Lancement Access via Batch
    Par petozak dans le forum Access
    Réponses: 3
    Dernier message: 01/10/2007, 16h33
  3. lancement audacious via cron ou at : unable to open display
    Par asterogyre dans le forum Applications et environnements graphiques
    Réponses: 2
    Dernier message: 11/02/2007, 16h12
  4. lancement appli via javaws
    Par zorglub dans le forum JWS
    Réponses: 1
    Dernier message: 14/11/2006, 11h16
  5. [Plugin][Lomboz]Erreur lancement tomcat via eclipse
    Par dodine dans le forum Eclipse Java
    Réponses: 1
    Dernier message: 01/07/2004, 11h06

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo