By: Jeff Corrigan user 01 Dec 2017 at 9:44 a.m. CST

11 Responses
Jeff Corrigan gravatar
Hi. We have upgraded the oxbroker project to work with 3.1.1. As a contingency plan we want to make sure we can use the /claims endpoint functionality that was provided by that project. We might not need it but just in case we wanted to go through the process. Where do we deploy the war file in gluu 3.1.1?

By Yuriy Movchan staff 02 Dec 2017 at 12:52 p.m. CST

Yuriy Movchan gravatar
``` /bin/mkdir -p /opt/gluu/jetty/oxbroker /opt/jre/bin/java -jar /opt/jetty/start.jar jetty.home=/opt/jetty jetty.base=/opt/gluu/jetty/oxbroker --add-to-start=deploy,http,logging,jsp,ext,http-forwarded /bin/chown -R jetty:jetty /opt/gluu/jetty/oxbroker Copy ./attached_file_folder/oxbroker to /etc/default /bin/chown root:root /etc/default/oxbroker cp /opt/jetty/bin/jetty.sh /etc/init.d/oxbroker sed -i 's/^# Provides: jetty/# Provides: oxbroker/' /etc/init.d/oxbroker /usr/sbin/update-rc.d oxbroker defaults 60 20 Copy oxbroker.war to /opt/gluu/jetty/oxbroker/webapps /usr/sbin/service oxbroker start ```

By Yuriy Movchan staff 02 Dec 2017 at 12:53 p.m. CST

Yuriy Movchan gravatar
./attached_file_folder/oxbroker

By Yuriy Movchan staff 02 Dec 2017 at 1 p.m. CST

Yuriy Movchan gravatar
Also we need to update apache2 setting. We need to add to file: /etc/apache2/sites-available/https_gluu.conf ``` <Location /oxbroker> ProxyPass http://localhost:8087/oxbroker retry=5 disablereuse=On ProxyPassReverse http://localhost:8087/oxbroker Order allow,deny Allow from all </Location> ```

By Yuriy Movchan staff 18 Dec 2017 at 12:21 a.m. CST

Yuriy Movchan gravatar
In /etc/default/oxbroker config file we specified to use port 8087 for this service. Can you run outside of chroot: 1. service gluu-server-3.1.1 stop 2. netstat -tunpl | awk '{ print $4 }' |grep -Eoh ':(80|443|8080|8081|8082|8083|8084|8085|8086|8087|8090|1389|1689|11211)' This will show if service stop all processes. I think this should show the output: :8087 We need to update `/etc/init.d/gluu-server-3.1.1` because it not has instructions about oxbroker. Can you add this file line **stopGenericService oxBroker "oxBroker"** before this [line](https://github.com/GluuFederation/community-edition-package/blob/3.1.1/package/initd/gluu-server#L184)?

By Yuriy Movchan staff 18 Dec 2017 at 12:42 a.m. CST

Yuriy Movchan gravatar
There is equivalent of ubuntu `/usr/sbin/update-rc.d oxbroker defaults 60 20`. In CentOS we can use this command `/sbin/chkconfig oxbroker on` to enable service.

By Mohib Zico staff 03 Jan 2018 at 6:38 a.m. CST

Mohib Zico gravatar
Happy New Year! Do you think we should keep this ticket open?

By Mohib Zico staff 03 Jan 2018 at 11:55 a.m. CST

Mohib Zico gravatar
Thanks, David.