[jboss-user] [JNDI/Naming/Network] - Re: Why does jbossall-client.jar cause

leo_ni do-not-reply at jboss.com
Fri Aug 17 16:28:03 EDT 2007


Also, just as you suggested, I removed Context.PROVIDER_URL setting for InitialContext's parameter 'coz it's looking up EJB from inside the server, and the codes arejust like the following:

Properties env1 = new Properties();
env1.setProperty(Context.SECURITY_PRINCIPAL,"u01");
env1.setProperty(Context.SECURITY_CREDENTIALS,"u01");
env1.put.Context.INITIAL_CONTEXT_FACTORY,"org.jboss.security.jndi.JndiLoginInitialContextFactory"); 
Context initial = new InitialContext(env1);


it still gave me error like:
Caused by: java.lang.ClassCastException: $Proxy83
	at com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:212)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4075371#4075371

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4075371



More information about the jboss-user mailing list