WildFly 38: Pre-authentication problem with EJBs

34 views
Skip to first unread message

William Baskerville

unread,
Feb 18, 2026, 7:35:12 AM (11 days ago) Feb 18
to WildFly
Hi everyone!

How do you solve the pre-authentication problem with EJBs? I have a Java client that needs some information from the server prior to the actual user login. I'd like to have a single stateless bean that I can call anonymously and receive the data from. All other beans should require an authenticated user.

I'm using WildFly 38 with the JDBC-Realm and can't figure out how to configure WildFly and/or the client. Either I have only anonymous login for all beans or the anonymous login won't work and I receive something like "Authentication failed: all available authentication mechanisms failed: ANONYMOUS: javax.security.sasl.SaslException: ANONYMOUS: Server rejected authentication" in the client.

I'm deploying an EAR-file containing a JAR. If needed I would be fine with a second JAR for the anonymous stuff.

Thanks everyone
William
Reply all
Reply to author
Forward
0 new messages