<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>BeanLocator is not set in liferay 7.1</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=110671190" />
  <subtitle>BeanLocator is not set in liferay 7.1</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=110671190</id>
  <updated>2026-04-05T11:59:07Z</updated>
  <dc:date>2026-04-05T11:59:07Z</dc:date>
  <entry>
    <title>RE: BeanLocator is not set in liferay 7.1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110671604" />
    <author>
      <name>Olaf Kock</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110671604</id>
    <updated>2018-08-06T13:13:41Z</updated>
    <published>2018-08-06T13:13:41Z</published>
    <summary type="html">&lt;blockquote&gt;
  &lt;div class="quote-title"&gt;Abhishek Jain:&lt;/div&gt;
  &lt;div class="quote"&gt;
    &lt;div class="quote-content"&gt;
      &lt;p&gt;I am getting &amp;quot;BeanLocatorException&amp;quot; when
        calling GroupLocalServiceUtil.getFriendlyURLGroup(companyId,
        friendlyUrl) with valid arguments in liferay 7.1..The useful
        info about stacktrace is as follows:-&lt;/p&gt;
      &lt;p&gt;
        &lt;strong&gt;com.liferay.portal.kernel.bean.BeanLocatorException:
          BeanLocator is not set&lt;br /&gt;     at
          com.liferay.portal.kernel.bean.PortalBeanLocatorUtil.locate(PortalBeanLocatorUtil.java:74)&lt;br /&gt;
              at com.liferay.portal.kernel.service.GroupLocalServiceUtil.getService(GroupLocalServiceUtil.java:2508)&lt;/strong&gt;&lt;/p&gt;
      &lt;p&gt;I went through several threads and tried with methods for
        groupLocalService using @Reference annotation but to no avail..&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;
&lt;p&gt;Please show the relevant part of your code, and the stacktrace down
  to your own call.&lt;/p&gt;
&lt;p&gt;Note that you shouldn't call GroupLocalServiceUtil any more if you
  write an OSGi bundle plugin. Rather call the direct @Reference to groupLocalService.&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt; &lt;/p&gt;</summary>
    <dc:creator>Olaf Kock</dc:creator>
    <dc:date>2018-08-06T13:13:41Z</dc:date>
  </entry>
  <entry>
    <title>BeanLocator is not set in liferay 7.1</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110671189" />
    <author>
      <name>Abhishek Jain</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=110671189</id>
    <updated>2018-08-06T12:21:19Z</updated>
    <published>2018-08-06T12:21:19Z</published>
    <summary type="html">&lt;p&gt;I am getting &amp;quot;BeanLocatorException&amp;quot; when
  calling GroupLocalServiceUtil.getFriendlyURLGroup(companyId,
  friendlyUrl) with valid arguments in liferay 7.1..The useful info
  about stacktrace is as follows:-&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;com.liferay.portal.kernel.bean.BeanLocatorException:
    BeanLocator is not set&lt;br /&gt;     at
    com.liferay.portal.kernel.bean.PortalBeanLocatorUtil.locate(PortalBeanLocatorUtil.java:74)&lt;br /&gt;
        at com.liferay.portal.kernel.service.GroupLocalServiceUtil.getService(GroupLocalServiceUtil.java:2508)&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;I went through several threads and tried with methods for
  groupLocalService using @Reference annotation but to no avail..Please
  help me in this approach..Your suggestions would be highly appreciated
  ...Thanks in advance..&lt;/p&gt;</summary>
    <dc:creator>Abhishek Jain</dc:creator>
    <dc:date>2018-08-06T12:21:19Z</dc:date>
  </entry>
</feed>
