camel-k: Package not found

When trying to run kamel (RC2) on a Java file containing came code I get:

RuntimeSupport - Found loader org.apache.camel.k.loader.java.JavaSourceLoader@39529185 for language java from service definition
Exception in thread "main" org.apache.camel.RuntimeCamelException: org.joor.ReflectException: Compilation error: /org/apache/camel/kamel/KafkaProducer.java:6: error: package org.apache.camel.builder.component does not exist

Any ideas what’s going wrong?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (17 by maintainers)

Most upvoted comments

camel-k creates a CamelContext for you and then it will load your routes so no, you can’t create your own context and even if it could be possible to use requestBody/sendBody (by adding a listener that reacts to events), it is definitively not what we recommend and what we want to support.