Legacy Knowledge Base
Published Jun. 30, 2025

Service Builder Tool 1.0.478 gives "Unable to parse package path from..." Error in Windows

Written By

Michael Tran

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

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

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

Before using any information from this article, independently verify itssuitability for your situation and project.

 

Issue

  • After cloning https://github.com/liferay/liferay-blade-samples.git, Windows OS users may run into the following error:
    • Task :apps:service-builder:basic:basic-service:buildService FAILED
      Building Foo
      Unable to parse package path from src\main\java\com\liferay\blade\basic\service\persistence\impl\FooPersistenceImpl.java
      Exception in thread "main" com.liferay.portal.tools.service.builder.ServiceBuilderException: Unable to parse package path from src\main\java\com\liferay\blade\basic\service\persistence\impl\FooPersistenceImpl.java
       
  • Here are the steps to reproduce the error:

    1. Open "liferay-blade-sample/liferay-workspace/build.gradle". In the "subprojects" block, add the following:

    2. pluginManager.withPlugin('com.liferay.portal.tools.service.builder', {

      dependencies {

      serviceBuilder 'com.liferay:com.liferay.portal.tools.service.builder:1.0.478!!'

      }

      })
    3. In Powershell, run "./gradlew --console=plain :apps:service-builder:basic:basic-service:buildService".

    4. Service Builder Tool 1.0.478 gives "Unable to parse package path from..." Error in Windows OS

  •  

Environment

  • DXP 7.0-7.3
  • Service Builder Tool 1.0.478 
  • Windows OS

 

Resolution

  • There is a verified path issue when using Service Builder Tool 1.0.478 on Windows OS.
  • This issue has been addressed and fixed in Service Builder Tool 1.0.481
    • If you are encountering this issue, replace "Service Builder Tool 1.0.478" with "Service Builder Tool 1.0.481" and rerun the build

 

 

Did this article resolve your issue ?

Legacy Knowledge Base