Hi Guys, I`m really struggling to implement the SQLLoginModule for JAAS based authentication in TomEE Rest.
I have followed the guide on http://tomee.apache.org/tomee-jaas.html replacing it with the below server.xml: <Realm className="org.apache.catalina.realm.LockOutRealm"> <Realm className="org.apache.catalina.realm.JAASRealm" appName="SQLLoginApp" userClassNames="org.apache.openejb.core.security.AbstractSecurityService$User" roleClassNames="org.apache.openejb.core.security.AbstractSecurityService$Group"> </Realm> </Realm> conf/login.config: SQLLoginApp { org.apache.openejb.core.security.jaas.SQLLoginModule required dataSourceName="jdbc/db" userSelect="select ..... " groupSelect="select ..... " }; And starting tomee with the following: startup.bat -Djava.security.auth.login.config=$CATALINA_HOME\conf\login.config Getting: Oct 17, 2012 1:52:00 PM org.apache.catalina.realm.JAASRealm authenticate SEVERE: Unexpected error javax.security.auth.login.LoginException: No LoginModules configured for SQLLoginApp Seems it`s not picking up the login.config file. I have tried every possible combination to load it \, reverse /, full path, no path, login under bin.... Just cant get it to pick it up Any help would be appreciated. Regards Derick Standard Bank email disclaimer and confidentiality note Please go to http://www.standardbank.co.za/site/homepage/emaildisclaimer.html to read our email disclaimer and confidentiality note. Kindly email [email protected] (no content or subject line necessary) if you cannot view that page and we will email our email disclaimer and confidentiality note to you.
