authentication - org.apache.catalina.realm.JAASRealm.authenticate Unexpected error java.lang.IllegalArgumentException: wrong number of arguments -
i'm trying create jaas authentication webapplication (running on tomcat 8, i'm getting error:
07-apr-2017 10:37:49.993 severe [http-apr-11080-exec-3] org.apache.catalina.realm.jaasrealm.authenticate unexpected error java.lang.illegalargumentexception: wrong number of arguments @ sun.reflect.nativemethodaccessorimpl.invoke0(native method) @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62) @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43) @ java.lang.reflect.method.invoke(method.java:497) @ javax.security.auth.login.logincontext.invoke(logincontext.java:755) @ javax.security.auth.login.logincontext.access$000(logincontext.java:195) @ javax.security.auth.login.logincontext$4.run(logincontext.java:682) @ javax.security.auth.login.logincontext$4.run(logincontext.java:680) @ java.security.accesscontroller.doprivileged(native method) @ javax.security.auth.login.logincontext.invokepriv(logincontext.java:680) @ javax.security.auth.login.logincontext.login(logincontext.java:587) @ org.apache.catalina.realm.jaasrealm.authenticate(jaasrealm.java:413) @ org.apache.catalina.realm.jaasrealm.authenticate(jaasrealm.java:334) @ org.apache.catalina.authenticator.basicauthenticator.authenticate(basicauthenticator.java:84) @ org.apache.catalina.authenticator.authenticatorbase.invoke(authenticatorbase.java:577) @ org.apache.catalina.core.standardhostvalve.invoke(standardhostvalve.java:142) @ org.apache.catalina.valves.errorreportvalve.invoke(errorreportvalve.java:79) @ org.apache.catalina.valves.abstractaccesslogvalve.invoke(abstractaccesslogvalve.java:616) @ org.apache.catalina.core.standardenginevalve.invoke(standardenginevalve.java:88) @ org.apache.catalina.connector.coyoteadapter.service(coyoteadapter.java:518) @ org.apache.coyote.http11.abstracthttp11processor.process(abstracthttp11processor.java:1091) @ org.apache.coyote.abstractprotocol$abstractconnectionhandler.process(abstractprotocol.java:673) @ org.apache.tomcat.util.net.aprendpoint$socketprocessor.dorun(aprendpoint.java:2503) @ org.apache.tomcat.util.net.aprendpoint$socketprocessor.run(aprendpoint.java:2492) @ java.util.concurrent.threadpoolexecutor.runworker(threadpoolexecutor.java:1142) @ java.util.concurrent.threadpoolexecutor$worker.run(threadpoolexecutor.java:617) @ org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run(taskthread.java:61) @ java.lang.thread.run(thread.java:745)
here context.xml :
<?xml version="1.0" encoding="utf-8"?> <context> <realm classname="org.apache.catalina.realm.jaasrealm" appname="bytesloungelogin" userclassnames="org.apache.olingo.odata2.sample.security.login.userprincipal" roleclassnames="org.apache.olingo.odata2.sample.security.login.roleprincipal" /> </context>
my jaas.conf :
bytesloungelogin { org.apache.olingo.odata2.sample.security.login.login required debug=false; };
my setenv.sh :
user_java_opts="${user_java_opts} -djava.security.auth.login.config==/appli/projects/nsi/tomcat-8.0/odata/conf/jaas.config " export user_java_opts
any ideas??
thank in advance.
Comments
Post a Comment