We are trying to run a Pojo ruleclient to execute rules defined in ODM, within a Tomcat Java instance. We are utilizing a stateless session of RES server to execute the rules. When running on Localhost, its running fine, the rules are getting executed. But when the same code is ported to Cloud based Tomcat server on Unix, we are getting the following exception.
Tomcat version : 7.0.62 ODM RES version : 8.5.1.1
Test_NGTesting_RuleApp.RulesetExecutionException:Test_NGTesting_RulesAn error occurred while the rule session was created:\nilog.rules.res.xu.persistence.IlrPersistenceException: It was not possible to retrieve ruleset information: /Test_NGTesting_RuleApp/1.0/Test_NGTesting_Rules/1.0.\nilog.rules.res.persistence.IlrDAOException: Cannot retrieve the ruleset archive for the ruleset "/Test_NGTesting_RuleApp/1.0/Test_NGTesting_Rules/1.0".\nilog.rules.archive.IlrRulesetArchive$RulesetArchiveException: Problem occurred during archive extraction of entry :\ninvalid code lengths set\n,exc.chain=7b2184c9,exc.stack=Test_NGTesting_RuleApp.RulesetExecutionException: Test_NGTesting_Rules
We have not made any changes to the generated code. The location at which "res_data" is mentioned in "ra.xml", ruleset.jar is present. Again the same code with ruleset.jar present in a local file system location on my pc works fine; in localhost. We are able to see that the session is also successfully getting created. But only when Session.execute() is called within the generated code, the exception is thrown.
Any pointers where to look are highly appreciated.
Thanks a lot in advance.