This solved the problem. Thank you!
Original Message:
Sent: Thu February 12, 2026 10:22 AM
From: Alain Robert
Subject: IBM ODM CLI build fails with IllegalArgumentException: URI is not hierarchical when adding XOMs JAR to xom-classpath
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
Original Message:
Sent: Wed February 11, 2026 06:52 PM
From: Mohamed ALI CHARFEDDINE
Subject: IBM ODM CLI build fails with IllegalArgumentException: URI is not hierarchical when adding XOMs JAR to xom-classpath
Yes, both ways it will show exactly the same error.
[32;1m$ java -Dilog.rules.debug=true -jar $COMPILER_JAR -config ./buildindiv.properties[0;mPicked 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 protectXMLReaderINFO: 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 protectXMLReaderINFO: 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 protectXMLReaderINFO: 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 protectXMLReaderINFO: 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 protectXMLReaderINFO: http://javax.xml.XMLConstants/property/accessExternalDTD could not be disable or is not availableFeb 11, 2026 11:46:39 PM com.ibm.rules.util.engine.XMLReaderFactoryConfigurator protectXMLReaderINFO: 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 protectXMLReaderINFO: http://javax.xml.XMLConstants/property/accessExternalDTD could not be disable or is not availableFeb 11, 2026 11:46:43 PM com.ibm.rules.util.engine.XMLReaderFactoryConfigurator protectXMLReaderINFO: 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
Original Message:
Sent: Wed February 11, 2026 10:01 AM
From: Ross MacDougall
Subject: IBM ODM CLI build fails with IllegalArgumentException: URI is not hierarchical when adding XOMs JAR to xom-classpath
Have you tried building with absolute file paths for your xom-classpath?
------------------------------
Ross MacDougall
Original Message:
Sent: Tue February 10, 2026 12:54 PM
From: Mohamed ALI CHARFEDDINE
Subject: IBM ODM CLI build fails with IllegalArgumentException: URI is not hierarchical when adding XOMs JAR to xom-classpath
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-serviceoutput=test-service/sortieembedded-xom=truexom-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
------------------------------