Hi, Not sure for all tests but it is the well known old issue that weld bean manager is per jar and not global - in particular for alternatives and even in a war - so org.apache.deltaspike.proxy.spi.invocation.DeltaSpikeProxyInterceptorLookup#resolveInterceptors does not resolve interceptors using the DS-core BM instead of the war BM for ex. You can checkout this goodness ;): org.jboss.weld.AbstractCDI#getCallingClassName.
The game is to get the right bean manager, one way is to use beanManager=(BeanManager) new InitialContext().lookup("java:comp/BeanManager") and not use BeanManagerProvider for example (or hide this lookup with a config in the provider like the one we already have to wrongly use CDI.current() for example (we must not do it everytime but we do today). Not sure of the best fix since this part is already overly hacky and we need to get back to CDI 1.0 hacks to fix it it seems. Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://rmannibucau.metawerx.net/> | Old Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Book <https://www.packtpub.com/application-development/java-ee-8-high-performance> Le sam. 2 mars 2024 à 17:44, Thomas Frühbeck <t.fruehb...@gmail.com> a écrit : > I built a Weld-only test for Partial-Bean-Interceptor. > AFAICS the DeltaSpikeBeanConfigurator#createWith is not invoked by Weld > (anymore?) > > I sent a PR for this test to simplify backtracking. > Does this help? > > Am Di., 27. Feb. 2024 um 16:47 Uhr schrieb Thomas Andraschko < > andraschko.tho...@gmail.com>: > > > I had a look on the partialbean-impl module and it fails with weld > (payara > > & wildfly-build-managed) but works fine on tomee: > > the problem seems to be in DeltaSpikeProxyInvocationHandler as the > > interceptors are empty. > > it seems that DeltaSpikeProxyInterceptorLookup the right interceptor are > > correctly extracted but > > beanManager.resolveInterceptors(InterceptionType.AROUND_INVOKE, > > interceptorBindings); > > doesnt return the SimpleCacheInterceptor. > > > > maybe you can debug a bit more into weld or talk with them? > > > > > > >