JBoss

yassinoul Messages postés 17 Date d'inscription jeudi 30 janvier 2003 Statut Membre Dernière intervention 9 novembre 2006 - 20 juil. 2004 à 13:57
rloukili Messages postés 15 Date d'inscription mercredi 9 novembre 2005 Statut Membre Dernière intervention 4 mai 2006 - 11 avril 2006 à 11:14
comment execter les exemples, si vous avezun bon lien je serai ravis

2 réponses

cs_neodante Messages postés 2835 Date d'inscription lundi 11 août 2003 Statut Modérateur Dernière intervention 16 décembre 2006 11
20 juil. 2004 à 19:39
:big) Neodante :big)

Pour exécuter les exemples de JBoss je ne pourrais te dire qu'une seule chose ... regarde le tutorial qui va avec ...
Comme ça c'est un peu long à expliquer ... lol
@+

[Responsable www.neogamedev.com]
0
rloukili Messages postés 15 Date d'inscription mercredi 9 novembre 2005 Statut Membre Dernière intervention 4 mai 2006
11 avril 2006 à 11:14
Bonjours,
J'ai développé un EJB avec eclipse en utilisant JBOSS4.0.0 et je l'ai bien déployé, et j'ai programmé une classe teste:

InitialContext ctx = new InitialContext();
Object objref=ctx.lookup("ejb/MonEJBSession");
testSessionBean = (MonEJBSessionHome)PortableRemoteObject.narrow(objref,MonEJBSessionHome.class);
beanRemote = testSessionBean.create();
System.out.println(beanRemote.SayHelloSessionBean());

le problem con je veux executer la classe teste, je trouve les problems suivantes:

javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial

at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)

at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)

at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)

at javax.naming.InitialContext.lookup(Unknown Source)

at com.test.TestSimpleBean.main(TestSimpleBean.java:34)

Franchement je sais pas quoi faire
j'ai bien installe les logiciel nécessaires
0
Rejoignez-nous