By: ved singh user 10 Apr 2018 at 12:58 a.m. CDT

1 Response
ved singh gravatar
Hi, I was trying to implement account lockout with service added as external java library/jar.Plan is to call the service from basic_lock.py script. I followed the steps as mentioned [here](https://gluu.org/docs/ce/3.1.1/authn-guide/customauthn/#adding-libraries) "Adding Libraries" When I add the jar file under "/opt/gluu/jetty/oxauth/lib/ext", the server restarts normally and i don't see any exceptions in logs. But when i try to get to admin console the system gets redirected to "/identity/error" page. This is the error that i'm getting ==> [link](https://drive.google.com/file/d/1UspL9L7C4bCrgKLZCuii84s7Qw669QTR/view) FYI - I'm able to run the imported jar from a test python script. Any clue why this must be happening. Thanks

By Aliaksandr Samuseu staff 10 Apr 2018 at noon CDT

Aliaksandr Samuseu gravatar
Hi, Ved. I believe `/opt/gluu/jetty/oxauth/lib/ext` is only for libraries used by scripts running on user-facing pages. Like, for JS libraries. If you need to expand functionality of Jython, you should drop your libs to `/opt/jython-2.7.0/Lib/` If it won't be enough, you can try adding those lines to your script: ``` import sys sys.path.append('/opt/jython-2.7.0/Lib/your_lib_dir') ``` Please note that community support doesn't cover custom script development.