That is a very weird error, typically indicating something is wrong with your classpath. Are you sure that you don’t have both libraries on the classpath? Have you made sure the project runs in isolation?
Can you paste the pom.xml you’re using when running with Flowable, that wat we can have a try too.