<?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>@Reference used services are not Injecting in Liferay 7.4GA93 Upgraded Code</title>
  <link rel="self" href="https://liferay.dev/pt/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122556556" />
  <subtitle>@Reference used services are not Injecting in Liferay 7.4GA93 Upgraded Code</subtitle>
  <id>https://liferay.dev/pt/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=122556556</id>
  <updated>2026-04-26T22:43:29Z</updated>
  <dc:date>2026-04-26T22:43:29Z</dc:date>
  <entry>
    <title>RE: RE: @Reference used services are not Injecting in Liferay 7.4GA93 Upgraded Code</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122669699" />
    <author>
      <name>Bhavadharani Balasubramaniam</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122669699</id>
    <updated>2024-05-22T18:24:16Z</updated>
    <published>2024-05-22T16:48:34Z</published>
    <summary type="html">&lt;p&gt;Hi All,&lt;/p&gt;
&lt;p&gt;I was referring your discussion for similar error from my end. I
  tried same things but still I can see service is not recognized. Here
  is more information on my analysis.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;nbsp;am trying to migrate a module ( liferay gradle project ) from DXP
  7.0 to 7.4 (liferay-dxp-&lt;strong&gt;7.4.13.u71&lt;/strong&gt;) where it has 2
  portlets defined. When I run scr:info on my bundle all my components
  of the bundle are satisfied except one portlet. Below is when I run
  scr:list [bundle id]&lt;/p&gt;
&lt;pre&gt;com.fmcna.dc.portal.quicklinks.portlet.QuickLinksPortlet in bundle 1,703 (com.fmcna.dc.portal.quicklinks:1.0.0) enabled, 1 instance.
    Id: 11295, State:SATISFIED
com.fmcna.dc.portal.quicklinks.portlet.&lt;strong&gt;QuickLinksSearchResultAddToPagePortlet&lt;/strong&gt; in bundle 1,703 (com.fmcna.dc.portal.quicklinks:1.0.0) enabled, 1 instance.
    Id: 11296,&lt;strong&gt; State:UNSATISFIED REFERENCE&lt;/strong&gt;
com.fmcna.dc.portal.quicklinks.configuration.action.QuickLinksPortletConfigurationAction in bundle 1,703 (com.fmcna.dc.portal.quicklinks:1.0.0) enabled, 1 instance.
    Id: 11293, State:SATISFIED
com.fmcna.dc.portal.quicklinks.service.impl.QuickLinksServiceImpl in bundle 1,703 (com.fmcna.dc.portal.quicklinks:1.0.0) enabled, 1 instance.
    Id: 11297, State:SATISFIED
com.fmcna.dc.portal.quicklinks.dao.impl.QuickLinksDaoImpl in bundle 1,703 (com.fmcna.dc.portal.quicklinks:1.0.0) enabled, 1 instance.
    Id: 11294, State:SATISFIED&lt;/pre&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;On scr:info 11296 (for unsatisfied componenet) to understand whats
  missing, I can see towards the end -&lt;/p&gt;
&lt;p&gt;References: (total 1) - QuickLinksService:
    com.fmcna.dc.portal.quicklinks.service.&lt;strong&gt;QuickLinksService
    UNSATISFIED 1..1 static target=(*)&lt;/strong&gt;&amp;nbsp;scope=bundle&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;pre&gt;Component Description: com.fmcna.dc.portal.quicklinks.portlet.QuickLinksSearchResultAddToPagePortlet
====================================================================================================
Class:         com.fmcna.dc.portal.quicklinks.portlet.QuickLinksSearchResultAddToPagePortlet
Bundle:        1703 (com.fmcna.dc.portal.quicklinks:1.0.0)
Enabled:       true
Immediate:     true
Services:      [javax.portlet.Portlet]
Scope:         singleton
Config PID(s): [com.fmcna.dc.portal.quicklinks.portlet.QuickLinksSearchResultAddToPagePortlet], Policy: optional
Base Props:    (9 entries)
  com.liferay.portlet.css-class-wrapper&amp;lt;String&amp;gt; = quicklinks-portlet
  com.liferay.portlet.display-category&amp;lt;String&amp;gt; = category.hidden
  com.liferay.portlet.instanceable&amp;lt;String&amp;gt; = false
  javax.portlet.display-name&amp;lt;String&amp;gt; = QuickLinks Search Result Add to Page Portlet
  javax.portlet.init-param.template-path&amp;lt;String&amp;gt; = /
  javax.portlet.init-param.view-template&amp;lt;String&amp;gt; = /quicklink.jsp
  javax.portlet.name&amp;lt;String&amp;gt; = com_fmcna_dc_portal_quicklinks_portlet_QuickLinksSearchResultAddToPagePortlet
  javax.portlet.resource-bundle&amp;lt;String&amp;gt; = content.Language
  javax.portlet.security-role-ref&amp;lt;String&amp;gt; = power-user,user

Component Configuration Id: 11296
---------------------------------
State:        UNSATISFIED REFERENCE
Config Props: (11 entries)
  com.liferay.portlet.css-class-wrapper&amp;lt;String&amp;gt; = quicklinks-portlet
  com.liferay.portlet.display-category&amp;lt;String&amp;gt; = category.hidden
  com.liferay.portlet.instanceable&amp;lt;String&amp;gt; = false
  component.id&amp;lt;Long&amp;gt; = 11296
  component.name&amp;lt;String&amp;gt; = com.fmcna.dc.portal.quicklinks.portlet.QuickLinksSearchResultAddToPagePortlet
  javax.portlet.display-name&amp;lt;String&amp;gt; = QuickLinks Search Result Add to Page Portlet
  javax.portlet.init-param.template-path&amp;lt;String&amp;gt; = /
  javax.portlet.init-param.view-template&amp;lt;String&amp;gt; = /quicklink.jsp
  javax.portlet.name&amp;lt;String&amp;gt; = com_fmcna_dc_portal_quicklinks_portlet_QuickLinksSearchResultAddToPagePortlet
  javax.portlet.resource-bundle&amp;lt;String&amp;gt; = content.Language
  javax.portlet.security-role-ref&amp;lt;String&amp;gt; = power-user,user
&lt;strong&gt;References:   (total 1)
  - QuickLinksService: com.fmcna.dc.portal.quicklinks.service.QuickLinksService UNSATISFIED 1..1 static
    target=(*) scope=bundle&lt;/strong&gt;&lt;/pre&gt;
&lt;p&gt;Verified the reference,&amp;nbsp;QuickLinksSearchResultAddToPagePortlet is
  referring to this service in below format which I believe is right.&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;private QuickLinksService quickLinksService;&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;@Reference(unbind="-")&lt;br&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;public void
    setQuickLinksService(QuickLinksService quickLinksService) {&lt;br&gt; &amp;nbsp;&amp;nbsp;
    &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;this.quickLinksService = quickLinksService;&lt;br&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/strong&gt;
  &lt;br&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/p&gt;
&lt;p&gt;On checking build.gradle file i have this&lt;/p&gt;
&lt;p&gt;dependencies {&lt;br&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;compileOnly group:
  "com.liferay.portal", name:
  "com.liferay.portal.kernel", version:
  "101.0.0"&lt;br&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;compileOnly group:
  "com.liferay.portal", name:
  "com.liferay.util.taglib", version: "2.0.0"&lt;br&gt; &amp;nbsp;&amp;nbsp;
  &amp;nbsp;compileOnly group: "javax.portlet", name:
  "portlet-api", version: "2.0"&lt;br&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;compileOnly
  group: "javax.servlet", name: "javax.servlet-api",
  version: "3.0.1"&lt;br&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;compileOnly group:
  "jstl", name: "jstl", version: "1.2"&lt;br&gt;
  &amp;nbsp;&amp;nbsp; &amp;nbsp;compileOnly group: "org.osgi", name:
  "osgi.cmpn", version: "6.0.0"&lt;br&gt;
  &lt;strong&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;compile &amp;nbsp;&amp;nbsp; &amp;nbsp;group: "biz.aQute.bnd", name:
    "biz.aQute.bndlib", version: "3.1.0"&lt;/strong&gt;
  &lt;br&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;compile &amp;nbsp; &amp;nbsp; group: "org.mongodb",
  name:"mongodb-driver-sync", version:"3.8.0"&lt;br&gt; &amp;nbsp;&amp;nbsp;
  &amp;nbsp;compile &amp;nbsp;&amp;nbsp; &amp;nbsp;group: 'com.fasterxml.jackson.core', name:
  'jackson-core', version: '2.9.1'&lt;br&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;compile &amp;nbsp;&amp;nbsp; &amp;nbsp;group:
  'com.fasterxml.jackson.core', name: 'jackson-annotations', version:
  '2.9.1'&lt;br&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;compile &amp;nbsp;&amp;nbsp; &amp;nbsp;group: 'com.fasterxml.jackson.core', name:
  'jackson-databind', version: '2.9.1'&lt;br&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;compileOnly group:
  "com.liferay", name:
  "com.liferay.dynamic.data.mapping.api", version:
  "3.5.2"&lt;br&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;compileOnly group: "com.liferay",
  name: "com.liferay.petra.string",
  version:"5.3.4"&lt;br&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;compile
  project(":modules:dc-api")&lt;br&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;br&gt; }&lt;/p&gt;
&lt;p&gt;And here is my bnd.bnd file&lt;/p&gt;
&lt;p&gt;Bundle-Name: quicklinks-portlet&lt;br&gt; -metatype: *&lt;br&gt;
  Bundle-SymbolicName: com.fmcna.dc.portal.quicklinks&lt;br&gt;
  Bundle-Version: 1.0.0&lt;br&gt; Export-Package: \&lt;br&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;
  &amp;nbsp;com.fmcna.dc.portal.quicklinks.constants, \&lt;br&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;strong&gt;com.fmcna.dc.portal.quicklinks.service&amp;nbsp;&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;Include-Resource: &amp;nbsp;@jackson-core-2.9.1.jar;resolution:=optional,
  \&lt;br&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;
  @jackson-databind-2.9.1.jar;resolution:=optional, \&lt;br&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;
  &amp;nbsp; &amp;nbsp; @jackson-annotations-2.9.1.jar;resolution:=optional&lt;br&gt; &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;
  &amp;nbsp;&lt;br&gt; Import-Package: \&lt;br&gt; &amp;nbsp; &amp;nbsp; !com.mongodb.*\&lt;/p&gt;
&lt;p&gt;I couldnt understand what could possibly go wrong here. But there
  should be something! I referred your discussion,&amp;nbsp;&lt;a href="https://liferay.dev/es/ask/questions/all/-reference-used-services-are-not-injecting-in-liferay-7-4ga93-upgraded-code"&gt;@Reference
    used services are not Injecting in Liferay 7.4GA93 Upgraded
    Code&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://liferay.dev/es/forums-redirect/-/message_boards/message/104557811"&gt;@Reference
    annotation prohibits portlet rendering - Forums - Liferay&lt;/a&gt;&amp;nbsp;,
  couldnt find solution but learnt alot of information.&lt;/p&gt;
&lt;p&gt;Any advise is much appreciated. Thanks in advance.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</summary>
    <dc:creator>Bhavadharani Balasubramaniam</dc:creator>
    <dc:date>2024-05-22T16:48:34Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: @Reference used services are not Injecting in Liferay 7.4GA93 Upgraded Code</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122662163" />
    <author>
      <name>Ponselvan Ganesan</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122662163</id>
    <updated>2024-05-22T18:20:20Z</updated>
    <published>2024-05-20T08:29:05Z</published>
    <summary type="html">&lt;p&gt;Thanks team for your valuable response.&lt;/p&gt;
&lt;p&gt;We have created new service builder in Liferay 7.4-GA93 and
  re-generated the service. Now it's working fine!&lt;/p&gt;</summary>
    <dc:creator>Ponselvan Ganesan</dc:creator>
    <dc:date>2024-05-20T08:29:05Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: @Reference used services are not Injecting in Liferay 7.4GA93 Upgraded Code</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122598469" />
    <author>
      <name>Christoph Rabel</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122598469</id>
    <updated>2024-04-30T14:28:34Z</updated>
    <published>2024-04-30T14:28:33Z</published>
    <summary type="html">&lt;p&gt;Service Builder can be quite the pain to upgrade. There's also some
  errorpaths where the modules just fail without any message. Everything
  seems to start up, lb shows everything started, diag shows nothing,
  but ds:unsatisfied shows that the modules are not available without
  any reason given.&lt;/p&gt;
&lt;p&gt;That said, &lt;strong&gt;copying the old service.xml to the newly created
    SB modules isn't sufficient&lt;/strong&gt;. I found that different code is
  generated based on the dtd referenced in the doctype of the xml. You
  can try to update the service.xml based on a freshly created dtd for
  the current Liferay version. Maybe this already helps.&lt;/p&gt;
&lt;p&gt;But here's what I do:&lt;/p&gt;
&lt;p&gt;Create a new SB module with the exact same names as the old one. Copy
  only the entities(!) from the old xml.&lt;/p&gt;
&lt;p&gt;Then regenerate the service builder. Afterwards use a merge tool on
  the IMPL classes to merge the old service builder implementation code
  to the newly generated classes. Regenerate again, try to build it. Fix
  any issues in the code.&lt;br&gt; Note: Previously spring was used as the
  dependency injector, so it is possible that your IMPL code does not
  work anymore.&lt;code&gt;
    &lt;span class="na"&gt;There is a blog post by David somewhere describing
      that change and here's some documentation: &lt;/span&gt;
  &lt;/code&gt;https://help.liferay.com/hc/en-us/articles/360032624732-Migrating-a-Service-Builder-Module-from-Spring-DI-to-OSGi-DS&lt;code&gt;
    &lt;span class="na"&gt;​​​​​​​&lt;/span&gt;
  &lt;/code&gt;
&lt;/p&gt;
&lt;p&gt;Now, edit the new service.properties file. Update the build number to
  the version from the old module and regenerate again. If you don't do
  this, you will get see errormessages like &amp;quot;Version 5 is higher
  than 17&amp;quot; or so in the logs, which is caused by the mismatch in
  build numbers, but quite confusing due to the weird wording.&lt;/p&gt;
&lt;p&gt;hth&lt;/p&gt;</summary>
    <dc:creator>Christoph Rabel</dc:creator>
    <dc:date>2024-04-30T14:28:33Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: @Reference used services are not Injecting in Liferay 7.4GA93 Upgraded Code</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122574835" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122574835</id>
    <updated>2024-04-23T15:32:07Z</updated>
    <published>2024-04-23T15:32:06Z</published>
    <summary type="html">&lt;p&gt;I do not, but I would offer the following:&lt;/p&gt;
&lt;p&gt;Consider switching from Maven to Gradle. Liferay has stopped work
  supporting Maven and at some point Maven usage might not be possible.
  Liferay is focused solely on using and supporting Gradle, so switching
  to Gradle is going to keep you in line with where Liferay is going.&lt;/p&gt;
&lt;p&gt;For general SB upgrades, I typically recommend creating a new pair of
  SB modules in 7.4, then copy in your &lt;code&gt;service.xml&lt;/code&gt; file,
  rebuild services, then add your methods from your 7.0 Impl classes,
  and rebuild services one more time.&lt;/p&gt;
&lt;p&gt;The reason for this, when Service Builder is rebuilding services, it
  will &lt;strong&gt;not rewrite&lt;/strong&gt; files that exist that do not require
  a change. For example, if you have &lt;code&gt;Foo&lt;/code&gt; as an entity, you
  get a &lt;code&gt;BaseFooLocalServiceImpl&lt;/code&gt;, a
  &lt;code&gt;FooLocalServiceImpl&lt;/code&gt;, a &lt;code&gt;FooLocalService&lt;/code&gt;
  interface, and the &lt;code&gt;FooLocalServiceUtil&lt;/code&gt; class. If you add
  a method to &lt;code&gt;FooLocalServiceImpl&lt;/code&gt;, only
  &lt;code&gt;FooLocalService&lt;/code&gt; and &lt;code&gt;FooLocalServiceUtil&lt;/code&gt; get
  regenerated; &lt;code&gt;BaseFooLocalServiceImpl&lt;/code&gt; doesn't need to get
  modified at all.&lt;/p&gt;
&lt;p&gt;When you are looking at an upgrade, in this case 7.0 to 7.4, if all
  you do is change the target platform and then rebuild services, SB
  determines that &lt;em&gt;none&lt;/em&gt; of the files need to be regenerated
  because &lt;em&gt;nothing&lt;/em&gt; has changed. It doesn't see the
  &lt;em&gt;version&lt;/em&gt; change as something requiring regenerating the
  classes. This leads to errors like the one that you have, so basically
  you have code for 7.0 that otherwise thinks it could be ready for 7.4
  since you did the rebuild, but internally it would reference classes
  and implementations from 7.0 that really don't apply to 7.4.&lt;/p&gt;
&lt;p&gt;The path I shared will force SB to regenerate all of the necessary
  files, will have the right results for 7.4, and should make your SB
  upgrades work correctly under 7.4.&lt;/p&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2024-04-23T15:32:06Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: @Reference used services are not Injecting in Liferay 7.4GA93 Upgraded Code</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122574573" />
    <author>
      <name>Ponselvan Ganesan</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122574573</id>
    <updated>2024-04-23T15:20:43Z</updated>
    <published>2024-04-23T14:01:36Z</published>
    <summary type="html">&lt;p&gt;Thanks David for your valuable response.&lt;/p&gt;
&lt;p&gt;We checked our service builder and it was not migrated properly,
  that's reason those service and modules are not working. Do you have
  any blog to refer liferay upgrade from Liferay 7.0 to 7.4 GA93 for
  liferay maven project ? If yes, please share to us, that will help us
  to resolve our issue.&lt;/p&gt;</summary>
    <dc:creator>Ponselvan Ganesan</dc:creator>
    <dc:date>2024-04-23T14:01:36Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: @Reference used services are not Injecting in Liferay 7.4GA93 Upgraded Code</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122572514" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122572514</id>
    <updated>2024-04-22T20:03:30Z</updated>
    <published>2024-04-22T20:03:29Z</published>
    <summary type="html">&lt;p&gt;The bundle being Active does not mean the contained components are
  all active.&lt;/p&gt;
&lt;p&gt;Use the &lt;code&gt;scr:list&lt;/code&gt; and &lt;code&gt;scr:info&lt;/code&gt; commands to
  check the status of components in the bundle.&lt;/p&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2024-04-22T20:03:29Z</dc:date>
  </entry>
  <entry>
    <title>RE: RE: @Reference used services are not Injecting in Liferay 7.4GA93 Upgraded Code</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122571461" />
    <author>
      <name>Ponselvan Ganesan</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122571461</id>
    <updated>2024-04-22T20:01:25Z</updated>
    <published>2024-04-22T05:47:27Z</published>
    <summary type="html">&lt;p&gt;Thanks David for your quick reply.&lt;/p&gt;
&lt;p&gt;As you mentioned, we tried using the below and deployed successfully,
  still it's showing &amp;quot;&lt;strong&gt;UNSATISFIED 1..1 static&lt;br&gt;
     target=(*) scope=bundle&lt;/strong&gt;&amp;quot; in gogshell.&lt;/p&gt;
&lt;pre&gt;@Reference(unbind = &amp;quot;-&amp;quot;)
private XXXService xxxService;
&lt;/pre&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;pre&gt;private XXXService xxxService;

@Reference(unbind = &amp;quot;-&amp;quot;)
public void setXXXService(XXXService xxxService) {
  this.xxxService = xxxService;
}&lt;/pre&gt;
&lt;p&gt;If i get &amp;quot;&lt;strong&gt;UNSATISFIED 1..1 static target=(*)
  scope=bundle&lt;/strong&gt;&amp;quot; error in gogshell, what could be the issue
  ? because i can see my service/api are deployed successfully and its
  showing &amp;quot;&lt;strong&gt;Active&lt;/strong&gt;&amp;quot;&lt;strong&gt; &lt;/strong&gt;status.
  Tried b {Bundle_Id} and diag {Bundle_Id} also, nothing is coming in gogshell.&lt;/p&gt;
&lt;p&gt;Could please help me to get this resolved ?&lt;/p&gt;</summary>
    <dc:creator>Ponselvan Ganesan</dc:creator>
    <dc:date>2024-04-22T05:47:27Z</dc:date>
  </entry>
  <entry>
    <title>RE: @Reference used services are not Injecting in Liferay 7.4GA93 Upgraded Code</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122557724" />
    <author>
      <name>David H Nebinger</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122557724</id>
    <updated>2024-04-18T19:04:28Z</updated>
    <published>2024-04-18T19:04:27Z</published>
    <summary type="html">&lt;p&gt;You should only be using one form of @Reference.&lt;/p&gt;
&lt;p&gt;Either:&lt;/p&gt;
&lt;pre&gt;@Reference(unbind = &amp;quot;-&amp;quot;)
private XXXService xxxService;
&lt;/pre&gt;
&lt;p&gt;or&lt;/p&gt;
&lt;pre&gt;private XXXService xxxService;

@Reference(unbind = &amp;quot;-&amp;quot;)
public void setXXXService(XXXService xxxService) {
  this.xxxService = xxxService;
}
&lt;/pre&gt;
&lt;p&gt;but not the mix you have now.&lt;/p&gt;
&lt;p&gt;Since it says XXXService is UNSATISFIED, that implies that the
  implementation of your service is not started.&lt;/p&gt;
&lt;p&gt;In the gogo shell, use &lt;code&gt;lb | grep &lt;em&gt;XXX&lt;/em&gt;
  &lt;/code&gt; (replace XXX with something from the bundle name) to get the
  bundle id, then &lt;code&gt;scr:list &lt;em&gt;bundleId&lt;/em&gt;
  &lt;/code&gt; to get the list of services and their IDs, and &lt;code&gt;scr:info &lt;em&gt;serviceId&lt;/em&gt;
  &lt;/code&gt; to get the info about the service implementation.&lt;/p&gt;
&lt;p&gt;The &lt;code&gt;scr:info&lt;/code&gt; will report on what is up with your
  implementation and why it might not be started.&lt;/p&gt;</summary>
    <dc:creator>David H Nebinger</dc:creator>
    <dc:date>2024-04-18T19:04:27Z</dc:date>
  </entry>
  <entry>
    <title>@Reference used services are not Injecting in Liferay 7.4GA93 Upgraded Code</title>
    <link rel="alternate" href="https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122556555" />
    <author>
      <name>Ponselvan Ganesan</name>
    </author>
    <id>https://liferay.dev/pt/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122556555</id>
    <updated>2024-04-18T18:56:32Z</updated>
    <published>2024-04-18T14:00:19Z</published>
    <summary type="html">&lt;p&gt;Hi Team,&lt;/p&gt;
&lt;p&gt;We have recently upgraded our liferay maven project from 7.0 version
  to 7.4GA93 and we have updated the dependency in pom.xml file, but
  still our custom services are not injecting in web module. We are
  using @Component and @Reference annotation for injecting services.&lt;/p&gt;
&lt;p&gt;We created one interface and implemented the interface with
  @Component annotation. Now we are trying to call the service by using
  @Reference in MVCrender method and it's failing. I have added my
  pom.xml, bnd and java class.&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;pom.xml:&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;&amp;lt;dependency&amp;gt;&lt;br&gt;
  &amp;lt;groupId&amp;gt;biz.aQute.bnd&amp;lt;/groupId&amp;gt;&lt;br&gt;
  &amp;lt;artifactId&amp;gt;biz.aQute.bndlib&amp;lt;/artifactId&amp;gt;&lt;br&gt;
  &amp;lt;version&amp;gt;${biz.aQute.bndlib.version}&amp;lt;/version&amp;gt;&lt;br&gt;
  &amp;lt;/dependency&amp;gt;&lt;br&gt; &amp;lt;dependency&amp;gt;&lt;br&gt;
  &amp;lt;groupId&amp;gt;com.liferay&amp;lt;/groupId&amp;gt;&lt;br&gt;
  &amp;lt;artifactId&amp;gt;com.liferay.ant.bnd&amp;lt;/artifactId&amp;gt;&lt;br&gt;
  &amp;lt;version&amp;gt;${com.liferay.ant.bnd.version}&amp;lt;/version&amp;gt;&lt;br&gt;
  &amp;lt;/dependency&amp;gt;&lt;br&gt; &amp;lt;dependency&amp;gt;&lt;br&gt;
  &amp;lt;groupId&amp;gt;javax.portlet&amp;lt;/groupId&amp;gt;&lt;br&gt;
  &amp;lt;artifactId&amp;gt;portlet-api&amp;lt;/artifactId&amp;gt;&lt;br&gt;
  &amp;lt;version&amp;gt;3.0.1&amp;lt;/version&amp;gt;&lt;br&gt; &amp;lt;/dependency&amp;gt;&lt;br&gt;
  &amp;lt;dependency&amp;gt;&lt;br&gt;
  &amp;lt;groupId&amp;gt;javax.servlet.jsp&amp;lt;/groupId&amp;gt;&lt;br&gt;
  &amp;lt;artifactId&amp;gt;javax.servlet.jsp-api&amp;lt;/artifactId&amp;gt;&lt;br&gt;
  &amp;lt;version&amp;gt;2.3.1&amp;lt;/version&amp;gt;&lt;br&gt; &amp;lt;/dependency&amp;gt;&lt;br&gt;
  &amp;lt;dependency&amp;gt;&lt;br&gt; &amp;lt;groupId&amp;gt;org.osgi&amp;lt;/groupId&amp;gt;&lt;br&gt;
  &amp;lt;artifactId&amp;gt;org.osgi.service.component.annotations&amp;lt;/artifactId&amp;gt;&lt;br&gt;
  &amp;lt;version&amp;gt;1.4.0&amp;lt;/version&amp;gt;&lt;br&gt; &amp;lt;/dependency&amp;gt;&lt;br&gt;
  &amp;lt;dependency&amp;gt;&lt;br&gt; &amp;lt;groupId&amp;gt;org.osgi&amp;lt;/groupId&amp;gt;&lt;br&gt;
  &amp;lt;artifactId&amp;gt;org.osgi.compendium&amp;lt;/artifactId&amp;gt;&lt;br&gt;
  &amp;lt;version&amp;gt;5.0.0&amp;lt;/version&amp;gt;&lt;br&gt; &amp;lt;/dependency&amp;gt;&lt;br&gt;
  &amp;lt;dependency&amp;gt;&lt;br&gt; &amp;lt;groupId&amp;gt;org.osgi&amp;lt;/groupId&amp;gt;&lt;br&gt;
  &amp;lt;artifactId&amp;gt;osgi.core&amp;lt;/artifactId&amp;gt;&lt;br&gt;
  &amp;lt;version&amp;gt;6.0.0&amp;lt;/version&amp;gt;&lt;br&gt; &amp;lt;/dependency&amp;gt;&lt;br&gt;
  &amp;lt;dependency&amp;gt;&lt;br&gt; &amp;lt;groupId&amp;gt;org.osgi&amp;lt;/groupId&amp;gt;&lt;br&gt;
  &amp;lt;artifactId&amp;gt;org.osgi.annotation.versioning&amp;lt;/artifactId&amp;gt;&lt;br&gt;
  &amp;lt;version&amp;gt;1.1.0&amp;lt;/version&amp;gt;&lt;br&gt; &amp;lt;/dependency&amp;gt;&lt;br&gt;
  &amp;lt;dependency&amp;gt;&lt;br&gt;
  &amp;lt;groupId&amp;gt;org.apache.felix&amp;lt;/groupId&amp;gt;&lt;br&gt;
  &amp;lt;artifactId&amp;gt;org.apache.felix.http.servlet-api&amp;lt;/artifactId&amp;gt;&lt;br&gt;
  &amp;lt;version&amp;gt;1.1.2&amp;lt;/version&amp;gt;&lt;br&gt; &amp;lt;/dependency&amp;gt;&lt;br&gt;
  &amp;lt;dependency&amp;gt;&lt;br&gt;
  &amp;lt;groupId&amp;gt;com.liferay.portal&amp;lt;/groupId&amp;gt;&lt;br&gt;
  &amp;lt;artifactId&amp;gt;com.liferay.portal.kernel&amp;lt;/artifactId&amp;gt;&lt;br&gt;
  &amp;lt;version&amp;gt;4.13.1&amp;lt;/version&amp;gt;&lt;br&gt; &amp;lt;/dependency&amp;gt;&lt;br&gt;
  &amp;lt;dependency&amp;gt;&lt;br&gt; &amp;lt;groupId&amp;gt;org.osgi&amp;lt;/groupId&amp;gt;&lt;br&gt;
  &amp;lt;artifactId&amp;gt;org.osgi.core&amp;lt;/artifactId&amp;gt;&lt;br&gt;
  &amp;lt;version&amp;gt;6.0.0&amp;lt;/version&amp;gt;&lt;br&gt; &amp;lt;/dependency&amp;gt;&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;bnd.bnd file in service:&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;Bundle-Name: XXX&lt;br&gt; Bundle-SymbolicName: XXX&lt;br&gt; Bundle-Version:
  3.0.0&lt;br&gt; Export-Package: \&lt;br&gt;    xxx, \&lt;br&gt;    yyy&lt;/p&gt;
&lt;p&gt;-sources: true&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;bnd.bnd file in web module:&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;Bundle-Name: XXX&lt;br&gt; Bundle-SymbolicName: XXX&lt;br&gt; Bundle-Version:
  3.0.0&lt;br&gt; Import-Package: \&lt;br&gt;     *&lt;br&gt; -jsp: *.jsp,*.jspf&lt;br&gt;
  -plugin.bundle:
  com.liferay.ant.bnd.resource.bundle.ResourceBundleLoaderAnalyzerPlugin&lt;br&gt;
  -plugin.jsp: com.liferay.ant.bnd.jsp.JspAnalyzerPlugin&lt;br&gt;
  -plugin.sass: com.liferay.ant.bnd.sass.SassAnalyzerPlugin&lt;br&gt; -sass:
  *&lt;br&gt; -sources: true&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Interface Class:&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;public interface XXXService{}&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Implementation Class:&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;@Component(immediate = true, service = XXXService.class)&lt;br&gt; public
  class XXXServiceImpl implements XXXService {}&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;MVCRender Class:&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt; &lt;/p&gt;
&lt;p&gt;@Component(immediate = true, property = {
  &amp;quot;javax.portlet.name=&amp;quot; + xxx,&lt;br&gt;
      &amp;quot;mvc.command.name=/xxx&amp;quot; }, service =
  MVCRenderCommand.class)&lt;br&gt; public class XXXMVCRender implements
  MVCRenderCommand {&lt;/p&gt;
&lt;p&gt;  @Reference&lt;br&gt;   private XXXService xxxService;&lt;br&gt;
    @Reference(unbind = &amp;quot;-&amp;quot;)&lt;br&gt;   public void
  setXXXService(XXXService xxxService) {&lt;br&gt;     this.xxxService =
  xxxService;&lt;br&gt;   }&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;We are trying to call service in one of our method in MVCrender class
  using the @Reference.&lt;/p&gt;
&lt;p&gt;
  &lt;strong&gt;Issue:&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;After updating depedency in pom.xml also we are not able to inject
  the services in web module. Could you please help us to resolve the
  issue ? None of the function are working in MVCrender due to injection
  this services. I got below error in gogo shell when use the scr:info {ID}&lt;/p&gt;
&lt;p&gt;- XXXService: xxx.XXXService UNSATISFIED 1..1 static&lt;br&gt; target=(*) scope=bundle&lt;/p&gt;</summary>
    <dc:creator>Ponselvan Ganesan</dc:creator>
    <dc:date>2024-04-18T14:00:19Z</dc:date>
  </entry>
</feed>
