legacy-knowledge-base
Publicado Jun. 25, 2030

PortalUUID: 'cannot find symbol' in Service Builder module

written-by

Jose L. Bango

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

Issue

  • When trying to build my Service Builder module, the following error is thrown in *PersisenceImpl.java classes: cannot find symbol PortalUUID
  • *PersisenceImpl.java classes contain the following reference:
    @Reference
    private PortalUUID _portalUUID;

Environment

  • Liferay Workspace targeting dxp-7.3-u34 or dxp-7.4-u100 (or higher)

Resolution

  • PortalUUID and PortalUUIDImpl have been merged into PortalUUIDUtil in LPS-196204.
  • You must use version 9.0.4 or newer of com.liferay.gradle.plugins.workspace in your settings.gradle:
    dependencies {   classpath group: “com.liferay”, name: “com.liferay.gradle.plugins.workspace”, version: “9.0.4"
    }

Additional Information

did-this-article-resolve-your-issue

legacy-knowledge-base