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

Created by Steve Place, Modified on Wed, Jul 3 at 9:21 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 at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article