I ask you how to solve this ???
java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
java.rmi.ServerException: RuntimeException; nested exception is:
java.lang.SecurityException: Unable to obtain active Subject
I got the home interface and create the bean , but when the client call the method ( helloWorld() ) it throws the exception above.
On server the error message is:
security not bound
It occurs when I try to lookup the Subject. Follows the peace of code:
Subject subject = (Subject) ic.lookup("java:comp/env/security/subject");
Thanks in advance,
Try SecurityAssociation.getSubject() ?