10 Replies Latest reply on Dec 12, 2018 10:20 AM by csetera

    WFLY 15 + @WebListener Transaction Issues?

    csetera

      We in the process of updating our underlying Wildfly version from 11 to (preferably) 15.  I've updated to version 14 successfully with a few minor changes to our application to make newer versions of Weld happy with our code.  However, attempting to take the step to the latest version 15, we are failing in a way that I don't see a solution on our side?  When starting our app (or attempting to deploy a new version), we are seeing the following:

       

      {"WFLYCTL0080: Failed services" => {"jboss.deployment.subunit.\"bv-application.ear\".\"bv-core-war.war\".undertow-deployment" => "java.lang.RuntimeException: javax.servlet.ServletException: UT010013: Could not instantiate xxx.yyy.SessionTracker
          Caused by: java.lang.RuntimeException: javax.servlet.ServletException: UT010013: Could not instantiate xxx.yyy.SessionTracker
          Caused by: javax.servlet.ServletException: UT010013: Could not instantiate xxx.yyy.SessionTracker
          Caused by: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
          Caused by: org.jboss.weld.exceptions.WeldException: WELD-001524: Unable to load proxy class for bean Extension [class com.arjuna.ats.jta.cdi.TransactionExtension] with qualifiers [@Default]; bv-core-war.war with class class com.arjuna.ats.jta.cdi.TransactionExtension using classloader ModuleClassLoader for Module \"deployment.bv-application.ear\" from Service Module Loader
          Caused by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/arjuna/ats/jta/cdi/TransactionExtension
          Caused by: java.lang.NoClassDefFoundError: com/arjuna/ats/jta/cdi/TransactionExtension
          Caused by: java.lang.ClassNotFoundException: com.arjuna.ats.jta.cdi.TransactionExtension from [Module \"deployment.bv-application.ear\" from Service Module L

       

      In this case, xxx.yyy.SessionTracker is marked as a @WebListener.  A different class of ours is currently commented out, but has the same issue and characteristics.  This seems like it may be some kind of ordering issue where the @WebListener's are being created before the transaction management subsystem is ready.  Are we wrong in trying to do things this way?  It has worked to this point across multiple versions.

       

      Any insights most appreciated.

      Craig

        • 1. Re: WFLY 15 + @WebListener Transaction Issues?
          ctomc

          how does your deployment look like?

           

          what jars do you have in lib of ear and war?

          • 2. Re: WFLY 15 + @WebListener Transaction Issues?
            csetera

            Tomaz,

             

            How much detail do you need?  We have quite a few dependencies.  My guess is you are thinking there may be a conflict with something we are packaging into our WAR/EAR?  If so, do you have a theory of what I might want to look for?  I'd be willing to send you the output of our Maven dependency tree privately, but I'd rather not broadcast that in this public forum.

             

            Thanks,

            Craig

            • 3. Re: WFLY 15 + @WebListener Transaction Issues?
              jaikiran

              In addition to what Tomaz asked for, can you also paste the complete exception stacktrace that you see? The one you have in the first post is a summary of the deployment failure. The exception stacktrace could give a few more hints.

              • 4. Re: WFLY 15 + @WebListener Transaction Issues?
                csetera

                Here is the requested information:

                 

                [INFO] --- maven-dependency-plugin:2.8:list (default-cli) @ bv-core-war ---
                [INFO]
                [INFO] The following files have been resolved:
                [INFO]    org.apache.commons:commons-lang3:jar:3.4:compile
                [INFO]    com.google.guava:failureaccess:jar:1.0:compile
                [INFO]    org.apache.commons:commons-csv:jar:1.5:compile
                [INFO]    javax.cache:cache-api:jar:1.1.0:compile
                [INFO]    com.baseventure.core:bv-core-resource-service:jar:5.2.0-SNAPSHOT:compile
                [INFO]    org.hibernate:hibernate-tools:jar:5.0.0.Final:compile
                [INFO]    com.baseventure.core:bv-core-business-service:jar:5.2.0-SNAPSHOT:compile
                [INFO]    org.codehaus.jackson:jackson-mapper-asl:jar:1.8.1:compile
                [INFO]    commons-beanutils:commons-beanutils:jar:1.9.3:compile
                [INFO]    com.beust:jcommander:jar:1.48:compile
                [INFO]    org.slf4j:slf4j-api:jar:1.7.12:compile
                [INFO]    org.hibernate.common:hibernate-commons-annotations:jar:5.0.1.Final:compile
                [INFO]    com.eclecticlogic:pedal-loader:jar:1.0.2:compile
                [INFO]    org.codehaus.groovy:groovy-all:jar:2.4.12:compile
                [INFO]    com.baseventure.core:bv-themes-service:jar:5.2.0-SNAPSHOT:compile
                [INFO]    org.eclipse.equinox:common:jar:3.6.200-v20130402-1505:compile
                [INFO]    org.glassfish:javax.json:jar:1.0.4:compile
                [INFO]    org.jdom:saxpath:jar:1.0-FCS:compile
                [INFO]    org.codehaus.mojo:animal-sniffer-annotations:jar:1.17:compile
                [INFO]    com.baseventure.core:bv-core-async-work-service:jar:5.2.0-SNAPSHOT:compile
                [INFO]    com.sun.jersey.contribs:jersey-apache-client4:jar:1.18.3:compile
                [INFO]    com.baseventure.core:bv-core-persistence:jar:5.2.0-SNAPSHOT:compile
                [INFO]    com.sun.jersey:jersey-core:jar:1.18.3:compile
                [INFO]    com.baseventure.core:bv-core-notification-service:jar:5.2.0-SNAPSHOT:compile
                [INFO]    commons-io:commons-io:jar:2.4:compile
                [INFO]    org.apache.httpcomponents:httpcore:jar:4.4.6:compile
                [INFO]    com.baseventure.core:bv-core-data-loader-service:jar:5.2.0-SNAPSHOT:compile
                [INFO]    commons-logging:commons-logging:jar:1.2:compile
                [INFO]    org.eclipse:text:jar:3.3.0-v20070606-0010:compile
                [INFO]    com.baseventure.core:bv-core-hibernate-utilities:jar:5.2.0-SNAPSHOT:compile
                [INFO]    org.checkerframework:checker-qual:jar:2.5.2:compile
                [INFO]    com.fasterxml.jackson.core:jackson-databind:jar:2.9.7:compile
                [INFO]    com.baseventure.core:bv-core-activitylogging:jar:5.2.0-SNAPSHOT:compile
                [INFO]    org.apache.httpcomponents:httpclient:jar:4.5.3:compile
                [INFO]    org.jsoup:jsoup:jar:1.11.2:compile
                [INFO]    com.google.errorprone:error_prone_annotations:jar:2.2.0:compile
                [INFO]    org.simplejavamail:simple-java-mail:jar:4.4.5:compile
                [INFO]    org.nuxeo.ecm.automation:nuxeo-automation-client:jar:9.3:compile
                [INFO]    ant:ant:jar:1.6.5:compile
                [INFO]    com.baseventure.nuxeo:bv-nuxeo-platform-login-token:jar:5.2.0-SNAPSHOT:compile
                [INFO]    org.infinispan:infinispan-commons:jar:9.3.1.Final:compile
                [INFO]    commons-lang:commons-lang:jar:2.6:compile
                [INFO]    com.baseventure.core:bv-core-model-jsonapi-service:jar:5.2.0-SNAPSHOT:compile
                [INFO]    org.infinispan:infinispan-cdi-embedded:jar:9.3.1.Final:compile
                [INFO]    io.crnk:crnk-core:jar:2.0.20170916075109:compile
                [INFO]    org.reflections:reflections:jar:0.9.10:compile
                [INFO]    com.baseventure.core:bv-core-common:jar:5.2.0-SNAPSHOT:compile
                [INFO]    com.baseventure.core:bv-stripe-service:jar:5.2.0-SNAPSHOT:compile
                [INFO]    org.apache.httpcomponents:fluent-hc:jar:4.5.3:compile
                [INFO]    ch.qos.logback:logback-core:jar:1.2.3:compile
                [INFO]    javax.activation:activation:jar:1.1.1:compile
                [INFO]    org.codehaus.jackson:jackson-core-asl:jar:1.8.1:compile
                [INFO]    commons-codec:commons-codec:jar:1.4:compile
                [INFO]    javax.inject:javax.inject:jar:1:compile
                [INFO]    org.eclipse.core:runtime:jar:3.9.0-v20130326-1255:runtime
                [INFO]    javax.servlet:javax.servlet-api:jar:3.1.0:compile
                [INFO]    org.jdom:jdom2:jar:2.0.5:compile
                [INFO]    javax.transaction:jta:jar:1.1:compile
                [INFO]    jaxen:jaxen:jar:1.0-FCS:compile
                [INFO]    com.baseventure.core:bv-core-administration-service:jar:5.2.0-SNAPSHOT:compile
                [INFO]    com.github.ldapchai:ldapchai:jar:0.6.6:compile
                [INFO]    org.slf4j:slf4j-log4j12:jar:1.7.12:compile
                [INFO]    org.infinispan:infinispan-jcache:jar:9.3.1.Final:compile
                [INFO]    commons-fileupload:commons-fileupload:jar:1.3.3:compile
                [INFO]    org.eclipse.core:commands:jar:3.3.0-i20070605-0010:compile
                [INFO]    org.jboss.logging:jboss-logging:jar:3.3.0.Final:compile
                [INFO]    com.baseventure.core:bv-core-data-loader-support:jar:5.2.0-SNAPSHOT:compile
                [INFO]    org.javassist:javassist:jar:3.19.0-GA:compile
                [INFO]    com.baseventure.shared:bv-cli-tools-support:jar:5.2.0-SNAPSHOT:compile
                [INFO]    org.javamoney:moneta:jar:1.0:compile
                [INFO]    com.google.code.findbugs:annotations:jar:2.0.1:compile
                [INFO]    io.bit3:jsass:jar:5.7.1:compile
                [INFO]    log4j:log4j:jar:1.2.17:compile
                [INFO]    com.google.guava:listenablefuture:jar:9999.0-empty-to-avoid-conflict-with-guava:compile
                [INFO]    org.apache.commons:commons-text:jar:1.3:compile
                [INFO]    com.baseventure.core:bv-core-version:jar:5.2.0-SNAPSHOT:compile
                [INFO]    com.baseventure.core:bv-core-ecm-integration:jar:5.2.0-SNAPSHOT:compile
                [INFO]    org.apache.httpcomponents:httpclient-osgi:jar:4.5.3:compile
                [INFO]    com.baseventure.core:bv-client-configuration-service:jar:5.2.0-SNAPSHOT:compile
                [INFO]    com.baseventure.shared:bv-ecm-integration-model:jar:5.2.0-SNAPSHOT:compile
                [INFO]    org.eclipse:osgi:jar:3.10.0-v20140606-1445:runtime
                [INFO]    com.sun.jersey:jersey-client:jar:1.18.3:compile
                [INFO]    com.baseventure.core:bv-skinny-core-model:jar:5.2.0-SNAPSHOT:compile
                [INFO]    org.eclipse.core:jobs:jar:3.6.0-v20140424-0053:runtime
                [INFO]    org.eclipse.core:contenttype:jar:3.4.200-v20140207-1251:runtime
                [INFO]    antlr:antlr:jar:2.7.7:compile
                [INFO]    com.baseventure.core:bv-core-doc-mgmt-service:jar:5.2.0-SNAPSHOT:compile
                [INFO]    com.baseventure.core:bv-core-business:jar:5.2.0-SNAPSHOT:compile
                [INFO]    org.apache.deltaspike.core:deltaspike-core-api:jar:1.0.0:compile
                [INFO]    javax.mail:mail:jar:1.4.4:compile
                [INFO]    com.github.ben-manes.caffeine:caffeine:jar:2.6.2:compile
                [INFO]    com.baseventure.core:bv-core-nuxeo-security:jar:5.2.0-SNAPSHOT:compile
                [INFO]    com.baseventure.core:bv-core-health-service:jar:5.2.0-SNAPSHOT:compile
                [INFO]    com.fasterxml.jackson.core:jackson-annotations:jar:2.9.7:compile
                [INFO]    com.google.guava:guava:jar:27.0-jre:compile
                [INFO]    com.baseventure.core:bv-core-notifications:jar:5.2.0-SNAPSHOT:compile
                [INFO]    io.crnk:crnk-cdi:jar:2.0.20170916075109:compile
                [INFO]    javax.money:money-api:jar:1.0:compile
                [INFO]    org.apache.httpcomponents:httpcore-osgi:jar:4.4.6:compile
                [INFO]    org.apache.httpcomponents:httpclient-cache:jar:4.5.3:compile
                [INFO]    com.baseventure.core:bv-core-ecm-domain-integration:jar:5.2.0-SNAPSHOT:compile
                [INFO]    org.hibernate:jtidy:jar:r8-20060801:compile
                [INFO]    com.google.code.gson:gson:jar:2.2.4:compile
                [INFO]    com.baseventure.core:bv-skinny-core-model:test-jar:tests:5.2.0-SNAPSHOT:compile
                [INFO]    org.eclipse.equinox:registry:jar:3.5.400-v20140428-1507:runtime
                [INFO]    org.picketlink:picketlink:jar:2.7.0.Final:compile
                [INFO]    com.google.code.findbugs:jsr305:jar:3.0.2:compile
                [INFO]    com.google.j2objc:j2objc-annotations:jar:1.1:compile
                [INFO]    com.baseventure.webapp:bv-fund-mgr:jar:styles:5.1.0-SNAPSHOT:compile
                [INFO]    org.osgi:org.osgi.core:jar:4.2.0:compile
                [INFO]    com.novell.ldap:jldap:jar:2009-10-07:compile
                [INFO]    com.baseventure.shared.nuxeo:bv-nuxeo-automation-client:jar:5.2.0-SNAPSHOT:compile
                [INFO]    com.baseventure.core:bv-core-domain-ldap-integration:jar:5.2.0-SNAPSHOT:compile
                [INFO]    io.crnk:crnk-rs:jar:2.0.20170916075109:compile
                [INFO]    com.baseventure.core:bv-core-security:jar:5.2.0-SNAPSHOT:compile
                [INFO]    com.sun.mail:javax.mail:jar:1.5.5:compile
                [INFO]    com.fasterxml.jackson.core:jackson-core:jar:2.9.7:compile
                [INFO]    org.infinispan:infinispan-cdi-common:jar:9.3.1.Final:compile
                [INFO]    io.dropwizard.metrics:metrics-core:jar:3.1.0:compile
                [INFO]    org.infinispan:infinispan-jcache-commons:jar:9.3.1.Final:compile
                [INFO]    javax.annotation:javax.annotation-api:jar:1.2:compile
                [INFO]    net.jodah:typetools:jar:0.4.4:compile
                [INFO]    org.apache.httpcomponents:httpmime:jar:4.5.3:compile
                [INFO]    org.eclipse.equinox:preferences:jar:3.5.200-v20140224-1527:runtime
                [INFO]    com.stripe:stripe-java:jar:2.6.0:compile
                [INFO]    commons-collections:commons-collections:jar:3.2.2:compile
                [INFO]    freemarker:freemarker:jar:2.3.8:compile
                [INFO]    org.eclipse.tycho:org.eclipse.jdt.core:jar:3.9.1.v20130905-0837:compile
                [INFO]    org.hsqldb:hsqldb:jar:2.3.2:compile
                [INFO]    com.baseventure.core:bv-core-async-work:jar:5.2.0-SNAPSHOT:compile
                [INFO]    com.neovisionaries:nv-i18n:jar:1.22:compile
                [INFO]    org.apache.httpcomponents:httpcore-nio:jar:4.4.6:compile
                [INFO]    org.eclipse.equinox:app:jar:1.3.200-v20130910-1609:runtime
                [INFO]
                [INFO] ------------------------------------------------------------------------

                 

                And the full stack trace:

                 

                2018-12-11 13:23:17,178 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 80) MSC000001: Failed to start service jboss.deployment.subunit."bv-application.ear"."bv-core-war.war".undertow-deployment: org.jboss.msc.service.StartException in service jboss.deployment.subunit."bv-application.ear"."bv-core-war.war".undertow-deployment: java.lang.RuntimeException: javax.servlet.ServletException: UT010013: Could not instantiate com.baseventure.core.common.lifecycle.impl.ApplicationMonitor
                    at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:81)
                    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
                    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
                    at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
                    at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1985)
                    at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1487)
                    at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1378)
                    at java.lang.Thread.run(Thread.java:748)
                    at org.jboss.threads.JBossThread.run(JBossThread.java:485)
                Caused by: java.lang.RuntimeException: javax.servlet.ServletException: UT010013: Could not instantiate com.baseventure.core.common.lifecycle.impl.ApplicationMonitor
                    at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:252)
                    at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:96)
                    at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78)
                    ... 8 more
                Caused by: javax.servlet.ServletException: UT010013: Could not instantiate com.baseventure.core.common.lifecycle.impl.ApplicationMonitor
                    at io.undertow.servlet.core.ManagedListener.start(ManagedListener.java:50)
                    at io.undertow.servlet.core.ApplicationListeners.start(ApplicationListeners.java:159)
                    at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:189)
                    at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:185)
                    at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
                    at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
                    at org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105)
                    at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
                    at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
                    at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
                    at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
                    at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1502)
                    at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:250)
                    ... 10 more
                Caused by: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
                    at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:163)
                    at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:134)
                    at org.jboss.as.ee.component.BasicComponent.createInstance(BasicComponent.java:88)
                    at org.jboss.as.ee.component.ComponentRegistry$ComponentManagedReferenceFactory.getReference(ComponentRegistry.java:149)
                    at org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$6.createInstance(UndertowDeploymentInfoService.java:1215)
                    at io.undertow.servlet.core.ManagedListener.start(ManagedListener.java:48)
                    ... 22 more
                Caused by: org.jboss.weld.exceptions.WeldException: WELD-001524: Unable to load proxy class for bean Extension [class com.arjuna.ats.jta.cdi.TransactionExtension] with qualifiers [@Default]; bv-core-war.war with class class com.arjuna.ats.jta.cdi.TransactionExtension using classloader ModuleClassLoader for Module "deployment.bv-application.ear" from Service Module Loader
                    at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:370)
                    at org.jboss.weld.bean.proxy.ProxyFactory.run(ProxyFactory.java:324)
                    at org.jboss.weld.bean.proxy.ProxyFactory.create(ProxyFactory.java:316)
                    at org.jboss.weld.bean.proxy.ClientProxyFactory.create(ClientProxyFactory.java:83)
                    at org.jboss.weld.bean.proxy.ClientProxyProvider.createClientProxy(ClientProxyProvider.java:205)
                    at org.jboss.weld.bean.proxy.ClientProxyProvider.createClientProxy(ClientProxyProvider.java:195)
                    at org.jboss.weld.bean.proxy.ClientProxyProvider.access$100(ClientProxyProvider.java:44)
                    at org.jboss.weld.bean.proxy.ClientProxyProvider$CreateClientProxy.apply(ClientProxyProvider.java:52)
                    at org.jboss.weld.bean.proxy.ClientProxyProvider$CreateClientProxy.apply(ClientProxyProvider.java:48)
                    at org.jboss.weld.util.cache.ReentrantMapBackedComputingCache.lambda$null$0(ReentrantMapBackedComputingCache.java:55)
                    at org.jboss.weld.util.LazyValueHolder$1.computeValue(LazyValueHolder.java:32)
                    at org.jboss.weld.util.LazyValueHolder.get(LazyValueHolder.java:46)
                    at org.jboss.weld.util.cache.ReentrantMapBackedComputingCache.getValue(ReentrantMapBackedComputingCache.java:72)
                    at org.jboss.weld.util.cache.ReentrantMapBackedComputingCache.getCastValue(ReentrantMapBackedComputingCache.java:78)
                    at org.jboss.weld.bean.proxy.ClientProxyProvider.getClientProxy(ClientProxyProvider.java:229)
                    at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:694)
                    at org.jboss.weld.manager.BeanManagerImpl.getInjectableReference(BeanManagerImpl.java:800)
                    at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:92)
                    at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:336)
                    at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:347)
                    at org.jboss.weld.injection.producer.ResourceInjector$1.proceed(ResourceInjector.java:69)
                    at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48)
                    at org.jboss.weld.injection.producer.ResourceInjector.inject(ResourceInjector.java:71)
                    at org.jboss.weld.injection.producer.BasicInjectionTarget.inject(BasicInjectionTarget.java:117)
                    at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:159)
                    at org.jboss.weld.contexts.unbound.DependentContextImpl.get(DependentContextImpl.java:70)
                    at org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:100)
                    at org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50)
                    at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:700)
                    at org.jboss.weld.bean.interceptor.CdiInterceptorFactory.create(CdiInterceptorFactory.java:46)
                    at org.jboss.weld.interceptor.proxy.InterceptionContext.initInterceptorInstanceMap(InterceptionContext.java:102)
                    at org.jboss.weld.interceptor.proxy.InterceptionContext.of(InterceptionContext.java:77)
                    at org.jboss.weld.interceptor.proxy.InterceptionContext.forNonConstructorInterception(InterceptionContext.java:73)
                    at org.jboss.weld.injection.producer.InterceptorApplyingInstantiator.newInstance(InterceptorApplyingInstantiator.java:60)
                    at org.jboss.weld.injection.producer.BasicInjectionTarget.produce(BasicInjectionTarget.java:112)
                    at org.jboss.weld.injection.producer.BeanInjectionTarget.produce(BeanInjectionTarget.java:186)
                    at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:158)
                    at org.jboss.weld.contexts.unbound.DependentContextImpl.get(DependentContextImpl.java:70)
                    at org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:100)
                    at org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50)
                    at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:700)
                    at org.jboss.weld.bean.builtin.InstanceImpl.getBeanInstance(InstanceImpl.java:252)
                    at org.jboss.weld.bean.builtin.InstanceImpl.access$400(InstanceImpl.java:73)
                    at org.jboss.weld.bean.builtin.InstanceImpl$InstanceImplIterator.next(InstanceImpl.java:325)
                    at com.baseventure.core.common.operational.OperationalDataManager.initialize(OperationalDataManager.java:63)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                    at java.lang.reflect.Method.invoke(Method.java:498)
                    at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:95)
                    at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:85)
                    at org.jboss.weld.util.Beans.callInitializers(Beans.java:360)
                    at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:348)
                    at org.jboss.weld.injection.producer.ResourceInjector$1.proceed(ResourceInjector.java:69)
                    at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48)
                    at org.jboss.weld.injection.producer.ResourceInjector.inject(ResourceInjector.java:71)
                    at org.jboss.weld.injection.producer.BasicInjectionTarget.inject(BasicInjectionTarget.java:117)
                    at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:159)
                    at org.jboss.weld.contexts.AbstractContext.get(AbstractContext.java:96)
                    at org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:100)
                    at org.jboss.weld.bean.ContextualInstanceStrategy$ApplicationScopedContextualInstanceStrategy.get(ContextualInstanceStrategy.java:140)
                    at org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50)
                    at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:700)
                    at org.jboss.weld.bean.builtin.InstanceImpl.getBeanInstance(InstanceImpl.java:252)
                    at org.jboss.weld.bean.builtin.InstanceImpl.access$400(InstanceImpl.java:73)
                    at org.jboss.weld.bean.builtin.InstanceImpl$InstanceImplIterator.next(InstanceImpl.java:325)
                    at com.baseventure.core.common.lifecycle.impl.ApplicationMonitor.initialize(ApplicationMonitor.java:31)
                    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                    at java.lang.reflect.Method.invoke(Method.java:498)
                    at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:95)
                    at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:85)
                    at org.jboss.weld.util.Beans.callInitializers(Beans.java:360)
                    at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:348)
                    at org.jboss.weld.injection.producer.DefaultInjector$1.proceed(DefaultInjector.java:71)
                    at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:48)
                    at org.jboss.weld.injection.producer.DefaultInjector.inject(DefaultInjector.java:73)
                    at org.jboss.weld.injection.producer.BasicInjectionTarget.inject(BasicInjectionTarget.java:117)
                    at org.jboss.as.weld.injection.WeldInjectionContext.inject(WeldInjectionContext.java:39)
                    at org.jboss.as.weld.injection.WeldInjectionInterceptor.processInvocation(WeldInjectionInterceptor.java:51)
                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
                    at org.jboss.as.ee.component.AroundConstructInterceptorFactory$1.processInvocation(AroundConstructInterceptorFactory.java:28)
                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
                    at org.jboss.as.weld.injection.WeldInterceptorInjectionInterceptor.processInvocation(WeldInterceptorInjectionInterceptor.java:56)
                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
                    at org.jboss.as.weld.injection.WeldInjectionContextInterceptor.processInvocation(WeldInjectionContextInterceptor.java:43)
                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
                    at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45)
                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
                    at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:60)
                    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:422)
                    at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:53)
                    at org.jboss.as.ee.component.BasicComponent.constructComponentInstance(BasicComponent.java:161)
                    ... 27 more
                Caused by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/arjuna/ats/jta/cdi/TransactionExtension
                    at org.jboss.weld.util.bytecode.ClassFileUtils.toClass(ClassFileUtils.java:113)
                    at org.jboss.weld.bean.proxy.ProxyFactory.createProxyClass(ProxyFactory.java:469)
                    at org.jboss.weld.bean.proxy.ProxyFactory.getProxyClass(ProxyFactory.java:362)
                    ... 120 more
                Caused by: java.lang.NoClassDefFoundError: com/arjuna/ats/jta/cdi/TransactionExtension
                    at java.lang.ClassLoader.defineClass1(Native Method)
                    at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
                    at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
                    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
                    at java.lang.reflect.Method.invoke(Method.java:498)
                    at org.jboss.weld.util.bytecode.ClassFileUtils.toClass2(ClassFileUtils.java:120)
                    at org.jboss.weld.util.bytecode.ClassFileUtils.toClass(ClassFileUtils.java:109)
                    ... 122 more
                Caused by: java.lang.ClassNotFoundException: com.arjuna.ats.jta.cdi.TransactionExtension from [Module "deployment.bv-application.ear" from Service Module Loader]
                    at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255)
                    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
                    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
                    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
                    ... 129 more
                
                2018-12-11 13:23:17,390 INFO  [io.undertow.servlet] (ServerService Thread Pool -- 86) jolokia-agent: No access restrictor found, access to any MBean is allowed
                2018-12-11 13:23:19,062 INFO  [org.wildfly.extension.undertow] (ServerService Thread Pool -- 86) WFLYUT0021: Registered web context: '/bv-jmx' for server 'default-server'
                2018-12-11 13:23:19,090 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([("deployment" => "bv-application.ear")]) - failure description: {"WFLYCTL0080: Failed services" => {"jboss.deployment.subunit.\"bv-application.ear\".\"bv-core-war.war\".undertow-deployment" => "java.lang.RuntimeException: javax.servlet.ServletException: UT010013: Could not instantiate com.baseventure.core.common.lifecycle.impl.ApplicationMonitor
                    Caused by: java.lang.RuntimeException: javax.servlet.ServletException: UT010013: Could not instantiate com.baseventure.core.common.lifecycle.impl.ApplicationMonitor
                    Caused by: javax.servlet.ServletException: UT010013: Could not instantiate com.baseventure.core.common.lifecycle.impl.ApplicationMonitor
                    Caused by: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance
                    Caused by: org.jboss.weld.exceptions.WeldException: WELD-001524: Unable to load proxy class for bean Extension [class com.arjuna.ats.jta.cdi.TransactionExtension] with qualifiers [@Default]; bv-core-war.war with class class com.arjuna.ats.jta.cdi.TransactionExtension using classloader ModuleClassLoader for Module \"deployment.bv-application.ear\" from Service Module Loader
                    Caused by: java.lang.RuntimeException: java.lang.NoClassDefFoundError: com/arjuna/ats/jta/cdi/TransactionExtension
                    Caused by: java.lang.NoClassDefFoundError: com/arjuna/ats/jta/cdi/TransactionExtension
                    Caused by: java.lang.ClassNotFoundException: com.arjuna.ats.jta.cdi.TransactionExtension from [Module \"deployment.bv-application.ear\" from Service Module Loader]"}}
                • 5. Re: WFLY 15 + @WebListener Transaction Issues?
                  yersan

                  I think this is a bug, the transaction extension is not being registered by weld because the class is not in the ear classpath.

                   

                  As a workaround, you could try creating a jboss-deployment-structure.xml adding the missing module to your ear deployment.

                   

                  <jboss-deployment-structure>
                  <deployment>
                      <dependencies>
                          <module name="org.jboss.jts" />
                      </dependencies>
                  </deployment>
                  </jboss-deployment-structure>
                  

                   

                  This file should be in your META-INF folder in your .ear file.

                  • 6. Re: WFLY 15 + @WebListener Transaction Issues?
                    csetera

                    That appears to work around the issue.  I will do some more testing, but it appears like this allows me to side-step the underlying issue.

                    • 7. Re: WFLY 15 + @WebListener Transaction Issues?
                      ctomc

                      Your dependency tree is waaaaaay too big.

                       

                      you should set most of dependencies that are provided by server itself (like spec api jars and others) to scope=provided in your pom.xml

                       

                      now you are bunding bunch of stuff that is already provided by server and some of it clashes

                      • 8. Re: WFLY 15 + @WebListener Transaction Issues?
                        csetera

                        I'm not disagreeing with your assessment of our dependencies.  We definitely need to do some cleaning.  However, based on the earlier conversation, do you think that is somehow causing the transaction extension issues that yersan had me workaround with the JBoss structure file?

                        • 9. Re: WFLY 15 + @WebListener Transaction Issues?
                          yersan

                          Just for the record, I filed a jira issue to address what I think is the problem arised in this thread: [WFLY-11506] EAR deployment fails with a CNFE when @Transactional is used in a CDI bean - JBoss Issue Tracker

                          • 10. Re: WFLY 15 + @WebListener Transaction Issues?
                            csetera

                            Thanks!