Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个项目建立在使用流口水的框架上。模型类已经定义。我使用 drools guvnor 创建规则并使用模型类上传 jar。但是当我点击“保存并验证配置”时,我会收到一堆这样的警告:
找不到类:xyzCustomClass 所需的类:sun.jdbc.rowset.CachedRowSet。您可能需要向模型添加更多类。
此消息似乎表明我还必须上传模型类的依赖项。我试过了,但传递依赖关系一直在继续。我放弃了20罐。也许完全没有必要,我又犯了一个错误?有人知道可能出了什么问题吗?
好的,终于找到我的错误了。每次我包含另一个 jar 时,guvnor 都会自动将 jar 中所有类的导入添加到配置中。删除多余的导入解决了传递问题。