Hi, What version of Weld are you using? Until recently nested / fat JAR wasn’t working with Weld until it’s been fixed in Weld 2.3.4 with WELD-1930 [1]. I haven’t tried it myself so that should enable fat JAR support, produced for example with onejar-maven-plugin. An alternative may be to use shaded JAR which has other pros and cons.
[1] https://issues.jboss.org/browse/WELD-1930 Antonin > On 26 Aug 2016, at 14:27, a746076drdrb <a746...@drdrb.net> wrote: > > Hello, > > I've created example app with camel-cdi and it works, if launched with > maven. However, I'd like to package and deploy it as a single jar file and > it doesn't work. With other camel routes which don't use CDI it works fine. > The error: > > Exception in thread "main" > javax.enterprise.inject.UnsatisfiedResolutionException: WELD-ENV-000018: > Unable to resolve a bean for class > org.jboss.weld.environment.se.WeldContainer with bindings [] > > I've read some posts its not recommended to deploy cdi app as fat jar, but > it would be very convenient. Had anyone success with it? > > Regards, > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/camel-cdi-projects-as-fat-jar-tp5786762.html > Sent from the Camel - Users mailing list archive at Nabble.com.