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

Eclipse Java Discussion :

[Jonas] prb de deploiement EJB


Sujet :

Eclipse Java

  1. #1
    Membre averti
    Homme Profil pro
    Inscrit en
    Juillet 2002
    Messages
    705
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France

    Informations forums :
    Inscription : Juillet 2002
    Messages : 705
    Points : 393
    Points
    393
    Par défaut [Jonas] prb de deploiement EJB
    Je suis le tutoriel sur les EJB avec Eclipse (Jonas - Jope etc) et lors du déploiement des EJB j'ai cela:

    Buildfile: C:\Documents and Settings\alexis\Mes documents\eclipse-SDK-3.0.1-win32\eclipse\workspace\SecondEJB\components\build.xml
    install:
    Trying to override old definition of task ejbjar
    init:
    jonasejbjar:
    [ejbjar] Unable to load dependency analyzer: org.apache.tools.ant.util.depend.bcel.FullAnalyzer - dependent class not found: org/apache/bcel/classfile/Visitor
    [ejbjar] building helloWorld.jar with 5 files
    [genic] GenIC for JOnAS 4.1.4: Beans 'helloWorldEJB' generation ...
    [genic] C:\DOCUME~1\alexis\LOCALS~1\Temp\genic43046.tmp\helloWorld\JOnAShelloWorldEJB_990072885Home.java:27: cannot resolve symbol
    [genic] symbol : class helloWorldHome
    [genic] location: interface helloWorld.helloWorld
    [genic] public class JOnAShelloWorldEJB_990072885Home extends JSessionHome implements helloWorld.helloWorldHome {
    [genic] ^
    [genic] C:\DOCUME~1\alexis\LOCALS~1\Temp\genic43046.tmp\helloWorld\JOnAShelloWorldEJB_990072885Home.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\alexis\LOCALS~1\Temp\genic43046.tmp\helloWorld\JOnAShelloWorldEJB_990072885Remote.java:20: cannot resolve symbol
    [genic] symbol : class helloWorld
    [genic] location: interface helloWorld.helloWorld
    [genic] public class JOnAShelloWorldEJB_990072885Remote extends JSessionRemote implements helloWorld.helloWorld {
    [genic] ^
    [genic] C:\DOCUME~1\alexis\LOCALS~1\Temp\genic43046.tmp\helloWorld\JOnAShelloWorldEJB_990072885Home.java:68: cannot resolve symbol
    [genic] symbol : class helloWorld
    [genic] location: interface helloWorld.helloWorld
    [genic] return (helloWorld.helloWorld) bs.getRemote();
    [genic] ^
    [genic] C:\DOCUME~1\alexis\LOCALS~1\Temp\genic43046.tmp\helloWorld\JOnAShelloWorldEJB_990072885Home.java:110: cannot resolve symbol
    [genic] symbol : class JOnAShelloWorldEJB_990072885Remote
    [genic] location: interface helloWorld.helloWorld
    [genic] return new helloWorld.JOnAShelloWorldEJB_990072885Remote((JStatelessFactory)bf);
    [genic] ^
    [genic] C:\DOCUME~1\alexis\LOCALS~1\Temp\genic43046.tmp\helloWorld\JOnAShelloWorldEJB_990072885Remote.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\alexis\LOCALS~1\Temp\genic43046.tmp\helloWorld\JOnAShelloWorldEJB_990072885Remote.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] GenIC fatal error:
    [genic] Failed when compiling the generated classes via java compiler
    [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:980)
    [genic] at org.objectweb.jonas_ejb.genic.GenIC.main(GenIC.java:443)
    [genic] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [genic] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [genic] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [genic] at java.lang.reflect.Method.invoke(Method.java:324)
    [genic] at org.objectweb.jonas.server.Bootstrap.main(Bootstrap.java:90)
    BUILD FAILED: C:\Documents and Settings\alexis\Mes documents\eclipse-SDK-3.0.1-win32\eclipse\workspace\SecondEJB\components\build.xml:8: The following error occurred while executing this line:
    C:\Documents and Settings\alexis\Mes documents\eclipse-SDK-3.0.1-win32\eclipse\workspace\SecondEJB\components\helloWorld\build.xml:59: GenIC reported an error.
    Total time: 30 seconds

    Help please

  2. #2
    Membre à l'essai
    Inscrit en
    Décembre 2003
    Messages
    16
    Détails du profil
    Informations forums :
    Inscription : Décembre 2003
    Messages : 16
    Points : 16
    Points
    16
    Par défaut
    Bonjour.

    Essaies de rajouter la librairie bcel.jar dans le runtime de Ant. La librairie ne semble pas être présente.

  3. #3
    Membre expérimenté

    Homme Profil pro
    Senior Développeur JEE
    Inscrit en
    Avril 2002
    Messages
    795
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 49
    Localisation : Belgique

    Informations professionnelles :
    Activité : Senior Développeur JEE
    Secteur : Finance

    Informations forums :
    Inscription : Avril 2002
    Messages : 795
    Points : 1 660
    Points
    1 660
    Par défaut
    Et j'ai encore remarqué une erreur.
    Recommence le projet et essaie de faire attention aux conventions de nommages des interfaces et classes.
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    [genic] location: interface helloWorld.helloWorld
    Mettre une majuscule à la première lettre des interfaces ainsi que de l'ejb

    Voilà
    Langages : Java, SQL
    Outils : Eclipse, Intellij
    SGBD : Oracle, PostgreSQL
    Mes Articles

Discussions similaires

  1. Erreur de Deploiement EJB
    Par bza88 dans le forum Java EE
    Réponses: 1
    Dernier message: 28/11/2011, 10h53
  2. Deploiement EJB sur un serveur glassfish
    Par di amskel dans le forum Glassfish et Payara
    Réponses: 4
    Dernier message: 21/08/2008, 13h16
  3. [Jonas] automatiser les deploiements
    Par anitshka dans le forum JOnAS
    Réponses: 2
    Dernier message: 20/03/2007, 11h02
  4. Réponses: 2
    Dernier message: 19/12/2005, 00h28
  5. [Jonas] Prb de config
    Par Alec6 dans le forum Eclipse Java
    Réponses: 1
    Dernier message: 09/12/2004, 13h31

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