-
1. Re: Error while invoking the bean from the client
pankilshah82 Jun 8, 2004 3:10 AM (in response to milgurung)hi ,
the problem is with the security manager is not loaded . add the following code in the beginning of ur client :
if (System.getSecurityManager() == null)
{
System.setSecurityManager(new RMISecurityManager());
}
Also create a security policy file with below configurations :
grant {
permission java.security.AllPermission;
};
Now run ur client with the following syntax:
java -Djava.security.policy=(security policy file name) client file.
we have solved the above communication exception and able to get the LocalHome object reference but we are stuck with a null pointer exception when we call the create method on the localhome 's object. if u get the solution than post it as a reply to this suggestion. -
2. Re: Error while invoking the bean from the client
lepe Jun 8, 2004 3:35 AM (in response to milgurung)Sorry but aren't you way out no??? Expecting to have a local home on a clien app? Do read the spec regarding Local and Remote interfaces first and then see what's wrong!
You have to use remote interfaces when using remote clients, locals are only for the JBoss JVM!
/L