# Cannot find Custom Validator \[version 14.7.3\]

**URL:** <https://community.bloomreach.com/t/cannot-find-custom-validator-version-14-7-3/4318>\
**Category:** Experience Manager (PaaS/OnPrem)\
**Created:** [March 11, 2024, 9:35am UTC](https://community.bloomreach.com/t/cannot-find-custom-validator-version-14-7-3/4318 "2024-03-11T09:35:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ms2024](https://avatars.discourse-cdn.com/v4/letter/m/c5a1d2/32.png) [@ms2024](https://community.bloomreach.com/u/ms2024)\
**Post date:** [March 11, 2024, 9:35am UTC](https://community.bloomreach.com/t/cannot-find-custom-validator-version-14-7-3/4318/1 "2024-03-11T09:35:01Z")

</div>

Hi,

I created a custom validator with the following instructions: [Create a Custom Validator - Bloomreach Experience Manager (PaaS/Self-Hosted) - The Fast and Flexible Headless CMS](https://xmdocumentation.bloomreach.com/library/concepts/plugins/create-a-custom-field-validator.html)

If I use the validator with the regexp.pattern property, it works. As soon as I want to use the validator with the hipposys.className property via a Java class I get the following error message:

> WARN http-nio-8080-exec-8 [ValidatorService.getValidator:83] Cannot find validator ‘TestValidator’

I copied the Validator class from the instructions and adapted only the name and pattern key. It is also in the same package as an already functioning custom listener.

What else could be causing the validator class not to be found?

Thanks

---

<div class="post-metadata">

**Author:** ![jeroen.hoffman](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jeroen.hoffman/32/43_2.png) [@jeroen.hoffman](https://community.bloomreach.com/u/jeroen.hoffman)\
**Post date:** [March 11, 2024, 9:49am UTC](https://community.bloomreach.com/t/cannot-find-custom-validator-version-14-7-3/4318/2 "2024-03-11T09:49:55Z")

</div>

Hi,  
Do you have `hipposys.className` as you wrote or `hipposys:className` as documented?  
Does the compiled TestValidator.class end up in your cms.war, in WEB-INF/classes?

HTH  
Jeroen

---

<div class="post-metadata">

**Author:** ![ms2024](https://avatars.discourse-cdn.com/v4/letter/m/c5a1d2/32.png) [@ms2024](https://community.bloomreach.com/u/ms2024)\
**Post date:** [March 11, 2024, 10:27am UTC](https://community.bloomreach.com/t/cannot-find-custom-validator-version-14-7-3/4318/3 "2024-03-11T10:27:54Z")

</div>

I am using `hipposys:className` (i just copied the email node).  
I am working local but if I create an deploy package the TestValidator.class end up in my cms.war

---

<div class="post-metadata">

**Author:** ![jeroen.hoffman](https://yyz1.discourse-cdn.com/flex027/user_avatar/community.bloomreach.com/jeroen.hoffman/32/43_2.png) [@jeroen.hoffman](https://community.bloomreach.com/u/jeroen.hoffman)\
**Post date:** [March 11, 2024, 10:52am UTC](https://community.bloomreach.com/t/cannot-find-custom-validator-version-14-7-3/4318/4 "2024-03-11T10:52:46Z")

</div>

Maybe there’s an earlier error “Cannot create validator ‘TestValidator’:…” in the logs, on startup or on reconfiguration of the module at /hippo:configuration/hippo:modules/validation/hippo:moduleconfig

---

<div class="post-metadata">

**Author:** ![ms2024](https://avatars.discourse-cdn.com/v4/letter/m/c5a1d2/32.png) [@ms2024](https://community.bloomreach.com/u/ms2024)\
**Post date:** [March 11, 2024, 12:21pm UTC](https://community.bloomreach.com/t/cannot-find-custom-validator-version-14-7-3/4318/5 "2024-03-11T12:21:25Z")

</div>

Yes, there was actually an error message at startup. After I corrected the exception, the TestValidator worked.

Thanks for the help!
