Decision Management & Intelligence (ODM, DI)

Decision Management & Intelligence (ODM, DI)

Connect with experts and peers to elevate technical expertise, solve problems and share insights


#Data
#Data
#Businessautomation
 View Only
Expand all | Collapse all

IBM ODM CLI build fails with IllegalArgumentException: URI is not hierarchical when adding XOMs JAR to xom-classpath

  • 1.  IBM ODM CLI build fails with IllegalArgumentException: URI is not hierarchical when adding XOMs JAR to xom-classpath

    Posted Tue February 10, 2026 05:07 PM

    I am building an IBM ODM RuleApp using the ODM CLI compiler in a GitLab CI (Linux runner) environment.

    java -jar rules-compiler.jar -config build.properties

    The build fails with the following error when a particular XOM JAR is included in the xom-classpath property.

    java.lang.IllegalArgumentException: URI is not hierarchical
        at java.nio.file.Paths.get(Paths.java:98)
        at com.ibm.rules.build.RuleProjectBuilder.buildDeploymentConfiguration
    

    Environment

    IBM ODM: 9.5.0 (CLI compiler)

    Java: 21

    OS: Linux (GitLab Runner)

    Build type: CLI / headless build (not Rule Designer)

    build.properties

    project=test-service
    output=test-service/sortie
    embedded-xom=true
    xom-classpath=testX-xom.jar,testX2-xom.jar
    

    Observed Behavior

    The build fails with URI is not hierarchical when testX-xom.jar is present in xom-classpath.

    Obviously removing it will make the build fail and will show this

     While applying business to execution  
    (B2X) model mapping GBREX0001E: Cannot 
    find execution class 
    'com.test.package.Testclass'
    

    Update:

    • The JAR files are not corrupted ( that's not the case here)

    • When the xom-classpath parameter is set to false, the RuleApp build completes successfully. However, this configuration requires the XOMs to be deployed separately and then explicitly linked during deployment, instead of being packaged automatically within the RuleApp.

    • I use the same pipeline for many rule projects and it works perfectly.



    ------------------------------
    Mohamed ALI CHARFEDDINE
    ------------------------------


  • 2.  RE: IBM ODM CLI build fails with IllegalArgumentException: URI is not hierarchical when adding XOMs JAR to xom-classpath

    Posted Wed February 11, 2026 10:02 AM

    Have you tried building with absolute file paths for your xom-classpath?



    ------------------------------
    Ross MacDougall
    ------------------------------



  • 3.  RE: IBM ODM CLI build fails with IllegalArgumentException: URI is not hierarchical when adding XOMs JAR to xom-classpath

    Posted Thu February 12, 2026 09:22 AM

    Yes, both ways it will show exactly the same error. 

    $ java -Dilog.rules.debug=true -jar $COMPILER_JAR -config ./buildindiv.properties
    Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8
    [INFO]  -----------------------------------------
    [INFO]  Running Build Command CLI
    [INFO]  -----------------------------------------
    Feb 11, 2026 11:46:36 PM com.ibm.rules.util.engine.XMLReaderFactoryConfigurator protectXMLReader
    INFO: http://apache.org/xml/features/disallow-doctype-decl could not be activated or is not available.
    Feb 11, 2026 11:46:36 PM com.ibm.rules.util.engine.XMLReaderFactoryConfigurator protectXMLReader
    INFO: http://apache.org/xml/features/nonvalidating/load-external-dtd could not be disable or is not available.
    Feb 11, 2026 11:46:36 PM com.ibm.rules.util.engine.XMLReaderFactoryConfigurator protectXMLReader
    INFO: http://xml.org/sax/features/external-general-entities could not be disable or is not available.
    Feb 11, 2026 11:46:36 PM com.ibm.rules.util.engine.XMLReaderFactoryConfigurator protectXMLReader
    INFO: http://xml.org/sax/features/external-parameter-entities could not be disable or is not available.
    Feb 11, 2026 11:46:39 PM com.ibm.rules.util.engine.XMLReaderFactoryConfigurator protectXMLReader
    INFO: http://javax.xml.XMLConstants/property/accessExternalDTD could not be disable or is not available
    Feb 11, 2026 11:46:39 PM com.ibm.rules.util.engine.XMLReaderFactoryConfigurator protectXMLReader
    INFO: http://javax.xml.XMLConstants/property/accessExternalStylesheet could not be disable or is not available.
    Feb 11, 2026 11:46:43 PM com.ibm.rules.util.engine.XMLReaderFactoryConfigurator protectXMLReader
    INFO: http://javax.xml.XMLConstants/property/accessExternalDTD could not be disable or is not available
    Feb 11, 2026 11:46:43 PM com.ibm.rules.util.engine.XMLReaderFactoryConfigurator protectXMLReader
    INFO: http://javax.xml.XMLConstants/property/accessExternalStylesheet could not be disable or is not available.
    [ERROR] A runtime exception occurred during the build process.
    java.lang.IllegalArgumentException: URI is not hierarchical
    	at java.base/sun.nio.fs.UnixUriUtils.fromUri(UnixUriUtils.java:49)
    	at java.base/sun.nio.fs.UnixFileSystemProvider.getPath(UnixFileSystemProvider.java:125)
    	at java.base/java.nio.file.Path.of(Path.java:204)
    	at java.base/java.nio.file.Paths.get(Paths.java:98)
    	at com.ibm.rules.build.RuleProjectBuilder.buildDeploymentConfiguration(RuleProjectBuilder.java:465)
    	at com.ibm.rules.build.RuleProjectBuilder.build(RuleProjectBuilder.java:301)
    	at com.ibm.rules.cli.CliRunner.run(CliRunner.java:169)
    	at com.ibm.rules.cli.CliRunner.main(CliRunner.java:213)
    [INFO]  -----------------------------------------
    [INFO]  BUILD FAILURE
    [INFO]  -----------------------------------------
    
    


    ------------------------------
    Mohamed ALI CHARFEDDINE
    ------------------------------



  • 4.  RE: IBM ODM CLI build fails with IllegalArgumentException: URI is not hierarchical when adding XOMs JAR to xom-classpath

    Posted Thu February 12, 2026 10:22 AM

    When using embedded XOM buildcommand is also looking at the XOM path in the .ruleproject file under the tag

      <paths xsi:type="ilog.rules.studio.model.xom:XOMPath" pathID="XOM">
    Do you see anything suspicious? Can you share?



    ------------------------------
    Alain Robert
    ------------------------------



  • 5.  RE: IBM ODM CLI build fails with IllegalArgumentException: URI is not hierarchical when adding XOMs JAR to xom-classpath

    Posted Fri February 13, 2026 11:10 AM

    You are right, i had no idea that the build command looks also at the XOM path in the .ruleproject file ! thanks for pointing this out! The issue was caused by an absolute local path in the .ruleproject file under the  XOM path.

    <entries xsi:type="ilog.rules.studio.model.xom:SystemXOMPathEntry" name="testName.jar" url="file:C:/path-to-jar.jar" exported="true"/>

    This solved the problem. Thank you!



    ------------------------------
    Mohamed ALI CHARFEDDINE
    ------------------------------