When I run my first bean this exception is throw:
Error closing connection with server: null
Exception in thread main
javax.naming.AuthenticationException: Error while
communicating with server: ; nested exception is:
java.rmi.RemoteException: Cannot access server:
/10.150.0.164:4201 Exception: ; nested exception is:
java.io.IOException: Cannot access server:
/10.150.0.164:4201 Exception:
java.net.ConnectException : Connection refused:
connect
at
org.openejb.client.JNDIContext.authenticate(JNDIContext.java:206)
at
org.openejb.client.JNDIContext.getInitialContext(JNDIContext.java:191)
at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662)
at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243)
at
javax.naming.InitialContext.init(InitialContext.java:219)
at
javax.naming.InitialContext.<init>(InitialContext.java:195)
at
com.pakprint.b2paper.xul.TestXULService.main(TestXULService.java:32)
My code is:
Properties p = new Properties();
//The JNDI properties you set depend
//on which server you are using.
//These properties are for the Remote Server.
p.put("java.naming.factory.initial",
"org.openejb.client.RemoteInitialContextFactory");
p.put("java.naming.provider.url",
"10.150.0.164:4201");
p.put("java.naming.security.principal",
"myuser");
p.put("java.naming.security.credentials",
"mypass");
//Now use those properties to create
//a JNDI InitialContext with the server.
InitialContext ctx = new InitialContext( p );
//Lookup the bean using it's deployment id
Object obj = ctx.lookup("/XULServiceEJB");
Am I using a wrong user/password?
Felipe F. Palma Dias - S�o Paulo/SP
http://www.palmadias.com.br
MSN: [EMAIL PROTECTED]
Yahoo: palmadias
Mobile: +55 11 99157578
__________________________________________________
Converse com seus amigos em tempo real com o Yahoo! Messenger
http://br.download.yahoo.com/messenger/