Re: Simple CDI setup with Weld

2017-01-23 Thread Tim Dudgeon
I put together this complete minimal example (uses Gradle or build): https://github.com/tdudgeon/camel-cdi-se-example Tim On 20/01/2017 12:11, Antonin Stefanutti wrote: Hi Tim, DeltaSpike is only used by this Main class to bootstrap Camel CDI in Java SE. So the dependency is optional to avoi

Re: Simple CDI setup with Weld

2017-01-20 Thread Tim Dudgeon
Thanks. Adding Deltaspike explicitly was the solution. Tim On 20/01/2017 12:11, Antonin Stefanutti wrote: Hi Tim, DeltaSpike is only used by this Main class to bootstrap Camel CDI in Java SE. So the dependency is optional to avoid polluting the classpath for other target runtimes. In the Ca

Re: Simple CDI setup with Weld

2017-01-20 Thread Antonin Stefanutti
Hi Tim, DeltaSpike is only used by this Main class to bootstrap Camel CDI in Java SE. So the dependency is optional to avoid polluting the classpath for other target runtimes. In the Camel examples, we add it to the Camel Maven plugin dependency, see: https://github.com/apache/camel/blob/6e95a

Simple CDI setup with Weld

2017-01-20 Thread Tim Dudgeon
Hi, I'm trying to setup a simple Java SE app using Camel CDI and Weld. The docs state that this can be run using the org.apache.camel.cdi.Main class. However when running this I get an exception: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/deltaspike/cdise/api/CdiCo