How to use own service dependency from portal jsp hook?How to use own service dependency from portal jsp hook?https://liferay.dev/en/c/message_boards/find_thread?p_l_id=119785333&threadId=1141900622024-03-29T15:24:46Z2024-03-29T15:24:46ZRE: How to use own service dependency from portal jsp hook?David H Nebingerhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1142544432019-07-11T15:26:01Z2019-07-11T15:26:01ZCombine with a portlet filter to @Reference the service in and then add as a request attribute.<br /><br />In the JSP you can then extract the service from the attributes and invoke it as necessary.David H Nebinger2019-07-11T15:26:01ZRE: How to use own service dependency from portal jsp hook?Dev Liferayhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1141904742019-07-03T12:39:09Z2019-07-03T12:39:09ZWhen I am using UtilLocator I am receiving NoSuchBeanDefinitionExceptionDev Liferay2019-07-03T12:39:09ZHow to use own service dependency from portal jsp hook?Dev Liferayhttps://liferay.dev/en/c/message_boards/find_message?p_l_id=119785333&messageId=1141900612019-07-03T12:13:21Z2019-07-03T12:13:21ZHi Liferay community,<br /><br />I have created a hook for ui-discussion (page discussion liferay portlet). I would like to use in page.jsp file my own LocalServiceUtil that is a bundle. The problem is during deployment because the hook does not see this dependencies (java.lang.NoClassDefFoundError: Could not initialize class exception). I built a jar from own api service and placed it into tomcat/lib/ext, I also add Include-Resource and Import-Package information into bnd file but it did not help. Any idea