<?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>Liferay DXP serviceLocator problem</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=90544286" />
  <subtitle>Liferay DXP serviceLocator problem</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=90544286</id>
  <updated>2026-04-24T21:11:07Z</updated>
  <dc:date>2026-04-24T21:11:07Z</dc:date>
  <entry>
    <title>RE: Liferay DXP serviceLocator problem</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=90548742" />
    <author>
      <name>Jon Ander Gonzalez</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=90548742</id>
    <updated>2017-06-12T10:50:56Z</updated>
    <published>2017-06-12T10:50:56Z</published>
    <summary type="html">Thank you Christoph, i didn&amp;#39;t know that i have to use the interface. i had tried using the Util class aswell but same result. With the interface it works finally. Thank you very much my friend.</summary>
    <dc:creator>Jon Ander Gonzalez</dc:creator>
    <dc:date>2017-06-12T10:50:56Z</dc:date>
  </entry>
  <entry>
    <title>RE: Liferay DXP serviceLocator problem</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=90545376" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=90545376</id>
    <updated>2017-06-12T09:06:22Z</updated>
    <published>2017-06-12T09:06:22Z</published>
    <summary type="html">I don&amp;#39;t think serviceLocator is missing. I guess it just can&amp;#39;t locate &amp;#34;com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl&amp;#34;. You can&amp;#39;t access the impl classes, you need to use the interface &amp;#34;com.liferay.blogs.kernel.service.BlogsEntryLocalService&amp;#34;.</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2017-06-12T09:06:22Z</dc:date>
  </entry>
  <entry>
    <title>Liferay DXP serviceLocator problem</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=90544285" />
    <author>
      <name>Jon Ander Gonzalez</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=90544285</id>
    <updated>2017-06-12T08:52:23Z</updated>
    <published>2017-06-12T08:52:23Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;Hi,&lt;br&gt;&lt;br&gt;im trying to acces to serviceLocator services but its giving me an error&lt;br&gt;&lt;br&gt;&lt;pre&gt;&lt;code&gt; The following has evaluated to null or missing:
==&amp;amp;gt; serviceLocator.findService("com.liferay.portlet.blogs.service.impl.BlogsEntryLocalServiceImpl")  [in template "20116#20152#42734" at line 6, column 12]

----
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use &amp;amp;lt;#if myOptionalVar??&amp;amp;gt;when-present&amp;amp;lt;#else&amp;amp;gt;when-missing&amp;lt;!--#if--&amp;gt;. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----&lt;/code&gt;&lt;/pre&gt;&lt;br&gt;&lt;br&gt;i already did the steps which are commented here ---&amp;gt; https://web.liferay.com/de/community/forums/-/message_boards/view_message/73386692#_19_message_74729187&lt;br&gt;2 diferent ways: in the portal and creating the file. what's going on?&lt;br&gt;&lt;br&gt;thanks in advanced. &lt;br&gt;Regards.&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Jon Ander Gonzalez</dc:creator>
    <dc:date>2017-06-12T08:52:23Z</dc:date>
  </entry>
</feed>
