Hi Josip
The error doesn't really ring a bell to me other than that you are using a file realm to store your Principals and Principal Groups and it seems your appserver has a problem reading that file.
Did you try everything without security enabled? Did you try using a
Servlet and a login-form?
Why did you add the Principal mapping in the
glassfish-web.xml instead of
sun-ejb-jar.xml in the META-INF directory of your
EJB project?
Regards,
Frits