[
https://issues.apache.org/jira/browse/CAMEL-9767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15215662#comment-15215662
]
Antonin Stefanutti commented on CAMEL-9767:
-------------------------------------------
[~saschag] The new Camel CDI component is compatible with CDI 1.0 / Java EE 6
(and newer). However, it uses the new http://xmlns.jcp.org/xml/ns/javaee/
namespace instead of the http://java.sun.com/xml/ns/javaee/ one prior to Oracle
changed them
http://www.oracle.com/webfolder/technetwork/jsc/xml/ns/javaee/index.html#7. And
apparently very old versions of Weld, even back when it was called Solder /
Seam complain.
I'm going to revert back to the old one and do some testing. If everything
passes, I'll push the change.
> CDI deployment problem in JBoss EAP 6.3
> ---------------------------------------
>
> Key: CAMEL-9767
> URL: https://issues.apache.org/jira/browse/CAMEL-9767
> Project: Camel
> Issue Type: Bug
> Components: camel-cdi
> Affects Versions: 2.17.0
> Environment: Java7
> JBoss EAP 6.3
> Reporter: Sascha Grebe
> Assignee: Antonin Stefanutti
>
> I tried to upgrade my projekt to the new camel version. Sadly after changeing
> the version I got the following exception.
> org.jboss.solder.config.xml.util.XmlConfigurationException: Wrong root
> namespace for XML config file, expected:urn:java:ee,
> http://java.sun.com/xml/ns/javaee or no namespace,
> found:http://xmlns.jcp.org/xml/ns/javaee at
> vfs:/C:/workspace/xxx/xxx-ear/target/xxx.ear/lib/camel-cdi-2.17.0.jar/META-INF/beans.xml:22
> at
> org.jboss.solder.config.xml.model.ModelBuilder.build(ModelBuilder.java:72)
> at
> org.jboss.solder.config.xml.bootstrap.XmlConfigExtension.beforeBeanDiscovery(XmlConfigExtension.java:93)
> 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.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:267)
> at
> org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:52)
> at
> org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:137)
> at
> org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:263)
> at
> org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:164)
> at
> org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:51)
> at
> org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:154)
> at
> org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:245)
> at
> org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:233)
> at
> org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:213)
> at
> org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:75)
> at
> org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:46)
> at
> org.jboss.weld.bootstrap.events.BeforeBeanDiscoveryImpl.fire(BeforeBeanDiscoveryImpl.java:46)
> at
> org.jboss.weld.bootstrap.WeldBootstrap.startInitialization(WeldBootstrap.java:335)
> at org.jboss.as.weld.WeldStartService.start(WeldStartService.java:62)
> at
> org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980)
> at
> org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:744)
> It looks like the namespace in the beans.xml is JEE7 specific.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)