PostgreSQL: javax.security.auth.login.LoginException: No LoginModules configured for pgjdbc

Created by Steve Place, Modified on Fri, 14 Apr 2023 at 10:35 AM by Steve Place

If you're getting this error message, it means Stardog can't find your jaas.conf file. You need to add the file path to your STARDOG_SERVER_JAVA_ARGS environment variable (and also STARDOG_JAVA_ARGS if you're using the CLI). The commands to do this are:


export STARDOG_SERVER_JAVA_ARGS="$STARDOG_SERVER_JAVA_ARGS -Djava.security.auth.login.config=/path/to/jaas.conf"


export STARDOG_JAVA_ARGS="$STARDOG_JAVA_ARGS -Djava.security.auth.login.config=/path/to/jaas.conf"


For more information on virtual graphs, please see the docs.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article