[EJB Session] class not found exception ?
je cherche à utiliser un ejb session depuis une bean comme suit
le tout est dans un ear et deployer sur jboss.
je ne comprend pas pourquoi il ne trouve pas la class
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
|
public class PersonneManagerB {
private String nom, prenom;
private Date dateNaissance=new Date();
private GestionPersonneLocalHome home = null;
/**
* methode qui crée une personne dans la base en utilisant l'ejb session
* GestionPersonne
*
* @return
*/
public String creePersonne() {
String value = "correct";
System.out.println("on est dans la méthode");
try {
home = GestionPersonneUtil.getLocalHome();
GestionPersonneLocal local = home.create();
local.creePersonne(nom,prenom);
} catch (NamingException e) {
e.printStackTrace();
return value = "error";
} catch (CreateException e) {
e.printStackTrace();
return value = "error";
}
return value;
} |
et voici l'erreur
quote]4:54:33,088 INFO [STDOUT] on est dans la méthode
14:54:33,098 INFO [STDOUT] javax.naming.NameNotFoundException: GestionPersonneLocal not bound
14:54:33,098 INFO [STDOUT] at org.jnp.server.NamingServer.getBinding(NamingServer.java:491)[/quote]