Hello Jetty users,

We are migrating Jetty from v6 to ver 9.4.15 & using embedded Jetty.
Where in authentication is performed using form based , Jaas authentication.
In Jaas.conf file we have configured to use following  custom module
class DiscoveryLoginModule which  extends from AbstractLoginModule.

Now inside Login method of this class, We have following line of code
Credential cr =  Credential.getCredential(pwdStr);

Where we are getting NoClassDefFoundError for 
org.eclipse.jetty.util.security.Credential.
Inspite of the  fact that jetty-util jar corresponding to this is present in 
the buildpath.
Also,
Verbose:class shows that this class is getting loaded.
class load: org.eclipse.jetty.util.security.Credential from: 
file:/../lib/Jetty9.4.15/jetty-util-9.4.15.v20190215.jar

Can anybody suggest what I might be missing ? Any appropriate way to 
troubleshoot this?
Any help would be really appreciated.

Here is detailed stack:
NoClassDefFoundError.<init>(String) line: 70
DiscoveryLoginModule.login() line: 151
NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available 
[native method]
NativeMethodAccessorImpl.invoke(Object, Object[]) line: 95
DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: 55
Method.invoke(Object, Object...) line: 508
LoginContext.invoke(String) line: 788
LoginContext.access$000(LoginContext, String) line: 196
LoginContext$4.run() line: 698
LoginContext$4.run() line: 696
AccessController.doPrivileged(PrivilegedExceptionAction<T>) line: 650
LoginContext.invokePriv(String) line: 696
LoginContext.login() line: 597
JAASLoginService.login(String, Object, ServletRequest) line: 274
FormAuthenticator(LoginAuthenticator).login(String, Object, ServletRequest) 
line: 56
FormAuthenticator.login(String, Object, ServletRequest) line: 192
DeferredAuthentication.login(String, Object, ServletRequest) line: 123
Request.login(String, String) line: 2437


Thanks & Regards,
Sujay
DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://www.eclipse.org/mailman/listinfo/jetty-users

Reply via email to