Bonjour,
Je cherche à découvrir les EJB (je débute dans ce secteur donc) et j'ai décidé de m'appuyer sur JBoss et JBoss Eclipse IDE.
J'ai tenté de réaliser le tutoriel que l'on trouve sur le site de JBoss.
Tout va bien j'usqu'au chapitre 11 : le déploiement.
Ma configuration :
- serveur JBoss 4.0.2
- Eclipse 3.1.1
- plugin JBoss IDE 1.6.0 (téléchargé par maj auto dans Eclipse samedi)
- jdk/jre 1.5.0_05
Mon problème :
Le seveur démarre bien sous controle d'Eclipse, mais le déploiement donne des défauts. Voici les messages (en 2 temps puisque j'ai fait une tentatve pour résoudre (en rouge mes commentaires) .
Le premier temps :
Le deuxième temps : les choses "empirent"
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 21:32:07,958 WARN [verifier] EJB spec violation: Bean : Fibo Method : public abstract Fibo create() throws CreateException Section: 7.10.6 Warning: The methods in the home interface must include java.rmi.RemoteException in their throws clause. Mes commentaires : J'ai rajouté l'exception RemoteException dans la clause throws de la métode ejbCreate() de la classe FiboBean. 21:32:07,978 WARN [verifier] EJB spec violation: Bean : Fibo Section: 22.2 Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local home interface, if any, in the <local-home> element. Info : Class not found on 'tutoriel.interfaces.FiboLocalHome': No ClassLoaders found for: tutoriel.interfaces.FiboLocalHome Mes commentaires : Dans le fichier src/META-INF/ejb-jar.xml il y a le code suivant <!-- Session Beans --> <session > <description><![CDATA[]]></description> <ejb-name>Fibo</ejb-name> <home>tutoriel.interfaces.FiboHome</home> <remote>tutoriel.interfaces.Fibo</remote> <local-home>tutoriel.interfaces.FiboLocalHome</local-home> <local>tutoriel.interfaces.FiboLocal</local> <ejb-class>tutoriel.ejb.FiboBean</ejb-class> <session-type>Stateless</session-type> <transaction-type>Container</transaction-type> </session> J'ai supprimé le texte en vert. 21:32:07,988 WARN [verifier] EJB spec violation: Bean : Fibo Section: 22.2 Warning: The bean provider must specify the fully-qualified name of the enterprise bean's local interface, if any, in the <local> element. Info : Class not found on 'tutoriel.interfaces.FiboLocal': No ClassLoaders found for: tutoriel.interfaces.FiboLocal
Là j'en perd mon latin, car un certain nombre de méthodes citées en défaut ne sont même pas implémentées (je suppose qu'elles sont dans les classes/interfaces dont on hérite).
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 22:05:24,689 WARN [verifier] EJB spec violation: Bean : Fibo Section: 7.10.7 Warning: The local interface must extend the javax.ejb.EJBLocalObject interface. 22:05:24,699 WARN [verifier] EJB spec violation: Bean : Fibo Method : public abstract [D calculer(int) throws RemoteException Section: 7.10.7 Warning: The methods in the local interface must not include java.rmi.RemoteException in their throws clause. 22:05:24,699 WARN [verifier] EJB spec violation: Bean : Fibo Method : public abstract void remove() throws RemoteException, RemoveException Section: 7.10.7 Warning: The methods in the local interface must not include java.rmi.RemoteException in their throws clause. 22:05:24,699 WARN [verifier] EJB spec violation: Bean : Fibo Method : public abstract Handle getHandle() throws RemoteException Section: 7.10.7 Warning: The methods in the local interface must not include java.rmi.RemoteException in their throws clause. 22:05:24,699 WARN [verifier] EJB spec violation: Bean : Fibo Method : public abstract EJBHome getEJBHome() throws RemoteException Section: 7.10.7 Warning: The methods in the local interface must not include java.rmi.RemoteException in their throws clause. 22:05:24,699 WARN [verifier] EJB spec violation: Bean : Fibo Method : public abstract Object getPrimaryKey() throws RemoteException Section: 7.10.7 Warning: The methods in the local interface must not include java.rmi.RemoteException in their throws clause. 22:05:24,699 WARN [verifier] EJB spec violation: Bean : Fibo Method : public abstract boolean isIdentical(EJBObject) throws RemoteException Section: 7.10.7 Warning: The methods in the local interface must not include java.rmi.RemoteException in their throws clause.
Enfin, de l'aide SVP !!
Partager