<?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>Guestbook-web not compiling</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120535954" />
  <subtitle>Guestbook-web not compiling</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=120535954</id>
  <updated>2026-04-07T10:46:13Z</updated>
  <dc:date>2026-04-07T10:46:13Z</dc:date>
  <entry>
    <title>RE: Guestbook-web not compiling</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121536253" />
    <author>
      <name>Anu Narayanan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121536253</id>
    <updated>2022-10-14T16:44:04Z</updated>
    <published>2022-10-13T21:50:02Z</published>
    <summary type="html">&lt;p&gt;Hi John, yes I resolved this. Dont know if there was any resolution
  for this but I started re-doing the entire project again in Liferay
  7.3. It worked.&lt;/p&gt;
&lt;p&gt;thanks,&lt;/p&gt;
&lt;p&gt;Anu&lt;/p&gt;</summary>
    <dc:creator>Anu Narayanan</dc:creator>
    <dc:date>2022-10-13T21:50:02Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: Guestbook-web not compiling</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121536196" />
    <author>
      <name>John Mueller</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=121536196</id>
    <updated>2022-10-13T16:15:55Z</updated>
    <published>2022-10-13T15:08:14Z</published>
    <summary type="html">&lt;p&gt;I have the same problem. Have you been able to resolve this?&lt;/p&gt;</summary>
    <dc:creator>John Mueller</dc:creator>
    <dc:date>2022-10-13T15:08:14Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: Guestbook-web not compiling</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120536007" />
    <author>
      <name>Anu Narayanan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120536007</id>
    <updated>2021-01-04T23:14:44Z</updated>
    <published>2021-01-04T23:14:44Z</published>
    <summary type="html">&lt;p&gt;Hi Russell,&lt;/p&gt;
&lt;p&gt;Thanks for your immediate response. Yes, I do have the compileOnly
  project declarations for guestbook-api and guestbook-service. Also, I
  have the correct import of the Reference class in the
  GuestbookPortlet. BTW, I found an alternate method to run the gradle
  tasks to build the jar files. I right click the gradlew.batch and run
  configurations and pick the gradle task to create the jar file. It is
  not throwing any errors but still I see the red mark on the
  guestbook-web project under the server.&lt;/p&gt;</summary>
    <dc:creator>Anu Narayanan</dc:creator>
    <dc:date>2021-01-04T23:14:44Z</dc:date>
  </entry>
  <entry>
    <title>RE: Guestbook-web not compiling</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120535994" />
    <author>
      <name>Russell Bohl</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120535994</id>
    <updated>2021-01-04T23:06:14Z</updated>
    <published>2021-01-04T23:06:14Z</published>
    <summary type="html">&lt;p&gt;Hi Anu, you probably already have this, but make sure you have the
  compileOnly project declarations for guestbook-api and
  guestbook-service in the web module's build.gradle file. And make sure
  you have the import for org.osgi.service.component.annotations.Reference&lt;/p&gt;
&lt;p&gt;You can run the gradle tasks right from the command line as well. Do
  you have blade installed? You can run&lt;/p&gt;
&lt;p&gt;blade gw clean&lt;/p&gt;</summary>
    <dc:creator>Russell Bohl</dc:creator>
    <dc:date>2021-01-04T23:06:14Z</dc:date>
  </entry>
  <entry>
    <title>Guestbook-web not compiling</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120535953" />
    <author>
      <name>Anu Narayanan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=120535953</id>
    <updated>2021-01-04T22:52:01Z</updated>
    <published>2021-01-04T22:52:01Z</published>
    <summary type="html">&lt;p&gt;I am working through the tutorials 'Building a web application' in
  Liferay 7.2.&lt;/p&gt;
&lt;p&gt;When I add the references to the services in the 'GuestbookPortlet',
  I see an error message in the 'guestbook-web' deployed in the server.
  I am not able to find out what is wrong because all my gradle tasks
  are greyed out. &lt;/p&gt;
&lt;p&gt;    @Reference&lt;br /&gt;    private GuestbookEntryLocalService _guestbookEntryLocalService;&lt;/p&gt;
&lt;p&gt;    @Reference&lt;br /&gt;    private GuestbookLocalService _guestbookLocalService;&lt;/p&gt;</summary>
    <dc:creator>Anu Narayanan</dc:creator>
    <dc:date>2021-01-04T22:52:01Z</dc:date>
  </entry>
</feed>
