camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrea Cosentino (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-8884) camel:run with CDI has been reported to not work
Date Thu, 18 Jun 2015 10:04:01 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-8884?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14591588#comment-14591588
] 

Andrea Cosentino commented on CAMEL-8884:
-----------------------------------------

Just for reporting. Running mvn camel:run inside camel-example-cdi I get the following error:

[code]
[INFO] Starting Camel ...
2015-06-18 11:59:05,342 [cdi.Main.main()] INFO  MainSupport                    - Apache Camel
2.16-SNAPSHOT stopping
[ERROR] *************************************
[ERROR] Error occurred while running main from: org.apache.camel.cdi.Main
[ERROR] 
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.apache.camel.maven.RunMojo$1.run(RunMojo.java:455)
	at java.lang.Thread.run(Thread.java:744)
Caused by: java.lang.IllegalStateException: Too many implementations of org.apache.deltaspike.cdise.api.CdiContainer
found in the classpath! Details: file:/home/ancosen/Rilasci/maven_repository/org/apache/deltaspike/cdictrl/deltaspike-cdictrl-weld/1.4.1/deltaspike-cdictrl-weld-1.4.1.jarorg.apache.deltaspike.cdise.weld.WeldContainerControl
file:/home/ancosen/Rilasci/maven_repository/org/apache/deltaspike/cdictrl/deltaspike-cdictrl-owb/1.4.1/deltaspike-cdictrl-owb-1.4.1.jarorg.apache.deltaspike.cdise.owb.OpenWebBeansContainerControl

	at org.apache.deltaspike.cdise.api.CdiContainerLoader.getCdiContainer(CdiContainerLoader.java:74)
	at org.apache.camel.cdi.Main.doStart(Main.java:89)
	at org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61)
	at org.apache.camel.main.MainSupport.run(MainSupport.java:124)
	at org.apache.camel.main.MainSupport.run(MainSupport.java:348)
	at org.apache.camel.cdi.Main.main(Main.java:47)
	... 6 more
[ERROR] *************************************

[code]

> camel:run with CDI has been reported to not work
> ------------------------------------------------
>
>                 Key: CAMEL-8884
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8884
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cdi, tooling
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>             Fix For: 2.16.0
>
>
> To reproduce try the cdi example



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message