# CRISP: Spring Application Context XML file in CMS tier

**URL:** <https://community.bloomreach.com/t/crisp-spring-application-context-xml-file-in-cms-tier/1982>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [June 11, 2020, 1:59pm UTC](https://community.bloomreach.com/t/crisp-spring-application-context-xml-file-in-cms-tier/1982 "2020-06-11T13:59:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ziemsky](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/ziemsky/32/659_2.png) [@ziemsky](https://community.bloomreach.com/u/ziemsky)\
**Post date:** [June 11, 2020, 1:59pm UTC](https://community.bloomreach.com/t/crisp-spring-application-context-xml-file-in-cms-tier/1982/1 "2020-06-11T13:59:20Z")

</div>

Hello,

[CRISP API documentation](https://documentation.bloomreach.com/14/library/concepts/crisp-api/configuring-crisp-addon.html#Adding_a_ResourceResolver_in_Spring_Bean_assembly) states that it’s possible to configure CISP’s Spring Application Context XML definition as an XML file within the Site tier (e.g, site/components/src/main/resources/META-INF/hst-assembly/addon/crisp/overrides/custom-resource-resolvers.xml).

Is it possible to place such definition as an XML file within CMS tier? If so, where it should go?

Regards,  
Rafał

---

<div class="post-metadata">

**Author:** ![woonsanko](https://avatars.discourse-cdn.com/v4/letter/w/b5a626/32.png) [@woonsanko](https://community.bloomreach.com/u/woonsanko)\
**Post date:** [June 11, 2020, 2:14pm UTC](https://community.bloomreach.com/t/crisp-spring-application-context-xml-file-in-cms-tier/1982/2 "2020-06-11T14:14:22Z")

</div>

In which xm version?

---

<div class="post-metadata">

**Author:** ![ziemsky](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/ziemsky/32/659_2.png) [@ziemsky](https://community.bloomreach.com/u/ziemsky)\
**Post date:** [June 11, 2020, 2:15pm UTC](https://community.bloomreach.com/t/crisp-spring-application-context-xml-file-in-cms-tier/1982/3 "2020-06-11T14:15:09Z")

</div>

`13.4.2`, @woonsanko. Soon to be upgraded to 14.

---

<div class="post-metadata">

**Author:** ![woonsanko](https://avatars.discourse-cdn.com/v4/letter/w/b5a626/32.png) [@woonsanko](https://community.bloomreach.com/u/woonsanko)\
**Post date:** [June 11, 2020, 2:42pm UTC](https://community.bloomreach.com/t/crisp-spring-application-context-xml-file-in-cms-tier/1982/4 "2020-06-11T14:42:28Z")

</div>

Could you try to add the bean configuration in `cms-dependencies/src/main/resources/META-INF/hst-assembly/addon/crisp/overrides/custom-resource-resolvers.xml`?

Woonsan

---

<div class="post-metadata">

**Author:** ![ziemsky](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/ziemsky/32/659_2.png) [@ziemsky](https://community.bloomreach.com/u/ziemsky)\
**Post date:** [June 11, 2020, 2:48pm UTC](https://community.bloomreach.com/t/crisp-spring-application-context-xml-file-in-cms-tier/1982/5 "2020-06-11T14:48:35Z")

</div>

I’m assuming that `cms-dependencies` is another Maven module, adjacent to cms’, 'site`, etc.?

I’m asking, because my project doesn’t have one.

If so, I can presumably find an example of such module if I create vanilla project from Maven artefact of some recent version?

We started with version `12.0.1` couple years back which could probably explain why there is no `cms-dependencies` module.

---

<div class="post-metadata">

**Author:** ![woonsanko](https://avatars.discourse-cdn.com/v4/letter/w/b5a626/32.png) [@woonsanko](https://community.bloomreach.com/u/woonsanko)\
**Post date:** [June 11, 2020, 3:26pm UTC](https://community.bloomreach.com/t/crisp-spring-application-context-xml-file-in-cms-tier/1982/6 "2020-06-11T15:26:48Z")

</div>

You can try to add `cms/src/main/resources/META-INF/hst-assembly/addon/crisp/overrides/custom-resource-resolvers.xml` instead. `cms-dependencies` was added in the later versions and the `cms` sibling module includes that as a dependency.

---

<div class="post-metadata">

**Author:** ![ziemsky](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/ziemsky/32/659_2.png) [@ziemsky](https://community.bloomreach.com/u/ziemsky)\
**Post date:** [June 11, 2020, 3:30pm UTC](https://community.bloomreach.com/t/crisp-spring-application-context-xml-file-in-cms-tier/1982/7 "2020-06-11T15:30:24Z")

</div>

I’m happy to report that I did just that and that it works!

Thanks a lot, @woonsanko, you were most helpful and your responses were blazing fast!

Kudos to @Shane_Ahern, as well who suggested the same thing as well, in the meantime.

Thank you both 😄 👍

---

<div class="post-metadata">

**Author:** ![woonsanko](https://avatars.discourse-cdn.com/v4/letter/w/b5a626/32.png) [@woonsanko](https://community.bloomreach.com/u/woonsanko)\
**Post date:** [June 11, 2020, 4:13pm UTC](https://community.bloomreach.com/t/crisp-spring-application-context-xml-file-in-cms-tier/1982/8 "2020-06-11T16:13:00Z")

</div>

Cheers! 🍏 (holding my crisp-tasting hard apple cider)
