# Unable to find GatewayHook

**URL:** <https://forum.inductiveautomation.com/t/unable-to-find-gatewayhook/10644>\
**Category:** 3rd Party Modules\
**Created:** [October 21, 2015, 4:13pm UTC](https://forum.inductiveautomation.com/t/unable-to-find-gatewayhook/10644 "2015-10-21T16:13:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![benoit](https://avatars.discourse-cdn.com/v4/letter/b/5daacb/32.png) [@benoit](https://forum.inductiveautomation.com/u/benoit)\
**Post date:** [October 21, 2015, 4:13pm UTC](https://forum.inductiveautomation.com/t/unable-to-find-gatewayhook/10644/1 "2015-10-21T16:13:15Z")

</div>

Hi !

I’m writing a new gateway module.  
But as I install it, the module is faulted. In the console the GatewayHook class seem not to be found (“Unable to load hook class” message in the console).  
I tried to debug my module and none of the methods is called.

Of course I have a GatewayHook class that inherits AbstractDriverModuleHook in my project, that is mostly like the one in the weather module from the examples of the SDK.

In my module.xml the hook seems to be correct, and the jar definition seems to be OK either.

What are the reasons that may cause this problem ?

Thanks in advance for any answer.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 21, 2015, 4:33pm UTC](https://forum.inductiveautomation.com/t/unable-to-find-gatewayhook/10644/2 "2015-10-21T16:33:29Z")

</div>

The slightest typo or jar folder mismatch will break things. If you can’t find it, post your unsigned module for the rest of us to look at.

---

<div class="post-metadata">

**Author:** ![PerryAJ](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/perryaj/32/3281_2.png) [@PerryAJ](https://forum.inductiveautomation.com/u/PerryAJ)\
**Post date:** [October 21, 2015, 5:14pm UTC](https://forum.inductiveautomation.com/t/unable-to-find-gatewayhook/10644/3 "2015-10-21T17:14:53Z")

</div>

First thing I would do is crack open the modl and make sure the jars want are there. If they are, then the module.xml is missing something and/or something doesn’t match up so you’ll make sure you have the full package + class name in your hook declaration and the proper scope on things.

---

<div class="post-metadata">

**Author:** ![nifemi](https://avatars.discourse-cdn.com/v4/letter/n/a5b964/32.png) [@nifemi](https://forum.inductiveautomation.com/u/nifemi)\
**Post date:** [October 26, 2015, 9:21am UTC](https://forum.inductiveautomation.com/t/unable-to-find-gatewayhook/10644/4 "2015-10-26T09:21:28Z")

</div>

If you’re extending AbstractDriverModuleHook, you MAY need to add xopc as a dependency in module.xml.
