• ServiceLoader cannot load extension

    We are in the process of upgrading version of HK2 for Payara application server to 2.5.0 and bumped into a problem where ServiceLoader cannot load extension class for org.hibernate.validator.internal.cdi.ValidationExt...
    Profile Photo
    last modified by mulderbaba
  • Unpredictable UnsatisfiedResolutionException: WELD-001308 Unable to resolve any beans for Types

    Hi,   sometimes we get following error but it's really unpredictable. Sometimes it happens no, once or multiple times a day without any specific reason org.jboss.weld.exceptions.UnsatisfiedResolutionException: W...
    Profile Photo
    last modified by a-st
  • [Resolved] Could not start Weld Container in DeltaSpike TestControl (Encolsing method not found)

    Hi !!   My team and I recently switched from Seam 3 to DeltaSpike. And I can't manage to make the TestControl work. After contacting the DeltaSpike team, we decided that the question deserved to be posted here....
    Profile Photo
    last modified by mekor
  • AnnotatedTypeConfigurator: easy recipe for configuring superclass fields?

    I am doing horrible and unsightly things with a CDI extension and the Maven dependency resolution project known as maven-resolver.   The Maven part is uninteresting except that it makes use of an old dependency ...
    Profile Photo
    last modified by ljnelson
  • Calling the private method of outer class from the inner static class, the injecting is not working.

    public class Outer{      @Inject      SomeClass instance;      private void someMethod(){           instance.xxx...
    Profile Photo
    last modified by seto
  • Weld and OSGi

    any advantages to using an OSGi-based container like Glassfish V3 or SpringSource dm server with Weld?
    Profile Photo
    last modified by asookazian
  • Should an observer method's parameters show up in its bean's injection points?

    Playing around with portable extensions and such.   If I get all the beans the container knows about (in AfterBeanDiscovery, so before validation) via beanManager.getBeans(Object.class, Any.Literal.INSTANCE), an...
    Profile Photo
    last modified by ljnelson
  • Weld shutdown hook question: maybe interrupt() container thread?

    Consider the shutdown hook installed by Weld: core/WeldContainer.java at master · weld/core · GitHub   I am experimenting with blocking the container thread from within an observer method like this: &...
    Profile Photo
    last modified by ljnelson
  • Behavior of non-daemon threads in CDI 2.0?

    Maybe I'm missing something obvious.  :-)   It's my understanding that a JVM will exit when (a) Runtime.exit() is called in some way (let's forget about this case) or (b) there are no non-daemon threads lef...
    Profile Photo
    last modified by ljnelson
  • How do I simulate injecting the InjectionPoint in BeanConfigurator.produceWith?

    I'm using the (very convenient) produceWith() method to simulate a producer method.   I understand that this method takes a Function whose sole parameter is of type Instance<Object>, and that this is used ...
    Profile Photo
    last modified by ljnelson
  • Integration testing and JNDI resource injection

    Hi,   I want to test that a DAO/repository works properly with a test database (integration test). In the DAO I inject a JNDI datasource with the resource annotation:   public class SomeDAO {   @Resou...
    Profile Photo
    last modified by maximelaval
  • What subtype of ProcessBean should be fired for an extension?

    I see that the CDI specification says in section 11.5, where "service provider" means a portable extension: For each service provider, the container must provide a bean of scope @ApplicationScoped and qualifier @Defa...
    Profile Photo
    last modified by ljnelson
  • Weld and Log4j2 problem

    2017-01-28 13:18:27,626 Thread-1 ERROR Unable to register shutdown hook because JVM is shutting down. java.lang.IllegalStateException: Cannot add new shutdown hook as this is not started. Current state: STOPPED  ...
    Profile Photo
    last modified by seto
  • RuntimeException: Error looking up java:comp/env/java:/ConnectionFactory in JNDI

    Get a 'RuntimeException:Error looking up java:comp/env/java:/ConnectionFactory in JNDI' when run a test in TestNG that attempts to access the ConnectionFactory in a WebApp deployed on JBoss.   The trace from Tes...
    Profile Photo
    last modified by brucespringfield
  • Weld 3.0 - bridging Weld SE containers

    I am using Weld 3.0 Beta1 SE to start a server based application in one container and then start several other containers for embedded Tomcat WAR webapps. I investigated combining Weld SE with Weld Servlet but I didn'...
    Profile Photo
    last modified by aanderson1776
  • AfterTypeDiscovery.addAnnotatedType: should be picked up by bean scanning, yes?

    I've added a few annotated type instances for a given class, each with a distinct ID using the AfterTypeDiscovery.addAnnotatedType(String, Class) method introduced in CDI 2.0EDR2.   With that configurator, I've ...
    Profile Photo
    last modified by ljnelson
  • Doubt about Spec Section 5.2.4. Assignability of raw and parameterized types - On injection point without diamond operator

    Hi,   I have doubt about the following spec section: https://docs.jboss.org/cdi/spec/1.2/cdi-spec.html#assignable_parameters   I am trying to understand what paragraph in the spec explains the reason why...
    Profile Photo
    last modified by nuno.godinhomatos
  • Qualifier has only FIELD and PARAMETER: need to write a producer method

    I am sure I am missing some insert-tab-A-into-slot-B recipe here.   I am working with a non-modifiable Qualifier annotation named Fred.  Its Targets are only PARAMETER and FIELD.  I cannot alter this a...
    Profile Photo
    last modified by ljnelson
  • apache camel 2.18.1, exception by Weld during the execution an extractor.

    I get this error  during start of a route setting up with idempotent behavior :   07-12-2016 09:03:00 ERROR [DefaultQuartzScheduler-camel-1_Worker-4]  IdempotentExtractor: Class='org.jboss.weld.bean....
    Profile Photo
    last modified by kalber
  • Decorator problems with programmatically added Bean

    I have an extension that adds a Bean (which reports Foo, an interface, among its types) during AfterBeanDiscovery.   I have a decorator, an abstract class implementing Foo, annotated with @Decorator and @Priorit...
    Profile Photo
    last modified by ljnelson