j'ai tt essayé mais ca ne marche pas
voila ce que j'ai comme code :
e au moment du create() ca bloque et ca me genere cette erreur :
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 public void init(ServletConfig config) throws ServletException { super.init(config); initAllBean(); } private void initAllBean() { try { System.out.println("initAllBean"); candidatSessionHome = getHomeCandidat(); } catch (NamingException e) { e.printStackTrace(); } } private atlantis.m.candidat.session.CandidatSessionHome getHomeCandidat() throws NamingException { Object result = getContext() .lookup(atlantis.m.candidat.session.CandidatSessionHome.JNDI_NAME); return ((atlantis.m.candidat.session.CandidatSessionHome) PortableRemoteObject.narrow(result,CandidatSessionHome.class)); } private InitialContext getContext() throws NamingException { Hashtable props = new Hashtable(); props.put(InitialContext.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory"); props.put(InitialContext.PROVIDER_URL, "jnp://127.0.0.1:1099"); InitialContext initialContext = new InitialContext(props); System.out.println("InitialContext : "+initialContext.getNameInNamespace()); return initialContext; } private CandidatSession myCaSession= candidatSessionHome.create();
Merci[/b]
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11 java.lang.NoClassDefFoundError: org/jboss/tm/TransactionPropagationContextUtil org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.getTransactionPropagationContext(JRMPInvokerProxy.java:92) org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:109) org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:227) org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:167) org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46) org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55) org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:169) org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86) $Proxy2.create(Unknown Source)
Partager