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

GWT et Vaadin Java Discussion :

Unable to find 'com/novedia/ce/client/Application.gwt.xml' on your classpath


Sujet :

GWT et Vaadin Java

  1. #1
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Février 2010
    Messages
    53
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2010
    Messages : 53
    Points : 31
    Points
    31
    Par défaut Unable to find 'com/novedia/ce/client/Application.gwt.xml' on your classpath
    Salut à tous !
    Une petite question que je pense simple mais qui me prend la tête.
    Donc j'utilise GWT et maven, de ce coté la,j'ai fait plein de test ce matin, ca marche.

    Maintenant je me démerde juste pour que le projet aie le squelette d'une vraie application industrielle.

    Mais voila. Quand je lance ma partie cliente avec le plugin GWT, il me met le message suivant :

    Unable to find 'com/novedia/ce/client/Application.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source?

    Ce qui est normal vu que mon Application.gwt.xml se trouve ici :
    'com/novedia/ce/Application.gwt.xml'

    Et voila ma question : Comment je configure quelque chose pour que ma compilation tape au bon endroit ?

    Merci d'avance

  2. #2
    Membre régulier
    Profil pro
    Inscrit en
    Juillet 2007
    Messages
    129
    Détails du profil
    Informations personnelles :
    Localisation : France, Nord (Nord Pas de Calais)

    Informations forums :
    Inscription : Juillet 2007
    Messages : 129
    Points : 109
    Points
    109
    Par défaut
    Pour pouvoir t'aider, il nous faudrait ici une bride de ton code dont le contenu de ta page html (qui normalement fait pointer GWT vers ton module)

  3. #3
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Février 2010
    Messages
    53
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2010
    Messages : 53
    Points : 31
    Points
    31
    Par défaut
    Je tiens à préciser que je développe dans différents projets. Donc j'ai un projet principal, ce, et trois modules, ce-client, ce-services et ce-model.
    Dans ce ca,je ne sais pas vraiment ou je dois démarrer le module GWT, si c'est la partie client ou la partie parent. En tout cas les deux mettent la même erreur pour l'instant ! ^^

    Alors voici mon code à l'heure actuelle :

    Application.html, situé dans src/main/resources/com/novedia/ce/public

    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
    62
    63
    64
     
    <!doctype html>
    <!-- The DOCTYPE declaration above will set the    -->
    <!-- browser's rendering engine into               -->
    <!-- "Standards Mode". Replacing this declaration  -->
    <!-- with a "Quirks Mode" doctype may lead to some -->
    <!-- differences in layout.                        -->
     
    <html>
      <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8">
     
        <!--                                                               -->
        <!-- Consider inlining CSS to reduce the number of requested files -->
        <!--                                                               -->
        <link type="text/css" rel="stylesheet" href="Application.css">
     
        <!--                                           -->
        <!-- Any title is fine                         -->
        <!--                                           -->
        <title>Web Application Starter Project</title>
     
        <!--                                           -->
        <!-- This script loads your compiled module.   -->
        <!-- If you add any GWT meta tags, they must   -->
        <!-- be added before this line.                -->
        <!--                                           -->
        <script type="text/javascript" language="javascript" src="ce.nocache.js"></script>
      </head>
     
      <!--                                           -->
      <!-- The body can have arbitrary html, or      -->
      <!-- you can leave the body empty if you want  -->
      <!-- to create a completely dynamic UI.        -->
      <!--                                           -->
      <body>
     
        <!-- OPTIONAL: include this if you want history support -->
        <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
     
        <!-- RECOMMENDED if your web app will not function without JavaScript enabled -->
        <noscript>
          <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif">
            Your web browser must have JavaScript enabled
            in order for this application to display correctly.
          </div>
        </noscript>
     
        <h1>Web Application Starter Project</h1>
     
        <table align="center">
          <tr>
            <td colspan="2" style="font-weight:bold;">Please enter your name:</td>        
          </tr>
          <tr>
            <td id="nameFieldContainer"></td>
            <td id="sendButtonContainer"></td>
          </tr>
          <tr>
            <td colspan="2" style="color:red;" id="errorLabelContainer"></td>
          </tr>
        </table>
      </body>
    </html>

    Application.gwt.xml dans src/main/resources/com/ce/novedia

    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
     
    <?xml version="1.0" encoding="UTF-8"?>
    <module rename-to='ce'>
      <!-- Inherit the core Web Toolkit stuff.                        -->
      <inherits name='com.google.gwt.user.User'/>
    <!--   <inherits name="com.smartgwt.tools.SmartGwtTools"/> -->
     
      <!-- Inherit the default GWT style sheet.  You can change       -->
      <!-- the theme of your GWT application by uncommenting          -->
      <!-- any one of the following lines.                            -->
      <inherits name='com.google.gwt.user.theme.standard.Standard'/>
      <!-- <inherits name='com.google.gwt.user.theme.chrome.Chrome'/> -->
      <!-- <inherits name='com.google.gwt.user.theme.dark.Dark'/>     -->
     
      <!-- Other module inherits                                      -->
     
      <!-- Specify the app entry point class.                         -->
    	<entry-point class='com.novedia.ce.client.Application'/>
    <!--  <entry-point class='com.novedia.ce.client.GWTPlaceCineTemp'/>-->
     
      <!-- Specify the paths for translatable code                    -->  
      <source path="model"/>
      <source path="client" excludes="**/*Test*.java" /> 
      <source path="services">  	
    	  <exclude name="**/impl/**" />
      </source>   				
     
     
    </module>
    Mon application.java, même si je doute que ce soit d'une utilité dans ce problème, situé dans src/main/java/com/novedia/ce/client

    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
     
    package com.novedia.ce.client;
     
    import com.google.gwt.core.client.EntryPoint;
    import com.google.gwt.user.client.ui.Label;
    import com.google.gwt.user.client.ui.RootPanel;
     
     
    /**
     * Entry point classes define <code>onModuleLoad()</code>.
     */
    public class Application
        implements EntryPoint
    {
     
      /**
       * This is the entry point method.
       */
      public void onModuleLoad()
      {
         final Label label = new Label ( "gwt-maven-plugin Archetype :: Project org.codehaus.mojo.gwt-maven-plugin" );
         RootPanel.get().add( label );
      }
    }

  4. #4
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Février 2010
    Messages
    53
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2010
    Messages : 53
    Points : 31
    Points
    31
    Par défaut
    En fait le problème provenait d'une mauvaise configuration de maligne de commande. Ca marche maintenant !

  5. #5
    Membre actif Avatar de miya
    Profil pro
    Inscrit en
    Janvier 2006
    Messages
    469
    Détails du profil
    Informations personnelles :
    Localisation : France, Paris (Île de France)

    Informations forums :
    Inscription : Janvier 2006
    Messages : 469
    Points : 240
    Points
    240
    Par défaut
    n'oublie pas le tag Résolu svp

  6. #6
    Candidat au Club
    Inscrit en
    Mai 2006
    Messages
    2
    Détails du profil
    Informations forums :
    Inscription : Mai 2006
    Messages : 2
    Points : 2
    Points
    2
    Par défaut
    Salut,
    J'ai le même problème. Peux-tu nous donner la ligne de commande corrigée qui t'a permis de résoudre le problème ?

    Merci

  7. #7
    Nouveau Candidat au Club
    Homme Profil pro
    Architecte de système d'information
    Inscrit en
    Mai 2012
    Messages
    1
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations professionnelles :
    Activité : Architecte de système d'information
    Secteur : High Tech - Opérateur de télécommunications

    Informations forums :
    Inscription : Mai 2012
    Messages : 1
    Points : 1
    Points
    1
    Par défaut
    Bonjour,

    en fait lorsque que tu es dans ton IDE (Eclipse dans mon cas) et que tu fais Run, tu dois avoir une fenêtre de configuration qui te permet de donner des paramètres nécessaires à l'exécution du jetty qui hébergera l'exécution de ton code GWT en mode développement.

    Exemple, le port de ton serveur jetty.

    Dans notre cas, tu as tout un tas d'arguments qui permettent de spécifier la page HTML, la localisation du war et bien sûr le package où se trouve le fichier de configuration XML (XXXXX.gwt.xml).

    -startupUrl SoIaF-GM-Tools.html -war E:\WorkspaceEclipse\GwtExperience\SoIaFGMTools\war -remoteUI "${gwt_remote_ui_server_port}:${unique_id}" -logLevel INFO -codeServerPort 9997 -port 8888 com.throdofierpied.soiafgmtools.SoIaFGMTools

    J'espère que ça a pu t'aider ou quelqu'un d'autre.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 1
    Dernier message: 20/04/2010, 20h37
  2. Réponses: 0
    Dernier message: 12/04/2010, 17h07
  3. [Tomcat] Unable to find a javac compiler
    Par wdionysos dans le forum Tomcat et TomEE
    Réponses: 18
    Dernier message: 17/11/2007, 17h23
  4. [Plugin Tomcat]Unable to find a javac compiler
    Par SEMPERE Benjamin dans le forum Eclipse Java
    Réponses: 1
    Dernier message: 14/12/2005, 11h17
  5. [COM | VB] communication entre application hétérogène
    Par zlavock dans le forum Général Java
    Réponses: 8
    Dernier message: 21/11/2004, 10h51

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