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

JPA Java Discussion :

[eCom project] The import javax.persistence cannot be resolved


Sujet :

JPA Java

  1. #1
    Membre du Club
    Femme Profil pro
    Étudiant
    Inscrit en
    Mars 2005
    Messages
    60
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2005
    Messages : 60
    Points : 62
    Points
    62
    Par défaut [eCom project] The import javax.persistence cannot be resolved
    Encore bonjour amis développeurs

    Bon, encore une fois tout est dans le titre, et je crois avoir posté au bon endroit, milles excuses si ce n'est pas le cas...

    Alors voici le topo, je bosse (enfin j'essaie ) sur le celèbre projet eCom (http://ecom.ow2.org/xwiki/bin/view/Main/fr) et je viens d'importer le projet (dispo ici : http://forge.ow2.org/projects/ecom/) sous Eclipse comme décrit dans ce tuto: http://sardes.inrialpes.fr/~boyer/co...EB/eclipse.pdf

    Bon, jusque là tout va bien sauf qu'après import, j'ai de nombreux warnings et avertissements

    Bon je ne vais pas détailler les avertissements ils sont trop nombreux...
    En revanche, parmi les warnings (plus gênants tout de même) il y en a un qui revient souvent, c'est "The import javax.persistence cannot be resolved"

    Pour être très franche, je débute en Java, je part du sous-sol, et je ne sais pas du tout ou chercher, ni quoi

    J'ai bien sur effectué une recherche dans mon moteur de recherche favori mais bon, j'ai l'impression de chercher une aiguille dans un hangar de meules de foin...

    Tout aide sur ce projet sera plus que bienvenue
    Merci beaucoup!

  2. #2
    Membre éprouvé Avatar de anisj1m
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Juillet 2006
    Messages
    1 067
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 41
    Localisation : Tunisie

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Juillet 2006
    Messages : 1 067
    Points : 955
    Points
    955
    Par défaut
    il faut utiliser un provider.
    Toplink ou hibernate comme implementation de JPA

  3. #3
    Membre du Club
    Femme Profil pro
    Étudiant
    Inscrit en
    Mars 2005
    Messages
    60
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2005
    Messages : 60
    Points : 62
    Points
    62
    Par défaut
    il faut utiliser un provider.
    Toplink ou hibernate comme implementation de JPA
    Alors... je vais essayer de pas avoir l'air d'un poisson rouge dans son bocal et je vais faire comme si j'étais en mesure de comprendre ce que tu me dis...
    Je vais me renseigner là dessus...

    En attendant entre temps j'ai essayé de compiler le projet malgré tout (connaissant l'issue fatale de celle-ci) mais au moins je peux vous donner les erreurs de compil' que j'ai eues:

    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
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    Buildfile: (...)ECOM-SVN\ecom-jonas\ecom\build.xml
    init:
        [mkdir] Created dir: (...)ECOM-SVN\classes
        [mkdir] Created dir: (...)ECOM-SVN\classes.rar
        [mkdir] Created dir: (...)ECOM-SVN\output
        [mkdir] Created dir: (...)ECOM-SVN\output\clients
        [mkdir] Created dir: (...)ECOM-SVN\output\ejbjars
    compile:
        [javac] Compiling 30 source files to (...)ECOM-SVN\classes
        [javac] 13 avr. 2010 12:00:13 java.util.jar.Attributes read
        [javac] ATTENTION: Duplicate name in Manifest: Manifest-Version.
        [javac] Ensure that the manifest does not have duplicate entries, and
        [javac] that blank lines separate individual sections in both your
        [javac] manifest and in the META-INF/MANIFEST.MF entry in the jar file.
        [javac] (...)ECOM-SVN\ecom-jonas\ecom\src\ecom\beans\AccountBean.java:10: package javax.persistence does not exist
        [javac] import javax.persistence.Entity;
        [javac]                         ^
        [javac] (...)ECOM-SVN\ecom-jonas\ecom\src\ecom\beans\AccountBean.java:11: package javax.persistence does not exist
        [javac] import javax.persistence.Id;
        [javac]                         ^
        [javac] (...)ECOM-SVN\ecom-jonas\ecom\src\ecom\beans\AccountBean.java:12: package javax.persistence does not exist
        [javac] import javax.persistence.Table;
        [javac]                         ^
        [javac] (...)ECOM-SVN\ecom-jonas\ecom\src\ecom\beans\AccountBean.java:15: cannot find symbol
        [javac] symbol: class Entity
        [javac] @Entity
        [javac]  ^
        [javac] (...)ECOM-SVN\ecom-jonas\ecom\src\ecom\beans\CartBean.java:11: cannot find symbol
        [javac] symbol  : class Local
        [javac] location: package javax.ejb
        [javac] import javax.ejb.Local;
        [javac]                 ^
        [javac] (...)ECOM-SVN\ecom-jonas\ecom\src\ecom\beans\CartBean.java:13: cannot find symbol
        [javac] symbol  : class Stateful
        [javac] location: package javax.ejb
        [javac] import javax.ejb.Stateful;
        [javac]                 ^
        [javac] (...)ECOM-SVN\ecom-jonas\ecom\src\ecom\beans\CartBean.java:15: cannot find symbol
        [javac] symbol: class Stateful
        [javac] @Stateful
        [javac]  ^
        [javac] (...)ECOM-SVN\ecom-jonas\ecom\src\ecom\beans\CartBean.java:16: cannot find symbol
        [javac] symbol: class Local
        [javac] @Local(CartLocal.class)
        [javac]  ^
        [javac] (...)ECOM-SVN\ecom-jonas\ecom\src\ecom\beans\EcomAdminBean.java:10: cannot find symbol
        [javac] symbol  : class Remote
        [javac] location: package javax.ejb
        [javac] import javax.ejb.Remote;
        [javac]                 ^
        [javac] (...)ECOM-SVN\ecom-jonas\ecom\src\ecom\beans\EcomAdminBean.java:12: cannot find symbol
        [javac] symbol  : class Stateful
        [javac] location: package javax.ejb
        [javac] import javax.ejb.Stateful;
        [javac]                 ^
        [javac] (...)ECOM-SVN\ecom-jonas\ecom\src\ecom\beans\EcomAdminBean.java:15: cannot find symbol
        [javac] symbol: class Stateful
        [javac] @Stateful
        [javac]  ^
        [javac] (...)ECOM-SVN\ecom-jonas\ecom\src\ecom\beans\EcomAdminBean.java:16: cannot find symbol
        [javac] symbol: class Remote
        [javac] @Remote(EcomAdminRemote.class)
        [javac]  ^
        [javac] (...)ECOM-SVN\ecom-jonas\ecom\src\ecom\beans\EcomCustomerBean.java:10: cannot find symbol
        [javac] symbol  : class Remote
        [javac] location: package javax.ejb
        [javac] import javax.ejb.Remote;
        [javac]                 ^
        [javac] (...)ECOM-SVN\ecom-jonas\ecom\src\ecom\beans\EcomCustomerBean.java:12: cannot find symbol
        [javac] symbol  : class Stateful
        [javac] location: package javax.ejb
        [javac] import javax.ejb.Stateful;
        [javac]                 ^
        [javac] (...)ECOM-SVN\ecom-jonas\ecom\src\ecom\beans\EcomCustomerBean.java:14: cannot find symbol
        [javac] symbol: class Stateful
        [javac] @Stateful
        [javac]  ^
        [javac] (...)ECOM-SVN\ecom-jonas\ecom\src\ecom\beans\EcomCustomerBean.java:15: cannot find symbol
        [javac] symbol: class Remote
        [javac] @Remote(EcomCustomerRemote.class)
        [javac]  ^
        [javac] (...)ECOM-SVN\ecom-jonas\ecom\src\ecom\beans\ProductBean.java:10: package javax.persistence does not exist
        [javac] import javax.persistence.Entity;
        [javac]                         ^
        [javac] (...)ECOM-SVN\ecom-jonas\ecom\src\ecom\beans\ProductBean.java:11: package javax.persistence does not exist
        [javac] import javax.persistence.Id;
        [javac]                         ^
        [javac] (...)ECOM-SVN\ecom-jonas\ecom\src\ecom\beans\ProductBean.java:12: package javax.persistence does not exist
        [javac] import javax.persistence.Table;
        [javac]                         ^
        [javac] (...)ECOM-SVN\ecom-jonas\ecom\src\ecom\beans\ProductBean.java:15: cannot find symbol
        [javac] symbol: class Entity
        [javac] @Entity
        [javac]  ^
        [javac] (...)ECOM-SVN\ecom-jonas\ecom\src\ecom\beans\ProductStoreBean.java:10: package javax.persistence does not exist
        [javac] import javax.persistence.Entity;
        [javac]                         ^
        [javac] (...)ECOM-SVN\ecom-jonas\ecom\src\ecom\beans\ProductStoreBean.java:11: package javax.persistence does not exist
        [javac] import javax.persistence.Id;
        [javac]                         ^
        [javac] (...)ECOM-SVN\ecom-jonas\ecom\src\ecom\beans\ProductStoreBean.java:12: package javax.persistence does not exist
        [javac] import javax.persistence.Table;
        [javac]                         ^
        [javac] (...)ECOM-SVN\ecom-jonas\ecom\src\ecom\beans\ProductStoreBean.java:15: cannot find symbol
        [javac] symbol: class Entity
        [javac] @Entity
        [javac]  ^
        [javac] Note: Some input files use unchecked or unsafe operations.
        [javac] Note: Recompile with -Xlint:unchecked for details.
        [javac] 24 errors
     
    BUILD FAILED
    (...)ECOM-SVN\ecom-jonas\easybeans-common.xml:129: Compile failed; see the compiler error output for details.
     
    Total time: 11 seconds
    Je suis pas sortie de l'auberge... NEVER LEAVE, j'y arriverai!!!

  4. #4
    Expert éminent sénior
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 482
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 45
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 482
    Points : 48 807
    Points
    48 807
    Par défaut
    Citation Envoyé par viry0ne Voir le message
    "The import javax.persistence cannot be resolved"

    Pour être très franche, je débute en Java, je part du sous-sol, et je ne sais pas du tout ou chercher, ni quoi
    Alors pour être franc c'est mal barré. Il faut avoir de solides bases en java standard pour commencer à envisager de faire du J2EE, sinon tu va pas comprendre les 3/4 des trucs que tu fais et leur implication. Résultat ça te petera à la figure en dernière minute, jsute quand il sera trop tard pour revoir tout le design parce qu'il est complètement parti de travers dès le départ. C'est comme vouloir construire une voiture sans jamais avoir vu une vis ou un boulon de sa vie . C'est quand tout ce déboite après 6 mois de travail qu'on se rend compte qu'on aurait pas du utiliser des élastique pour tout fixer

    Tu trouvera des bons truc pour commencer ici:
    http://jmdoudoux.developpez.com/#LI

  5. #5
    Membre du Club
    Femme Profil pro
    Étudiant
    Inscrit en
    Mars 2005
    Messages
    60
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2005
    Messages : 60
    Points : 62
    Points
    62
    Par défaut
    Alors pour être franc c'est mal barré
    Je suis assez d'accord...

    Le hic, c'est que j'ai eu la géniale idée de m'inscrire à une UE CNAM, et boum le sujet c'est la réalisation du projet eCom du coup c'est un peu le saut dans le vide sans élastique.

    Pour être honnête, ça m'ennuie de faire du travail de chien (et encore, je pense qu'un chien bosserait mieux...) mais pour le coup, je n'ai plus trop le choix.
    Je vais essayer bien sur de limiter la casse, et de quand même en retirer quelque chose, donc je bosse en parallèle sur des truc plus appropriés genre un bon vieux "hello world" après, advienne que pourra...

    Je remercie par avance tout ceux qui voudrons bien me filer un coup de main à essayer de réaliser l'impossible
    (et merci pour le tuto )

  6. #6
    Membre régulier
    Profil pro
    Inscrit en
    Décembre 2004
    Messages
    86
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Décembre 2004
    Messages : 86
    Points : 111
    Points
    111
    Par défaut
    Happily for you, j'ai bossé sur ce projet il y a deux ans environs.
    Mais l'erreur qu'il t'affiche est fréquence; En fait dans le pdf qui t'es livré sur comment installer le projet. En fait javax.persistence est compris dans un fichier jar qui est ivré avec ton serveur d'application.
    Le mieux c'est qu'au lieu de choisir User library lorsque tu configure le classpath, tu choisi Runtime Library (ou quelque chose comme ça) et là tu choisi le serveur d'app (glassfish ou JBOSS, ...) et là il résoudra toutes les libs dont tu as besoin.

    Sinon comme dit plus haut, si t'es new en java, t'auras vraiment du mal, et commencer par eCom ne t'aidera pas beaucoup. Commence java ee composanat par composant, d'abord java SE, jsp servlet, ejb , etc etc

    Bon courage.
    sinon tu peux trouver des réalisations de eCom sur code.google.com. Pleins d'experimentations y sont postées.

  7. #7
    Membre du Club
    Femme Profil pro
    Étudiant
    Inscrit en
    Mars 2005
    Messages
    60
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2005
    Messages : 60
    Points : 62
    Points
    62
    Par défaut
    Merci pour les tuyaux ^^
    Bon, je ne trouve Server runtime pour ajouter au classpath, mais tout est vide....
    Je vais creuser le truc et essayer de pas m'enterrer
    Je me bouge un peu le popotin (ou plutôt les phalanges), et je viendrais vous donner des news

  8. #8
    Membre du Club
    Femme Profil pro
    Étudiant
    Inscrit en
    Mars 2005
    Messages
    60
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2005
    Messages : 60
    Points : 62
    Points
    62
    Par défaut
    Uhuuu on progresse!!!!
    J'ai été choper ça javaee-api-6.0.jar ici http://repo1.maven.org/maven2/javax/javaee-api/6.0/ et j'ai ajouté le Jar en tant que Jar externe...
    Et hopelaaaa tous les erreurs ont disparu!!!

    Bon il me reste des avertissements...
    Ce ne sont que des javax.blablabla is never used.

    On progresse n'est-il pas

    Parce que j'ai réfléchi à ce que tu m'as dit Sam, mais moi j'ai installé JOnAS, donc pas de poisson dans mon eCom, juste la grosse baleine...

    Bon je vais me faire un café là, parce que j'ai fait un truc qui marche je ne suis pas habitué, il ne faudrait pas que je me foule un doigt

    C'est pas ce qu'on appelle la chance du débutant tout ça???

    [EDIT]Nota : J'ai parlé trop vite... BUILD FAILED, aller je ressors la pelle [/EDIT]
    Bon en fait je ne comprends pas bien...
    Mes erreurs ont disparu mais à la compilation j'ai toujours package javax.persistence does not exist
    J'ai essayé plusieurs jar, sans succès... Je ne dois pas prendre le bon truc
    Bon pas résolu du tout mon affaire...

  9. #9
    Membre du Club
    Femme Profil pro
    Étudiant
    Inscrit en
    Mars 2005
    Messages
    60
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2005
    Messages : 60
    Points : 62
    Points
    62
    Par défaut the type java.lang.Object cannot be resolved
    Bon ça se corse...
    J'ai refait mon import de projet, refait mon Java Path, et là ça s'améliore grave sauf qu'il me reste 2 erreurs, et qu'a la compil c'est kif kif...

    Voici mes erreurs:


    The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project
    The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files

    Dans mon Java Build Path, j'ai les jar J2EE de JOnAS et mon truc récupéré.
    Bon j'me dis pas de panique je vais spécifier le chemin vers mon JRE puisqu'il ne trouve pas .Objet.
    Bon sauf que quand je fais ça je me retrouve avec un myriade d'avertissements et plus d'erreurs...

    A la compil' avec Ant toujours pareil:


    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
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    Buildfile: (...)\ecom\build.xml
    init:
    compile:
        [javac] Compiling 30 source files to C:\Documents and Settings\Anne-Lise\Bureau\CNAM-2nd-Semestre-2009-2010\SMB111\PROJET\eCom\classes
        [javac] 14 avr. 2010 14:04:30 java.util.jar.Attributes read
        [javac] ATTENTION: Duplicate name in Manifest: Manifest-Version.
        [javac] Ensure that the manifest does not have duplicate entries, and
        [javac] that blank lines separate individual sections in both your
        [javac] manifest and in the META-INF/MANIFEST.MF entry in the jar file.
        [javac] (...)\ecom\src\ecom\beans\AccountBean.java:10: package javax.persistence does not exist
        [javac] import javax.persistence.Entity;
        [javac]                         ^
        [javac] (...)\ecom\src\ecom\beans\AccountBean.java:11: package javax.persistence does not exist
        [javac] import javax.persistence.Id;
        [javac]                         ^
        [javac] (...)\ecom\src\ecom\beans\AccountBean.java:12: package javax.persistence does not exist
        [javac] import javax.persistence.Table;
        [javac]                         ^
        [javac] (...)\ecom\src\ecom\beans\AccountBean.java:15: cannot find symbol
        [javac] symbol: class Entity
        [javac] @Entity
        [javac]  ^
        [javac] (...)\ecom\src\ecom\beans\CartBean.java:11: cannot find symbol
        [javac] symbol  : class Local
        [javac] location: package javax.ejb
        [javac] import javax.ejb.Local;
        [javac]                 ^
        [javac] (...)\ecom\src\ecom\beans\CartBean.java:13: cannot find symbol
        [javac] symbol  : class Stateful
        [javac] location: package javax.ejb
        [javac] import javax.ejb.Stateful;
        [javac]                 ^
        [javac] (...)\ecom\src\ecom\beans\CartBean.java:15: cannot find symbol
        [javac] symbol: class Stateful
        [javac] @Stateful
        [javac]  ^
        [javac] (...)\ecom\src\ecom\beans\CartBean.java:16: cannot find symbol
        [javac] symbol: class Local
        [javac] @Local(CartLocal.class)
        [javac]  ^
        [javac] (...)\ecom\src\ecom\beans\EcomAdminBean.java:10: cannot find symbol
        [javac] symbol  : class Remote
        [javac] location: package javax.ejb
        [javac] import javax.ejb.Remote;
        [javac]                 ^
        [javac] (...)\ecom\src\ecom\beans\EcomAdminBean.java:12: cannot find symbol
        [javac] symbol  : class Stateful
        [javac] location: package javax.ejb
        [javac] import javax.ejb.Stateful;
        [javac]                 ^
        [javac] (...)\ecom\src\ecom\beans\EcomAdminBean.java:15: cannot find symbol
        [javac] symbol: class Stateful
        [javac] @Stateful
        [javac]  ^
        [javac] (...)\ecom\src\ecom\beans\EcomAdminBean.java:16: cannot find symbol
        [javac] symbol: class Remote
        [javac] @Remote(EcomAdminRemote.class)
        [javac]  ^
        [javac] (...)\ecom\src\ecom\beans\EcomCustomerBean.java:10: cannot find symbol
        [javac] symbol  : class Remote
        [javac] location: package javax.ejb
        [javac] import javax.ejb.Remote;
        [javac]                 ^
        [javac] (...)\ecom\src\ecom\beans\EcomCustomerBean.java:12: cannot find symbol
        [javac] symbol  : class Stateful
        [javac] location: package javax.ejb
        [javac] import javax.ejb.Stateful;
        [javac]                 ^
        [javac] (...)\ecom\src\ecom\beans\EcomCustomerBean.java:14: cannot find symbol
        [javac] symbol: class Stateful
        [javac] @Stateful
        [javac]  ^
        [javac] (...)\ecom\src\ecom\beans\EcomCustomerBean.java:15: cannot find symbol
        [javac] symbol: class Remote
        [javac] @Remote(EcomCustomerRemote.class)
        [javac]  ^
        [javac] (...)\ecom\src\ecom\beans\ProductBean.java:10: package javax.persistence does not exist
        [javac] import javax.persistence.Entity;
        [javac]                         ^
        [javac] (...)\ecom\src\ecom\beans\ProductBean.java:11: package javax.persistence does not exist
        [javac] import javax.persistence.Id;
        [javac]                         ^
        [javac] (...)\ecom\src\ecom\beans\ProductBean.java:12: package javax.persistence does not exist
        [javac] import javax.persistence.Table;
        [javac]                         ^
        [javac] (...)\ecom\src\ecom\beans\ProductBean.java:15: cannot find symbol
        [javac] symbol: class Entity
        [javac] @Entity
        [javac]  ^
        [javac] (...)\ecom\src\ecom\beans\ProductStoreBean.java:10: package javax.persistence does not exist
        [javac] import javax.persistence.Entity;
        [javac]                         ^
        [javac] (...)\ecom\src\ecom\beans\ProductStoreBean.java:11: package javax.persistence does not exist
        [javac] import javax.persistence.Id;
        [javac]                         ^
        [javac] (...)\ecom\src\ecom\beans\ProductStoreBean.java:12: package javax.persistence does not exist
        [javac] import javax.persistence.Table;
        [javac]                         ^
        [javac] (...)\ecom\src\ecom\beans\ProductStoreBean.java:15: cannot find symbol
        [javac] symbol: class Entity
        [javac] @Entity
        [javac]  ^
        [javac] Note: Some input files use unchecked or unsafe operations.
        [javac] Note: Recompile with -Xlint:unchecked for details.
        [javac] 24 errors
     
    BUILD FAILED
    (...)\easybeans-common.xml:129: Compile failed; see the compiler error output for details.
     
    Total time: 1 second
    Bon j'avoue que là j'ai le cerveau qui surchauffe... Je pense qu'une pause s'impose
    Je dois être un peu folle de m'attaquer à un truc pareil en même temps comme je l'ai dit, maintenant que je suis inscrite à mon UE je n'ai plus vraiment le choix impossible que je sois la seule dans ce cas!!!???

  10. #10
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Novembre 2006
    Messages
    23
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Novembre 2006
    Messages : 23
    Points : 26
    Points
    26
    Par défaut
    Salut,

    Pour faire du jpa aucun serveur d'application n'est nécessaire. Cependant l'api JPA n'a été incorporée que dans la version J2EE de Java...
    Tu peux tout de même en faire dans un environnement stand-alone.

    Petit rappel : JPA est une API "abstraite" : elle ne permet que de définir le socle de la couche de persistance.
    Sur ce socle vient se greffer des implémentations : Hibernate, OpenJpa, etc...

    J'utilise hibernate en ce moment : si tu vas sur le site et que tu telecharge la distrib (hibernate-distribution-3.5.0-Final-dist.zip), tu veras qu'il existe a l'intérieur un fichier hibernate-jpa-2.0-api-1.0.0.Final.jar, qui définit toutes les annotations et autres classes et interface de base de JPA.

    Ensuite utilise n'importe quel jdk ou jre.
    Rien que ça devrait résoudre tes problèmes de classpath

  11. #11
    Membre du Club
    Femme Profil pro
    Étudiant
    Inscrit en
    Mars 2005
    Messages
    60
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2005
    Messages : 60
    Points : 62
    Points
    62
    Par défaut
    Merci horfee, mais heu c'est bien J2EE que j'ai installé, donc je ne devrais pas avoir de soucis de ce côté là...
    J'ai quand même essayé d'ajouter le jar que tu me dis mais cela ne change rien...
    J'avoue que ces derniers jours j'ai un peu laissé le bouzin de côté, histoire de reprendre "les bases".
    De toute façon je reviendrais par ici pour donner des nouvelles, donc toute aide est toujours la bienvenue ^^

    Aux dernières nouvelles, voici les erreurs que j'ai:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
     
    The project was not built since its build path is incomplete. Cannot find the class file for java.lang.Object. Fix the build path then try building this project	
    The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files

  12. #12
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Novembre 2006
    Messages
    23
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Novembre 2006
    Messages : 23
    Points : 26
    Points
    26
    Par défaut
    A mon avis ton problème vient du fait que tu n'as pas inclus de jre ou jdk...
    Pourrais tu fair un screenshot de tes "referrenced libraries" ?

  13. #13
    Membre du Club
    Femme Profil pro
    Étudiant
    Inscrit en
    Mars 2005
    Messages
    60
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2005
    Messages : 60
    Points : 62
    Points
    62
    Par défaut


    Si j'ajoute le JRE system library j'ai encore plus d'erreurs!!!

    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
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
     
    Entity cannot be resolved to a type
    Entity cannot be resolved to a type
    Entity cannot be resolved to a type
    Local cannot be resolved to a type
    Remote cannot be resolved to a type
    Remote cannot be resolved to a type
    Stateful cannot be resolved to a type
    Stateful cannot be resolved to a type
    Stateful cannot be resolved to a type
    Syntax error, annotations are only available if source level is 1.5
    Syntax error, annotations are only available if source level is 1.5
    Syntax error, annotations are only available if source level is 1.5
    Syntax error, annotations are only available if source level is 1.5
    Syntax error, annotations are only available if source level is 1.5
    Syntax error, annotations are only available if source level is 1.5
    Syntax error, annotations are only available if source level is 1.5
    Syntax error, annotations are only available if source level is 1.5
    Syntax error, annotations are only available if source level is 1.5
    The attribute value is undefined for the annotation type Local
    The attribute value is undefined for the annotation type Remote
    The attribute value is undefined for the annotation type Remote
    The import javax.ejb.Local cannot be resolved
    The import javax.ejb.Remote cannot be resolved
    The import javax.ejb.Remote cannot be resolved
    The import javax.ejb.Stateful cannot be resolved
    The import javax.ejb.Stateful cannot be resolved
    The import javax.ejb.Stateful cannot be resolved
    The import javax.persistence cannot be resolved
    The import javax.persistence cannot be resolved
    The import javax.persistence cannot be resolved
    The import javax.persistence cannot be resolved
    The import javax.persistence cannot be resolved
    The import javax.persistence cannot be resolved
    The import javax.persistence cannot be resolved
    The import javax.persistence cannot be resolved
    The import javax.persistence cannot be resolved
    The field EchoCommandImpl.context is never read locally
    The field SimpleQuitCommandImpl._context is never read locally
    The field TraceFilter.filterConfig is never read locally
    The import ecom.beans is never used
    The import ecom.beans is never used
    The import ecom.beans is never used
    The import ecom.beans is never used
    The import java.io is never used
    The import java.io.PrintStream is never used
    The import java.util.Iterator is never used
    The import java.util.Map is never used
    The import java.util.Set is never used
    The import java.util.StringTokenizer is never used
    The import java.util.StringTokenizer is never used
    The import java.util.StringTokenizer is never used
    The import javax.naming.Context is never used
    The import javax.naming.Context is never used
    The import javax.naming.Context is never used
    The import javax.naming.Context is never used
    The import javax.naming.InitialContext is never used
    The import javax.naming.InitialContext is never used
    The import javax.naming.InitialContext is never used
    The import javax.naming.InitialContext is never used
    The import javax.naming.NamingException is never used
    The import javax.naming.NamingException is never used
    The import javax.naming.NamingException is never used
    The import javax.naming.NamingException is never used
    The import javax.transaction.UserTransaction is never used
    The import javax.transaction.UserTransaction is never used
    The import javax.transaction.UserTransaction is never used
    The import javax.transaction.UserTransaction is never used
    The local variable date is never read
    The local variable ecomAdminBean is never read
    The local variable utx is never read
    The local variable utx is never read
    The serializable class AccountBean does not declare a static final serialVersionUID field of type long
    The serializable class ProductBean does not declare a static final serialVersionUID field of type long
    The serializable class ProductStoreBean does not declare a static final serialVersionUID field of type long

  14. #14
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Novembre 2006
    Messages
    23
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Novembre 2006
    Messages : 23
    Points : 26
    Points
    26
    Par défaut
    MMMM je vois que tes librairies datent un peu (il me semble avoir aperçue un ejb-2.XXX...)
    Effectivement il manquait donc une jre. Maintenant ton problème vient du fait que ta jre est en version 1.4... essaie d'utiliser une jre en 1.5 ou 1.6, et ca devrait fonctionner...

  15. #15
    Expert éminent sénior
    Avatar de tchize_
    Homme Profil pro
    Ingénieur développement logiciels
    Inscrit en
    Avril 2007
    Messages
    25 482
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 45
    Localisation : Belgique

    Informations professionnelles :
    Activité : Ingénieur développement logiciels
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Avril 2007
    Messages : 25 482
    Points : 48 807
    Points
    48 807
    Par défaut
    et dans builder de préciser que tu est en sourcelevel 5 ou 6

  16. #16
    Membre du Club
    Femme Profil pro
    Étudiant
    Inscrit en
    Mars 2005
    Messages
    60
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2005
    Messages : 60
    Points : 62
    Points
    62
    Par défaut
    Alors j'ai installé Java, et J2EE dernière mouture, peu importe quel JRE je prenne, en principe les 2 sont à jour (j'ai désinstallé toute version précédente de Java avant de réinstaller celles-ci dans mon répertoire Applis)

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
     
    C:\>java -version
    java version "1.6.0_18"
    Java(TM) SE Runtime Environment (build 1.6.0_18-b07)
    Java HotSpot(TM) Client VM (build 16.0-b13, mixed mode)
    Et dans Eclipse j'ai essayé de pointer sur l'un comme sur l'autre, tiens j'ai même essayé d'ajouter les deux, et toujours mes 36 erreurs (contre 2 sans ^^)



    Quand au JDK Compliance il était bien en 1.6...

    C'est ou que je merdoie???
    J'ai le sentiment que c'est un truc tout bidon!!!

  17. #17
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Novembre 2006
    Messages
    23
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Novembre 2006
    Messages : 23
    Points : 26
    Points
    26
    Par défaut
    je vois que tu utilise un script Ant pour compiler ... ?
    Est ce bien le cas ? si oui, une fois que tu as ajouté ta / tes jre au classpath eclipse, as tu pensé a mettre a jour le classpath dans ton fichier build.xml ?

  18. #18
    Membre du Club
    Femme Profil pro
    Étudiant
    Inscrit en
    Mars 2005
    Messages
    60
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2005
    Messages : 60
    Points : 62
    Points
    62
    Par défaut
    je vois que tu utilise un script Ant pour compiler ... ?
    Oui
    une fois que tu as ajouté ta / tes jre au classpath eclipse, as tu pensé a mettre a jour le classpath dans ton fichier build.xml ?
    Heu... non, et en plus j'avoue ne pas savoir comment faire...

    comme je disais, j'ai suivi ce tuto fourni avec le projet: http://sardes.inrialpes.fr/~boyer/co...EB/eclipse.pdf

    Donc bête et disciplinée, il est écrit "Compile" alors je compile...
    Bon sauf que ça marche pas

    Comme j'ai un super méga tuteur qui ne réponds pas à mes mails (doit être en vacances... Bon séjour s'il me lit!!! ) il n'y a que vous pour me sauver

    Voici le code du build.xml fourni avec le projet (en effet, aucun classpath de précisé)

    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
    65
    66
    67
    68
    69
     
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
     - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     - EasyBeans
     - Copyright (C) 2006 Bull S.A.S.
     - Contact: easybeans@objectweb.org
     -
     - This library is free software; you can redistribute it and/or
     - modify it under the terms of the GNU Lesser General Public
     - License as published by the Free Software Foundation; either
     - version 2.1 of the License, or any later version.
     -
     - This library is distributed in the hope that it will be useful,
     - but WITHOUT ANY WARRANTY; without even the implied warranty of
     - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     - Lesser General Public License for more details.
     -
     - You should have received a copy of the GNU Lesser General Public
     - License along with this library; if not, write to the Free Software
     - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
     - USA
     -
     - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     - $Id: build.xml 9 2006-02-19 18:53:32Z benoitf $
     - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     -->
     
    <project name="Ecom" default="install" basedir=".">
     
      <!-- Import common rules -->
      <import file="../easybeans-common.xml" />
     
      <!-- Below are the properties used by common script -->
      <!-- Name of the generated ejb-jar -->
      <property name="ejb.name" value="ecom" />
     
      <!-- Pattern for EJB -->
      <patternset id="ejb.patternset">
        <include name="ecom/beans/*.class" />
      </patternset>
     
     <!-- Following line added by F. Boyer -->
     <!-- Define a servlet client -->
      <property name="servlet.client" value="true" />
     
     
      <!-- Pattern for Client -->
      <patternset id="client.patternset">
        <include name="ecom/client/*.class" />
        <include name="ecom/beans/*Remote.class" />
        <include name="ecom/shell/*.class" />
        <include name="shell/*.class" />
      </patternset>
     
      <!-- Main class of the client -->
      <property name="customer.class" value="ecom.client.ExternCustomer" />
      <property name="admin.class" value="ecom.client.ExternAdmin" />
      <property name="initdatabase.class" value="ecom.client.InitDataBase" />
     
     
     
    <!-- Pattern for servlet -->
      <patternset id="servlet.patternset">
        <include name="ecom/servlets/*.class" />
        <include name="ecom/beans/*Local.class" />
      </patternset>
     
    </project>
    Ceci étant je pense que ça se fait dans la config du Run Ant build file (là ou tu déclare ton JONAS_ROOT)

    Je vais essayer de tripatouiller ces trucs

    PS : Le contenu du fichier inclus au début 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
    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
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
     
    <?xml version="1.0" encoding="UTF-8"?>
    <!--
     - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     - EasyBeans
     - Copyright (C) 2006 Bull S.A.S.
     - Contact: easybeans@objectweb.org
     -
     - This library is free software; you can redistribute it and/or
     - modify it under the terms of the GNU Lesser General Public
     - License as published by the Free Software Foundation; either
     - version 2.1 of the License, or any later version.
     -
     - This library is distributed in the hope that it will be useful,
     - but WITHOUT ANY WARRANTY; without even the implied warranty of
     - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     - Lesser General Public License for more details.
     -
     - You should have received a copy of the GNU Lesser General Public
     - License along with this library; if not, write to the Free Software
     - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
     - USA
     -
     - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     - $Id: easybeans-common.xml 27 2006-02-22 16:56:46Z benoitf $
     - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     -->
     
    <project name="EasyBeans - Common rules for JOnAS server" basedir=".">
     
      <!-- build.properties hold the properties that can be customized -->
      <property file="../../build.properties" />
     
      <!-- some properties are build from environment variables -->
      <property environment="myenv" />
      <property name="jonas.root" value="${myenv.JONAS_ROOT}" />
     
     
      <property name="javac.debug" value="on" />
      <property name="javac.optimize" value="off" />
      <property name="javac.deprecation" value="off" />
      <property name="javac.verbose" value="off" />
      <property name="javac.compiler" value="modern" />
      <property name="javac.nowarn" value="off" />
     
     
      <!-- Set the uncustomizable properties -->
      <property name="src.dir" value="src" />
      <property name="resources.dir" value="etc" />
     
      <!-- the 3 following lines have been added by F. Boyer -->
      <property name="etc.dir" value="etc" />
      <property name="xml.dir" value="${etc.dir}" />
      <property name="web.resources.dir" value="${resources.dir}" />
      <available file="${xml.dir}/web.xml"  property="war.defined"/>
     
     
     
      <property name="classes.dir" value="../../classes" />
      <property name="rar.classes.dir" value="../../classes.rar" />
      <property name="dist.dir" value="../../output" />
      <property name="dist.ejbjars.dir" value="${dist.dir}/ejbjars" />
      <property name="dist.clients.dir" value="${dist.dir}/clients" />
      <property name="lib.dir" value="${jonas.root}/lib" />
     
     
      <target name="init">
        <!-- directories building -->
        <mkdir dir="${classes.dir}" />
        <mkdir dir="${rar.classes.dir}" />
        <mkdir dir="${dist.dir}" />
        <mkdir dir="${dist.clients.dir}" />
        <mkdir dir="${dist.ejbjars.dir}" />
        <condition property="jonas.base" value="${myenv.JONAS_BASE}">
          <available file="${myenv.JONAS_BASE}" />
        </condition>
        <condition property="jonas.base" value="${jonas.root}">
          <available file="${jonas.root}" />
        </condition>
     
        <!-- Unpack the rar file from JONAS_BASE/rars or JONAS_BASE/rars/autoload -->
        <unjar dest="${rar.classes.dir}">
          <fileset dir="${jonas.base}/rars">
            <include name="ow_easybeans_for_jonas.rar" />
            <include name="autoload/ow_easybeans_for_jonas.rar" />
          </fileset>
        </unjar>
     
     
        <!-- The classpath to be used to compile examples -->
        <path id="base.classpath">
          <pathelement location="${classes.dir}" />
          <fileset dir="${rar.classes.dir}">
            <include name="**/*.jar" />
          </fileset>
          <fileset dir="${lib.dir}">
            <include name="**/*.jar" />
          </fileset>
        </path>
     
        <!-- Pour JONAS_4_7_4 (ECom_06_07): <property name="dest.ejbjars.dir" value="${jonas.base}/ejb3s" /> -->
    	<!-- Pour JONAS_5_0_M1 (ECom_07_08):-->
    	<property name="dest.ejbjars.dir" value="${jonas.base}/deploy" />
        <!-- the following line has been added by F. Boyer -->
        <property name="dest.webapps.dir" value="${jonas.base}/webapps" />
        <property name="dest.clients.dir" value="${jonas.base}/clients" />
     
      </target>
     
     
      <target name="clean">
        <!-- directories removal -->
        <delete dir="${classes.dir}" />
        <delete dir="${rar.classes.dir}" />
        <delete dir="${dist.dir}" />
      </target>
     
     
     
      <!-- Below is the same code than for Examples -->
     
      <target name="compile" description="Build Ecom" depends="init">
        <javac srcdir="${src.dir}"
               destdir="${classes.dir}"
               debug="${javac.debug}"
               deprecation="${javac.deprecation}"
               optimize="${javac.optimize}"
               verbose="${javac.verbose}"
               compiler="${javac.compiler}"
               nowarn="${javac.nowarn}">
          <classpath refid="base.classpath" />
        </javac>
      </target>
     
     
      <target name="install.persistence" if="persistence.defined">
        <mkdir dir="${dest.ejbjars.dir}/${ejb.name}.jar/META-INF/" />
        <copy todir="${dest.ejbjars.dir}/${ejb.name}.jar/META-INF">
          <fileset dir="${resources.dir}">
            <include name="persistence.xml" />
          </fileset>
        </copy>
      </target>
     
      <!-- the war generation has been added by F. Boyer -->
      <target name="install.war" if="war.defined">
        <war warfile="${dest.webapps.dir}/${ejb.name}.war" webxml="${xml.dir}/web.xml">
           <webinf dir="${xml.dir}" includes="jonas-web.xml, web-jetty.xml" />
           <zipfileset dir="${web.resources.dir}" prefix="" />
           <classes dir="${classes.dir}">
           <include name="**/**/**/*.class" />
           </classes>
       </war>
      </target>
     
     
      <!-- Install example -->
      <target name="install"
              depends="compile, install.persistence, install.war"
              description="Install this example in a deployable directory">
        <copy todir="${dest.ejbjars.dir}/${ejb.name}.jar">
          <fileset dir="${classes.dir}">
            <patternset refid="ejb.patternset" />
          </fileset>
        </copy>
     
    <jar jarfile="${dest.clients.dir}/admin-${ejb.name}.jar">
          <manifest>
            <attribute name="Main-Class" value="${admin.class}" />
          </manifest>
          <fileset dir="${classes.dir}">
            <patternset refid="client.patternset" />
          </fileset>
        </jar>
     
        <jar jarfile="${dest.clients.dir}/customer-${ejb.name}.jar">
          <manifest>
            <attribute name="Main-Class" value="${customer.class}" />
          </manifest>
          <fileset dir="${classes.dir}">
            <patternset refid="client.patternset" />
          </fileset>
        </jar>
     
        <jar jarfile="${dest.clients.dir}/initdatabase-${ejb.name}.jar">
          <manifest>
            <attribute name="Main-Class" value="${initdatabase.class}" />
          </manifest>
          <fileset dir="${classes.dir}">
            <patternset refid="client.patternset" />
          </fileset>
        </jar>
     
     
      </target>
     
      <target name="run.admin" depends="install">
        <java fork="true" classname="${admin.class}">
          <classpath refid="base.classpath" />
        </java>
      </target>
     
      <target name="run.customer" depends="install">
        <java fork="true" classname="${customer.class}">
          <classpath refid="base.classpath" />
        </java>
      </target>
     
      <target name="run.initdatabase" depends="install">
        <java fork="true" classname="${initdatabase.class}">
          <classpath refid="base.classpath" />
        </java>
      </target>
     
    </project>

  19. #19
    Membre du Club
    Femme Profil pro
    Étudiant
    Inscrit en
    Mars 2005
    Messages
    60
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : France, Bouches du Rhône (Provence Alpes Côte d'Azur)

    Informations professionnelles :
    Activité : Étudiant

    Informations forums :
    Inscription : Mars 2005
    Messages : 60
    Points : 62
    Points
    62
    Par défaut
    PTDR (nerveux)

    Bon on progresse, allez savoir, suite à erreur de manip (j'ai supprimé mon Workspace ), j'ai réimporté mon projet dans Eclipse, ré ajouté mes jar de Jonas, le petit Jar que j'avais trouvé, vérifié la compliance, et... plus d'erreurs!!!

    Pourtant j'ai procédé de la même manière (ça m'ennuie quand même de ne pas savoir ce que j'ai fait de plus ou de moins...)

    Bon, passons je ne vais pas me plaindre mais j'ai toujours une kyrielle d'avertissements, et mon build foire...

    Toujours les 2 mêmes erreurs
    • package javax.persistence does not exist
    • cannot find symbol


    Je vais me faire un café... J'en fais pour tout le monde???

  20. #20
    Nouveau membre du Club
    Profil pro
    Inscrit en
    Novembre 2006
    Messages
    23
    Détails du profil
    Informations personnelles :
    Localisation : Belgique

    Informations forums :
    Inscription : Novembre 2006
    Messages : 23
    Points : 26
    Points
    26
    Par défaut
    pourrais tu zipper et envoyer l'ensemble du projet eclipse ?
    Histoire de simplifier la discussion ... ^^

Discussions similaires

  1. Erreur "The import javax.ejb cannot be resolved"
    Par info.pascal dans le forum Eclipse Java
    Réponses: 1
    Dernier message: 14/10/2013, 09h39
  2. The import "org.hibernate" cannot be resolved
    Par adrien1 dans le forum Hibernate
    Réponses: 4
    Dernier message: 01/03/2012, 12h21
  3. Réponses: 5
    Dernier message: 30/12/2010, 13h39
  4. The import "javax.mail" cannot be resolved
    Par lenny32 dans le forum Général Java
    Réponses: 2
    Dernier message: 24/09/2009, 14h09
  5. Réponses: 2
    Dernier message: 14/04/2009, 16h22

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