I think I found something,
I got 2 jndi.propertis files in my server path, one at the conf directory and the second in my EAR at the deploy directory(downloaded and used by the client).
I think this messed up the server, alougth the files are with the same jndi properies in them.
when I removed the file in the ear it look like it's working fine.
it wasn't it.
any one with ideas?
I have created a small test client, with ejb call. it never fails.
the problem is when calling an EJB with in the server proccess.
In the calling side (the client) I can see the principal and credencials are currect, but on the interceptor side (the server) I'm missing the credentials (or both pririncipal and credentials). some how it's getting lost on the way.
Tried to create new InitialContex for each EJB call, did not help.
one more update:
I think I have focused the problem to EJB calls made from the webServer(tomcat, via servlet) to the appServer.
we got some logic running on a servlet that is configured as:
we are using the tomcat that is embedded in jboss so it's the same process