Question

I am implementing example

See here

and I am trying to manage to work the login interface. Actually I am configuring TomEE to use JAAS auth technology. The author suggested me to read (See Docs) to confiture JAAS on TomEE. The first hint says

Add to your CATALINA_OPTS the java.security.auth.login.config system property:
    Djava.security.auth.login.config=$CATALINA_BASE/conf/login.config

But I don't know where java.security.auth.login.config is. And I do not have any $CATALINA_BASE/conf/login.config file.

Was it helpful?

Solution

From Openejb/TomEE mailing list, I understood that you have to:

  • Add the tag to the server.xml;
  • create the login.config in TomEE's conf directory;
  • add the -Djava parameter to the startup line;
  • create the files user.properties and groups.properties in the same directory as the login.config file.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top