[eCom project] The import javax.persistence cannot be resolved
Encore bonjour amis développeurs :mrgreen:
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 :aie:) 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 :cry:
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 :aie:
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...:calim2:
Tout aide sur ce projet sera plus que bienvenue :D
Merci beaucoup!
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... :calim2:
A la compil' avec Ant toujours pareil:
Code:
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 :cry:
Je dois être un peu folle de m'attaquer à un truc pareil 8O en même temps comme je l'ai dit, maintenant que je suis inscrite à mon UE je n'ai plus vraiment le choix :aie: impossible que je sois la seule dans ce cas!!!???