JBoss EAP 7.2 Error java.lang.NoClassDefFoundError NamespaceContextSelector When Using Weld Transactions
Issue
- JBoss EAP 7.2 Error java.lang.NoClassDefFoundError NamespaceContextSelector When Using Weld Transactions
- Stack Trace in log:
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)
Environment
- Red Hat JBoss Enterprise Application Platform (JBoss EAP) 7.1+
- Contexts and Dependency Injection (CDI)
- CDI Transaction management
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.