Bonjour !
Je suis noob avec JBoss, et pour le moment, j'aimerais déployer mes petit EJB que je possède deja !
voici un code tout simple d'un exemple d'ejb :
Si je copi le .jar dans le repertoire deploy, j'ai l'erreur suivante :Code:
1
2
3
4
5
6
7
8
9
10
11
12
13 package org.hello.session; import java.rmi.RemoteException; import javax.ejb.EJBObject; public interface HelloWorldSession extends EJBObject { public static final String CODEP[] = {"CODE", "Code"}; public String getGreeting() throws RemoteException; } // end of the class ....
Si j'efface la ligne :Code:
1
2
3
4
5
6 WARN [verifier] EJB spec violation: Bean : HelloWorldSession Method : public abstract HelloWorldSession create() throws RemoteException, CreateException Section: ... Warning: The method return values in the home interface must be of valid types for RMI/IIOP.
ça marche, plus d'erreur !!! Seulement, j'ai besoin de cette ligne, et cela marche tel quel sous weblogic...Code:
1
2 public static final String CODEPLAN[] = {"CODE", "Code"};
Quelqu'un a une solution ???
Merci beaucoup !!!