문제

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?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top