WLS 91. and anonymous access
We have a Swing application that communicates to an EJB application via RMI. This setup works fine with JBoss, WebSphere, and Weblogic 8.1 — but not Weblogic 9.1 When we try it, we get the following exception:
java.rmi.AccessException: [EJB:010160]Security Violation: User: ‘<anonymouse>’ has insufficient permission to access EJB: type=,
Some googles have turned up this thread, which shows the same problem, but not a solution. Some recent comments on that thread suggest setting the weblogic.jndi.enableDefaultUser flag,
but I don’t know how to do that and Google shows me nothing.
In the meantime, I opened a case with BEA. They suggested setting -Dweblogic.security.allowAnonymous=true on the startup script, but that did nothing. Then they suggested checking the box name “Anonymous Admin Lookup Enabled” under Domain->Security but that didn’t do anything either. So I may be on my own on this one.
So, people out there in Lazyweb land — how about it? Any ideas? I’m at a loss, which generally doesn’t happen too often. If someone can even tell me how to set weblogic.jndi.enableDefaultUser, that would make me very happy.
August 17th, 2006 at 2:50 am
I can suggest a solution, that might suit your situation. If you are running a java client against your weblogic server, where you make the java call, do it like this:
java {other properties} -Dweblogic.jndi.enableDefaultUser=true client.Main {parameters}
That worked for me.