简体   繁体   中英

jruleImportException : the selected archive does not have descriptor.xml

I have created JAR file from decision service in IBM ODM. I was using that into datastage application to call rule app from datastage. while doing that I am getting error.

JruleImoprtException: the selected archive "filePath" is not valid ruleset archive.the file descriptor.xml could not be located in the archive.

I have used 8.10 version to create decision service. Datastage is using 8.8 version.

Is it creating error because of the conflicting version or I have created jar file wrong way ?

IBM has moved to Decision service from 8.10 onwards that uses Decision rule engine to creates dsar file for deployment. This dsar file has archive.xml to instruct the Jrule connector about the information of the rules.

In earlier versions - Rule projects are created using classic rule engine and jar file is required to deploy the project. In those version it has description.xml file that contains the metadata about the projects parameters. As of now, you can switch to Classic Rule Engine option to create a JAR file that includes the description.xml. It is deprecated so not advisable.

In Eclipse -> Right click on the project -> Rule Execution server -> Select classic rule engine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM