문제

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.

도움이 되었습니까?

해결책

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.
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top