Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-14673

CDI plugin does not see correct TCCL for EAR deployment

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • 7.1.1.GA, 7.1.2.GA
    • CDI / Weld
    • None

    Description

      The TCCL that camel-cdi sees is that of the EAR, instead of that of the WAR sub-deployment. This seems wrong. WildFly-Camel does not control the setting of the TCCL at this level, and IMHO should not either.

      Instead, it should probably be the Weld subsystem, that does this in order for the various CDI plugins (i.e. camel-cdi) to work properly.

      10:23:57,155 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) WFLYSRV0027: Starting deployment of "camel-import-resource-tests.ear" (runtime-name: "camel-import-resource-tests.ear")
      10:23:57,167 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0207: Starting subdeployment (runtime-name: "camel-import-resource-tests.war")
      10:25:13,609 INFO  [org.jboss.weld.deployer] (MSC service thread 1-3) WFLYWELD0003: Processing weld deployment camel-import-resource-tests.ear
      10:25:13,998 WARN  [org.jboss.weld.deployer] (MSC service thread 1-3) WFLYWELD0012: Warning while parsing jar:file:/Users/tdiesler/.m2/repository/org/apache/camel/camel-cdi/2.21.0/camel-cdi-2.21.0.jar!/META-INF/beans.xml:20 cvc-elt.1.a: Cannot find the declaration of element 'beans'.
      10:25:14,055 INFO  [org.hibernate.validator.internal.util.Version] (MSC service thread 1-3) HV000001: Hibernate Validator 6.0.7.Final
      10:25:14,244 INFO  [org.jboss.weld.deployer] (MSC service thread 1-2) WFLYWELD0003: Processing weld deployment camel-import-resource-tests.war
      10:25:14,417 INFO  [org.jboss.weld.Version] (MSC service thread 1-2) WELD-000900: 3.0.3 (Final)
      10:25:14,735 INFO  [org.jboss.weld.Event] (MSC service thread 1-8) WELD-000411: Observer method [BackedAnnotatedMethod] private org.apache.camel.cdi.CdiCamelExtension.processAnnotatedType(@Observes ProcessAnnotatedType<?>) receives events for all annotated types. Consider restricting events using @WithAnnotations or a generic type with bounds.
      10:25:14,793 WARN  [org.jboss.weld.Bootstrap] (MSC service thread 1-8) WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class org.jberet.creation.BatchBeanProducer is deprecated from CDI 1.1!
      10:25:14,847 WARN  [org.jboss.weld.Bootstrap] (MSC service thread 1-8) WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class com.arjuna.ats.jta.cdi.transactional.TransactionalInterceptorMandatory is deprecated from CDI 1.1!
      10:25:14,857 WARN  [org.jboss.weld.Bootstrap] (MSC service thread 1-8) WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class com.arjuna.ats.jta.cdi.transactional.TransactionalInterceptorNever is deprecated from CDI 1.1!
      10:25:14,859 WARN  [org.jboss.weld.Bootstrap] (MSC service thread 1-8) WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class com.arjuna.ats.jta.cdi.transactional.TransactionalInterceptorNotSupported is deprecated from CDI 1.1!
      10:25:14,861 WARN  [org.jboss.weld.Bootstrap] (MSC service thread 1-8) WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class com.arjuna.ats.jta.cdi.transactional.TransactionalInterceptorRequired is deprecated from CDI 1.1!
      10:25:14,863 WARN  [org.jboss.weld.Bootstrap] (MSC service thread 1-8) WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class com.arjuna.ats.jta.cdi.transactional.TransactionalInterceptorRequiresNew is deprecated from CDI 1.1!
      10:25:14,865 WARN  [org.jboss.weld.Bootstrap] (MSC service thread 1-8) WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class com.arjuna.ats.jta.cdi.transactional.TransactionalInterceptorSupports is deprecated from CDI 1.1!
      10:25:14,866 WARN  [org.jboss.weld.Bootstrap] (MSC service thread 1-8) WELD-000146: BeforeBeanDiscovery.addAnnotatedType(AnnotatedType<?>) used for class com.sun.faces.flow.FlowDiscoveryCDIHelper is deprecated from CDI 1.1!
      10:25:27,253 WARN  [org.apache.camel.cdi.XmlCdiBeanFactory] (MSC service thread 1-8) Unable to locate resource [classloading/spring-camel-context.xml] for import!
      10:25:27,469 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 92) WFLYUT0021: Registered web context: '/camel-import-resource-tests' for server 'default-server'
      

      Attachments

        Activity

          People

            manovotn Matěj Novotný
            tdiesler@redhat.com Thomas Diesler
            Votes:
            1 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: