-
1. Re: Close but no cigar
petertje Apr 26, 2003 1:36 PM (in response to jmrives)remove the password-stacking="useFirstPass" option; this should only be used in combination with another login module. In your case, it causes the ClientLoginModule to skip calling your callbacks, which you can easily verify by putting some logging into your callbacks.
Although the javadoc of the ClientLoginModule suggest that there is a difference between the 'useFirstPass' and 'tryFirstPass' options, this is not the case. In both cases, the login credentials are obtained from the shared-state map.
Hth
Peter. -
2. Re: Close but no cigar
jmrives Apr 29, 2003 10:36 AM (in response to jmrives)Thanks Peter. I had already removed that spurious bit of configuration by the time I saw your reply. However, I am still having problems. I get the following exception after I create the LoginContext and call the login method when I try to access a method on a SLSB:
Caused by: java.lang.ClassNotFoundException: org.jboss.ejb.plugins.local.EntityProxy (no security manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:368)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:159)
at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:631)
at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:257)
at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:200)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1513)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:140)
at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:92)
at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77)
at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:109)
at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:82)
... 16 more -
3. Re: Close but no cigar
petertje Apr 29, 2003 3:01 PM (in response to jmrives)The short answer is that your client is not (yet) allowed to download code; this can be enabled by setting the RMISecurityManager.
However, i'm a bit surprised that your standalone client apparently has obtained an object of class EntityProxy, which is the proxy for _local_ ejb entity beans. You are not trying to access a local interface from a standalone client, are you??
Peter