By: Steve Sobol user 06 Sep 2022 at 4:12 p.m. CDT

5 Responses
Steve Sobol gravatar
Hello, I want to use the API both to create and delete users, but: I'm using 4.4.1. I found https://jenkins.gluu.org/maven/org/gluu/api-server/4.4.1.Final/api-server-4.4.1.Final.jar - downloaded and installed it according to the instructions at https://gluu.org/docs/oxtrust-api/4.1/ - but when I restarted the identity service, this happened: ``` org.jboss.weld.exceptions.DeploymentException: WELD-001414: Bean name is ambiguous. Name persistenceEntryManager resolves to beans: [Producer Method [PersistenceEntryManager] with qualifiers [@Default @Any @Named] declared as [[UnbackedAnnotatedMethod] @Produces @ApplicationScoped @Named public org.gluu.oxtrust.service.AppInitializer.createPersistenceEntryManager()], Producer Method [PersistenceEntryManager] with qualifiers [@Default @Any @Named] declared as [[UnbackedAnnotatedMethod] @Produces @ApplicationScoped @Named public org.gluu.oxtrust.service.AppInitializer.createPersistenceEntryManager()]] at org.jboss.weld.bootstrap.Validator.validateBeanName(Validator.java:653) at org.jboss.weld.bootstrap.ConcurrentValidator$5.doWork(ConcurrentValidator.java:121) at org.jboss.weld.bootstrap.ConcurrentValidator$5.doWork(ConcurrentValidator.java:119) at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:62) at org.jboss.weld.executor.IterativeWorkerTaskFactory$1.call(IterativeWorkerTaskFactory.java:55) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) 2022-09-06 04:28:36.184:INFO :oejs.AbstractConnector:main: Started ServerConnector@5b34efe2{HTTP/1.1, (http/1.1)}{localhost:8082} 2022-09-06 04:28:36.198:INFO :oejs.Server:main: Started Server@4808bc9b{STARTING}[10.0.9,sto=5000] @18396ms ``` I'm not using Docker or Kubernetes. I used setup.py to install Gluu onto an Ubuntu VM I created specifically to run Gluu. It's running in the chroot, but not in a container. The instructions look like they're geared towards someone using a Kubernetes cluster. Help, please...

By Michael Schwartz Account Admin 06 Sep 2022 at 5:07 p.m. CDT

Michael Schwartz gravatar
We do not support using the jar file as a deployment installation mechanism. https://gluu.org/docs/gluu-server/4.4/installation-guide/install-ubuntu/ If you want to add/delete users, why don't use you SCIM? There is a `/users` endpoint--e.g. POST to add a user.

By Aliaksandr Samuseu staff 07 Sep 2022 at 10:41 a.m. CDT

Aliaksandr Samuseu gravatar
It seems like Steve tries to use oxTrust API. The docs for 4.1 tell you to deploy that jar file indeed. But there is no docs for newer versions, so we may not support its deployment like that any more, indeed. I'll ask around. What do you plan to use it for, Steve?

By Aliaksandr Samuseu staff 07 Sep 2022 at 11:07 a.m. CDT

Aliaksandr Samuseu gravatar
Here is a word from oxTrust developer: you should try next JARs instead for Gluu CE v4.4 (choose the one that closely match your minor version): - [https://maven.gluu.org/maven/org/gluu/oxtrust-api-server/4.4.0.Final/oxtrust-api-server-4.4.0.Final.jar](https://maven.gluu.org/maven/org/gluu/oxtrust-api-server/4.4.0.Final/oxtrust-api-server-4.4.0.Final.jar) - [https://maven.gluu.org/maven/org/gluu/oxtrust-api-server/4.4.1.Final/oxtrust-api-server-4.4.1.Final.jar](https://maven.gluu.org/maven/org/gluu/oxtrust-api-server/4.4.1.Final/oxtrust-api-server-4.4.1.Final.jar)

By Michael Schwartz Account Admin 07 Sep 2022 at 11:19 a.m. CDT

Michael Schwartz gravatar
@shekhar.laad Please update docs

By Shekhar L. staff 07 Sep 2022 at 12:39 p.m. CDT

Shekhar L. gravatar
@Michael.Schwartz doc has been update now. https://gluu.org/docs/gluu-server/4.4/api-guide/oxtrust-api/