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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user