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

JOnAS Java Discussion :

[JONAS]Tutoriel de création du 1er EJB avec Eclipse et Jonas


Sujet :

JOnAS Java

  1. #1
    Membre à l'essai
    Inscrit en
    Juillet 2004
    Messages
    12
    Détails du profil
    Informations forums :
    Inscription : Juillet 2004
    Messages : 12
    Points : 13
    Points
    13
    Par défaut [JONAS]Tutoriel de création du 1er EJB avec Eclipse et Jonas
    Bonjour,

    J'essai le tutoriel et lors de la création des EJB, j'ai le message d'erreur suivant :

    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
     
    Buildfile: C:\Program Files\eclipse\workspace\Jonas\components\build.xml
     
    install:
    Trying to override old definition of task ejbjar
     
    init:
     
    jonasejbjar:
          [ejbjar] building helloWorld.jar with 5 files
           [genic] GenIC for JOnAS 4.1: Beans 'helloWorldEJB' generation ...
           [genic] C:\DOCUME~1\tca\LOCALS~1\Temp\genic56933.tmp\helloWorld\JOnAShelloWorldEJBHome.java:27: cannot resolve symbol
           [genic] symbol  : class helloWorldHome 
           [genic] location: interface helloWorld.helloWorld
           [genic] public class JOnAShelloWorldEJBHome extends JSessionHome implements helloWorld.helloWorldHome {
           [genic]                                                                               ^
           [genic] C:\DOCUME~1\tca\LOCALS~1\Temp\genic56933.tmp\helloWorld\JOnAShelloWorldEJBHome.java:44: cannot resolve symbol
           [genic] symbol  : class helloWorld 
           [genic] location: interface helloWorld.helloWorld
           [genic]     public helloWorld.helloWorld create() throws javax.ejb.CreateException, java.rmi.RemoteException {
           [genic]                      ^
           [genic] C:\DOCUME~1\tca\LOCALS~1\Temp\genic56933.tmp\helloWorld\JOnAShelloWorldEJBRemote.java:20: cannot resolve symbol
           [genic] symbol  : class helloWorld 
           [genic] location: interface helloWorld.helloWorld
           [genic] public class JOnAShelloWorldEJBRemote extends JSessionRemote implements helloWorld.helloWorld {
           [genic]                                                                                   ^
           [genic] C:\DOCUME~1\tca\LOCALS~1\Temp\genic56933.tmp\helloWorld\JOnAShelloWorldEJBHome.java:66: cannot resolve symbol
           [genic] symbol  : class helloWorld 
           [genic] location: interface helloWorld.helloWorld
           [genic]         return (helloWorld.helloWorld) bs.getRemote();
           [genic]                           ^
           [genic] C:\DOCUME~1\tca\LOCALS~1\Temp\genic56933.tmp\helloWorld\JOnAShelloWorldEJBHome.java:106: cannot resolve symbol
           [genic] symbol  : class JOnAShelloWorldEJBRemote 
           [genic] location: interface helloWorld.helloWorld
           [genic]         return new helloWorld.JOnAShelloWorldEJBRemote((JStatelessFactory)bf);
           [genic]                              ^
           [genic] C:\DOCUME~1\tca\LOCALS~1\Temp\genic56933.tmp\helloWorld\JOnAShelloWorldEJBRemote.java:41: cannot resolve symbol
           [genic] symbol  : class helloWorldEJB 
           [genic] location: interface helloWorld.helloWorld
           [genic] 	    helloWorld.helloWorldEJB b = (helloWorld.helloWorldEJB) bctx.getInstance();
           [genic]                       ^
           [genic] C:\DOCUME~1\tca\LOCALS~1\Temp\genic56933.tmp\helloWorld\JOnAShelloWorldEJBRemote.java:41: cannot resolve symbol
           [genic] symbol  : class helloWorldEJB 
           [genic] location: interface helloWorld.helloWorld
           [genic] 	    helloWorld.helloWorldEJB b = (helloWorld.helloWorldEJB) bctx.getInstance();
           [genic]                                                     ^
           [genic] 7 errors
           [genic] Failed when compiling the generated classes via java compiler
           [genic] GenIC fatal error: 
           [genic] Exception during execution of org.objectweb.jonas_ejb.genic.GenIC : Failed when compiling the generated classes via java compiler
           [genic] java.lang.RuntimeException: Failed when compiling the generated classes via java compiler
           [genic] 	at org.objectweb.jonas_ejb.genic.GenIC.fatalError(GenIC.java:985)
           [genic] 	at org.objectweb.jonas_ejb.genic.GenIC.main(GenIC.java:448)
           [genic] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [genic] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
           [genic] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           [genic] 	at java.lang.reflect.Method.invoke(Unknown Source)
           [genic] 	at org.objectweb.jonas.server.Bootstrap.main(Bootstrap.java:90)
          [ejbjar] BUILD FAILED: file:C:/Program Files/eclipse/workspace/Jonas/components/helloWorld/build.xml:65: GenIC reported an error.
    Total time: 8 seconds
    Quelqu'un aurait il une idéé ??

    Merci



    [Modéré par Didier]
    Ajout de tag dans le titre
    Lire les règles du forum : Règles du forum Java

  2. #2
    Membre à l'essai
    Inscrit en
    Juillet 2004
    Messages
    12
    Détails du profil
    Informations forums :
    Inscription : Juillet 2004
    Messages : 12
    Points : 13
    Points
    13
    Par défaut
    Toujours à la recherche d'une solution, j'ai remarqué que le pluggin Jope crer deux classes supplémentaires ( JOnAShelloWorldEJBHome et JOnAShelloWorldEJBRemote ) afin d'implémenter les interfaces STUB et SKELETON il me semble.

    Or, dans le source Java j'ai remarqué que ces deux classes appartenaient au package helloWorld et utilisaient 'un chemin complet' pour accéder au classes de ce même package ????

    Extrait du fichier JonAShelloWorldEJBHome.java généré par JOPE

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
     
    package helloWorld;
     
    .....
     
    public class JOnAShelloWorldEJBHome extends JSessionHome implements helloWorld.helloWorldHome {
     
        // JOnAS version used to deploy
        public static final String JONAS_VERSION = "4.1";
     .......
    A priori, c'est à cause de cela que je n'arrive pas à compiler, car du coup la classe helloWorld.helloWorldHome n'existe pas il aurait fallut mettre helloWorldHome directement ...

    Par contre je ne voit pas trop comment résoudre cela car les deux fichiers sont générés par JOPE automatiquement ...

    Merci pour l'aide que vous pourriez me donner ....

  3. #3
    Membre à l'essai
    Inscrit en
    Juillet 2004
    Messages
    12
    Détails du profil
    Informations forums :
    Inscription : Juillet 2004
    Messages : 12
    Points : 13
    Points
    13
    Par défaut
    ça y est ça marche !!!!

    Le problème vient simplement du fait que le Package ne doit pas avoir le même nom que l'EJB ...

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

Discussions similaires

  1. Méthode pour la création d'un webservice avec Eclipse
    Par akrogames dans le forum Services Web
    Réponses: 0
    Dernier message: 01/10/2014, 18h01
  2. Réponses: 8
    Dernier message: 15/02/2010, 12h01
  3. Réponses: 15
    Dernier message: 21/01/2009, 10h32
  4. [Plugin][Jope]pb avec eclipse et jonas
    Par samnac300 dans le forum Eclipse Java
    Réponses: 1
    Dernier message: 12/11/2005, 23h30
  5. Réponses: 4
    Dernier message: 20/07/2004, 21h53

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