the home interface is bound to the bean's jndi name. so you need to say something like:
PermissionLocalHome permHome = (PermissionLocalHome)ic.lookup("java:comp/env/ejb/PermissionBean");
hope that helps.
I found out that i had to use
and not ic.lookup("java:comp/env/ejb/PermissionLocalHome")