danielfain commented on issue #6012:
URL: 
https://github.com/apache/incubator-kie-drools/issues/6012#issuecomment-2215268565

   @mariofusco 
   
   I was writing a simplified version of my project to share with you and on my 
first attempt of uploading and testing on AWS, it worked perfectly. I then made 
some small changes (mostly formatting), recompiled, and uploaded again to AWS. 
On that test attempt, and any attempt going forward, I was met with the same 
ClassCastException that I had been getting at work. I was very confused at how 
small formatting tweaks could cause the issue so I reverted the code back to 
exactly how it was when it worked. Same issue. 
   
   At this point I am thinking it is probably something to do with the build. I 
find this maven shade warning:
   
   `[WARNING] drools-kiesession-8.44.0.Final.jar, 
drools-learning-1.0-SNAPSHOT.jar, drools-ruleunits-impl-8.44.0.Final.jar define 
1 overlapping resource: 
   [WARNING]   - 
META-INF/services/org.drools.core.reteoo.RuntimeComponentFactory`
   
   I check the packaged jar and the META-INF file contains 
org.drools.kiesession.factory.RuntimeComponentFactoryImpl when (I believe) it 
should be set to 
org.drools.ruleunits.impl.factory.RuleUnitRuntimeComponentFactory.
   
   I made that correction in resources/META-INF and now everything is working. 
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to