Drools:是否需要上传所有依赖项?
我有一个基于使用 drools 的框架构建的项目。模型类已经定义。我使用 drools guvnor 创建规则并上传带有模型类的 jar。但是当我单击“保存并验证配置”时,我收到一堆如下警告:
无法找到类:sun.jdbc.rowset.CachedRowSet,它是 要求者:xyzCustomClass。您可能需要向模型添加更多类。
此消息似乎表明我还必须上传模型类的依赖项。我尝试过,但传递依赖性一直存在。 20罐我就放弃了。也许完全没有必要,我又犯了一个错误?有人知道可能出了什么问题吗?
I have a project that builds on a framework that uses drools. The model classes are already defined. I create the rules using drools guvnor and upload the jar with the model classes. But when I click on "Save and validate configuration" i get a bunch of warnings like this:
Unable to find the class: sun.jdbc.rowset.CachedRowSet which is
required by: x.y.z.CustomClass. You may need to add more classes to the model.
This message seems to suggest that I have to upload the dependencies of the model classes as well. I tried that, but the transitive dependencies go on and on. I gave up at 20 jars. Maybe it is not necessary altogether and I made another mistake? Someone an idea what might went wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,终于找到我的错误了。每次我包含另一个 jar 时,guvnor 都会自动将 jar 中所有类的导入添加到配置中。删除多余的导入解决了传递问题。
Ok, finally find my mistake. Each time I include another jar guvnor automatically add imports for all classes in the jar to the configuration. Deleting the superflous imports solves the transitive problem.