# Shield 1.3.3 in OSGI

**URL:** <https://discuss.elastic.co/t/shield-1-3-3-in-osgi/74285>\
**Category:** Elasticsearch\
**Created:** [February 7, 2017, 8:33pm UTC](https://discuss.elastic.co/t/shield-1-3-3-in-osgi/74285 "2017-02-07T20:33:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mujeeb](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@mujeeb](https://discuss.elastic.co/u/mujeeb)\
**Post date:** [February 7, 2017, 8:33pm UTC](https://discuss.elastic.co/t/shield-1-3-3-in-osgi/74285/1 "2017-02-07T20:33:34Z")

</div>

There is a split package issue between elasticsearch1.x and Shield 1.3.3. Shield plug-in doesn't get intercepted (or override the transport) because of this.

We had to put shield jar first and then the elasticsearch jar in the bundle classpath to make it work. The distribution of Shield will be an issue here without the license even though our product is only acting as TransportClient not the ES server.

Any chances that you can OSGI-fy the jars?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 7, 2017, 11:58pm UTC](https://discuss.elastic.co/t/shield-1-3-3-in-osgi/74285/2 "2017-02-07T23:58:40Z")

</div>

Versions 1.x are now EOL'ed.

---

<div class="post-metadata">

**Author:** ![mujeeb](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@mujeeb](https://discuss.elastic.co/u/mujeeb)\
**Post date:** [February 8, 2017, 12:38am UTC](https://discuss.elastic.co/t/shield-1-3-3-in-osgi/74285/3 "2017-02-08T00:38:14Z")

</div>

Thanks David :). Will try 2.x. Any idea if this issue exists in 2.x as well? I haven't seen the jars yet but if it is split package issue between the elastic and shield jars then we will run into the same issue.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 8, 2017, 11:03am UTC](https://discuss.elastic.co/t/shield-1-3-3-in-osgi/74285/4 "2017-02-08T11:03:29Z")

</div>

I don't know. I'm really unsure it plays well with OSGI. But actually if you move to the REST client, I believe it should work well.

But the REST client is a low level one at this time.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 8, 2017, 11:03am UTC](https://discuss.elastic.co/t/shield-1-3-3-in-osgi/74285/5 "2017-03-08T11:03:36Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
