Re: Using camel-cdi on Wildfly-10.1

2017-05-05 Thread Drazen Kozic
Hello John, I have ammended my module.xml files of camel modules. No progress. But I have found pattern. If I declare some other bean like this: @ApplicationScoped public class ApplicationLifecycleBean { private static final Logger logger = LoggerFactory.getLogger(ApplicationLifecycleBean.c

Re: Using camel-cdi on Wildfly-10.1

2017-05-05 Thread John D. Ament
Hi Drazen, Can you modify your camel module.xml to also add these same references to deltaspike? John On Fri, May 5, 2017 at 8:03 AM Drazen Kozic wrote: > Hello John, > > I did what you said. My > src/main/webapp/META-INF/jboss-deployment-structure.xml is as follow: > > > > >

Re: Using camel-cdi on Wildfly-10.1

2017-05-05 Thread Drazen Kozic
Hello John, I did what you said. My src/main/webapp/META-INF/jboss-deployment-structure.xml is as follow: With this setup, no success. Best regards Drazen Kozic On Fri, May 5, 2017

Re: Using camel-cdi on Wildfly-10.1

2017-05-05 Thread John D. Ament
Drazen, Camel CDI uses DeltaSpike Container Control to start and stop a CDI container in conjunction with having an out of the box Main class. It makes no other use of DeltaSpike. Camel CDI + DeltaSpike work well together, I use them today. I'm also the one who wrote the module.xml's you're loo

Re: Using camel-cdi on Wildfly-10.1

2017-05-05 Thread Drazen Kozic
Usually, in case od module missconfiguration, CNFE is thrown. Here in my case, it seems that it is context related issue not classpath related issue. In the documentation of camel-cdi, DeltaSpike is mentioned here: http://camel.apache.org/cdi.html. My conclussion is that camel-cdi should work wel

Re: Using camel-cdi on Wildfly-10.1

2017-05-05 Thread Antonin Stefanutti
Ah indeed, it looks like DeltaSpike Data module impl JAR is included in: https://github.com/apache/deltaspike/blob/a82f6ad27486756cc6d80d3a2db1695b779e36be/deltaspike/dist/full/src/main/distribution/modules-module.xml#L25-L26 That being said, it is likely to be an issue at how DeltaSpike integr

Re: Using camel-cdi on Wildfly-10.1

2017-05-05 Thread Drazen Kozic
Hello Antonin, Thanks for the help. My assumption also was related to DeltaSpike module configuration. Especially having in mind that tests are passing OK. I have downloaded distribution-full-1.7.2.zip of the DeltaSpike. Inside it there are module.xml files for Wildfly. I didn't change anything. R

Re: Using camel-cdi on Wildfly-10.1

2017-05-05 Thread Antonin Stefanutti
Hi Drazen, It looks like the org.apache.deltaspike.data.impl.handler.QueryHandler class is not visible from the Camel module you’ve deployed. So it’s rather an issue of using Deltaspike data module within the WildFly module system. So you may need to add the deltaspike-data-module JARs to your

Using camel-cdi on Wildfly-10.1

2017-05-04 Thread Drazen Kozic
Hello, I want to use Camel 2.18.3 on WildFly-10.1.0.Final. My desired setup is as follow: - to use camel-cdi features - to deploy camel and all third party dependencies as WildFly modules - to deploy my application as war on WildFly with all internal dependencies as jars in web-inf/lib - I do not