# For anybody using the Apache CXF JAX-RS environment - URL issues

**URL:** <https://forum.openreferral.org/t/for-anybody-using-the-apache-cxf-jax-rs-environment-url-issues/80>\
**Category:** Technical\
**Tags:** api\
**Created:** [May 25, 2021, 9:07am UTC](https://forum.openreferral.org/t/for-anybody-using-the-apache-cxf-jax-rs-environment-url-issues/80 "2021-05-25T09:07:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pbrown](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openreferral.org/pbrown/32/29_2.png) [@pbrown](https://forum.openreferral.org/u/pbrown)\
**Post date:** [May 25, 2021, 9:07am UTC](https://forum.openreferral.org/t/for-anybody-using-the-apache-cxf-jax-rs-environment-url-issues/80/1 "2021-05-25T09:07:10Z")

</div>

This may be of use to anybody using Java & specifically where Apache CXF is part of the stack.  
We’ve come across a rather unfortunate scenario where there is a clash between the use of /services in the web services url and default Apache CXF behaviour.  
By default /services is interpreted by CXF as a request to return a list of published web services. This obviously creates a clash with use of /services in the Open Referral (UK) web services spec.  
There are a number of workarounds for this issue - this post will be a useful starting point:  
[http://cxf.547215.n5.nabble.com/CXF-Service-list-td5789021.html](http://cxf.547215.n5.nabble.com/CXF-Service-list-td5789021.html)

---

<div class="post-metadata">

**Author:** ![Ian-DigitalGaps](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openreferral.org/ian-digitalgaps/32/22_2.png) [@Ian-DigitalGaps](https://forum.openreferral.org/u/Ian-DigitalGaps)\
**Post date:** [May 26, 2021, 5:24pm UTC](https://forum.openreferral.org/t/for-anybody-using-the-apache-cxf-jax-rs-environment-url-issues/80/2 "2021-05-26T17:24:47Z")

</div>

Just checking that you will let us know if any of your APIs change as we are using them in a pilot in Lancashire.

---

<div class="post-metadata">

**Author:** ![MikeThacker-iStandUK](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openreferral.org/mikethacker-istanduk/32/8_2.png) [@MikeThacker-iStandUK](https://forum.openreferral.org/u/MikeThacker-iStandUK)\
**Post date:** [May 27, 2021, 10:35am UTC](https://forum.openreferral.org/t/for-anybody-using-the-apache-cxf-jax-rs-environment-url-issues/80/3 "2021-05-27T10:35:39Z")

</div>

@pbrown as @Ian-DigitalGaps has raised this, will you advise when you’ve applied the workaround live to Placecube feeds and whether this will be in addition to supporting the /hservices calls or instead of them?

Thanks for providing the advice that could be useful for other Java implementations

---

<div class="post-metadata">

**Author:** ![pbrown](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openreferral.org/pbrown/32/29_2.png) [@pbrown](https://forum.openreferral.org/u/pbrown)\
**Post date:** [May 27, 2021, 11:04am UTC](https://forum.openreferral.org/t/for-anybody-using-the-apache-cxf-jax-rs-environment-url-issues/80/4 "2021-05-27T11:04:15Z")

</div>

Yes I will be communicating any changes directly to affected parties

---

<div class="post-metadata">

**Author:** ![pbrown](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.openreferral.org/pbrown/32/29_2.png) [@pbrown](https://forum.openreferral.org/u/pbrown)\
**Post date:** [May 27, 2021, 11:05am UTC](https://forum.openreferral.org/t/for-anybody-using-the-apache-cxf-jax-rs-environment-url-issues/80/5 "2021-05-27T11:05:32Z")

</div>

As per my response to @Ian-DigitalGaps I’ll be communicating changes directly to affected parties.
