Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-12805

Loading JTSSynchronizationWrapper gets NoClassDefFoundError: org/jboss/as/naming/context/NamespaceContextSelector

XMLWordPrintable

      Since JBoss EAP 7.1.0 GA, The class JTSSynchronizationWrapper has imported NamespaceContextSelector, but the module.xml in "org.jboss.as.weld.transactions" does not import "org.jboss.as.naming".

      Adding this dependency makes the issue go away.

              Caused by: java.lang.NoClassDefFoundError: org/jboss/as/naming/context/NamespaceContextSelector
                      at org.jboss.as.weld.services.bootstrap.JTSSynchronizationWrapper.<init>(JTSSynchronizationWrapper.java:44)
                      at org.jboss.as.weld.services.bootstrap.WeldTransactionServices.registerSynchronization(WeldTransactionServices.java:95)
                      at org.jboss.weld.module.jta.TransactionalObserverNotifier.notifyTransactionObservers(TransactionalObserverNotifier.java:86)
                      at org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:274)
                      at org.jboss.weld.event.EventImpl.fire(EventImpl.java:96)
                at com.jboss.examples.filter.ExampleFilter.filter(ExampleFilter.java:12)
      

            chaowan@redhat.com Chao Wang
            chaowan@redhat.com Chao Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: