Salve a tutti!
ho una domanda tranquilla tranquilla per voi:
devo testare 2 metodi presenti in EJB (2.1).
per questo ho creato un Progetto Application Client con il mio bel RAD 7.5.
(Il Was utilizzato è il 6.0).
In questo Client, nella Classe Main, e nel main quindi, ho scritto:
poi:codice:MyBeanFacadeLocal myB;
facendo partire il progetto come una normale classe java, in console ho il seguente errore:codice:myB ((MyBeanFacadeLocalHome)ServiceLocator.getInstance(). getLocalHome("java:comp/env/ejb/MyBeanFacade")).create();
- NamingException it's impossible load URL to localize properties file
- Context initialization --> Default
27-giu-2011 15.03.13 com.ibm.ws.naming.java.javaURLContextFactory
SEVERE: javaAccessorNotSet
27-giu-2011 15.03.15 com.ibm.ws.naming.util.WsnInitCtxFactory
WARNING: jndiUnavailCommErr
- NamingException it's impossible load URL to localize clustersProperties properties file
27-giu-2011 15.03.15 com.ibm.ws.naming.java.javaURLContextFactory
SEVERE: javaAccessorNotSet
- javax.naming.ConfigurationException: Name space accessor for the java: name space has not been set. Possible cause is that the user is specifying a java: URL name in a JNDI Context method call but is not running in a J2EE client or server environment.
qualcuno ha qualche dritta?
grazie in anticipo e saluti!

Rispondi quotando