• ConversationScoped - cid from http header instead of query parameters

    Hi.   I want to use conversation scope in application where JS client call rest services. Each of service must be called with proper cid value. For transfer cid I want to use http header instead of query paramet...
    Profile Photo
    last modified by poiu77
  • WELD-000049: Unable to invoke void com.mydomain.bc.alert.AService.init() Caused by java.lang.NullPointerException

    Trying to inject dependencies into a Junit test with Weld. But Weld is getting a NullPointer Exception    Caused by: java.lang.reflect.InvocationTargetException   at sun.reflect.NativeMethodAccessorI...
    Profile Photo
    last modified by brucespringfield
  • how can I edit my entries in a discussion?

    I need to edit my entry in a discussion. How can I do this?
    Profile Photo
    last modified by brucespringfield
  • WELD-ENV-002000: Weld SE container STATIC_INSTANCE is already running!

    Trying to start Weld Container in a JUnit test and get the following message:   WELD-ENV-002000: Weld SE container STATIC_INSTANCE is already running!   What does this mean? And how can I fix it?   F...
    Profile Photo
    last modified by brucespringfield
  • Use WeldContainer to inject Beans and other dependencies into a Junit test?

    Can I use the WeldContainer from Weld SE to inject Beans and other dependencies into a JUnit test?   For instance:       public <T> T getBean(final Class<T> clazz, final Annotati...
    Profile Photo
    last modified by brucespringfield
  • Integration Testing and Weld

    Are there other test frameworks to use for Integration Testing with Weld other than Arquillian?   Some people find that Arquillian can be quite resource intensive and time consuming.
    Profile Photo
    last modified by brucespringfield
  • AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between

    Try to run a Junit test with WeldJUnit4Runner and get the following error message:   org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318: Cannot resolve an ambiguous dependency between:   ...
    Profile Photo
    last modified by brucespringfield
  • Handling limited number of bean instance copies by CDI

    Hi guys,   I've been hammering my brain for two days now with the following problem, so any help or pointing in the right direction is highly appreciated.   What I'd like is to use CDI for instantiation an...
    Profile Photo
    last modified by vitek.richard
  • Failure to get bean with BeanManager when using EAR archive

    Hello,   we have been informed recently by one of our users on Narayana forum about an issue with our Compensations framework when the application using it is deployed as an EAR archive. When transactions is bei...
    Profile Photo
    last modified by gytis
  • How do I invoke an injected method with Weld SE?

    Hello,   I'm trying to understand how to use method injection, but I cannot find a way to use it properly. I was wondering: Is it even possible with Weld SE or is this a feature that depends on a Java EE server?...
    Profile Photo
    last modified by ctwx
  • weld-osgi-bundle 3.0.0.Alpha16 is not compatible with cdi-api 2.0-EDR1 in osgi-wise

    osgi-bundle imports package javax.enterprise.inject.spi.builder but this package does not exist in cdi-api 2.0.-EDR1 but  it exists in the previous version 2.0.Alpha4
    Profile Photo
    last modified by mulderbaba
  • access modifier of InternalEjbDescriptor is removed?

    is there any specific reason about removing the public access modifier on class InternalEjbDescriptor while moving it to the EJB module? This class is being accessed via glassfish code base so removing the modifier ma...
    Profile Photo
    last modified by mulderbaba
  • How does weld manage custom scope/context?

    When we create a custom scope and its associated context, we can register them in weld via an Extension. For example:   public classMyExtension implements Extension {     void addScope(@Observes ...
    Profile Photo
    last modified by hngounou
  • Are transient dependencies re-injected after it awakes from passivation?

    I am using Weld in GlassFish and, like everyone else, am running into the error "Managed bean declaring a passivating scope must be passivation capable." Section 6.6.1 of the CDI spec says "A managed bean is passivati...
    Profile Photo
    last modified by cayhorstmann
  • Weld-Se 2.3.4.Final: "Enclosing method not found" on anonymous inner class in lambda expression

    Hi y'all!   I just stumbled upon the following problem and I'm not sure whether it's according to the specification (just getting started with weld) or whether it's a bug.   When a bean includes a method w...
    Profile Photo
    last modified by fwiedenmann
  • CDI-enabled module in WF

    I'm trying to make Seam 3 a module in WF10 (yesyes, I know it's deprecated but we're in the progress of migrating). I've created the module but end up with a deployment error of      Caused by: org.jbo...
    Profile Photo
    last modified by nickarls
  • WELD-001409: Ambiguous dependencies for type HttpSession with qualifiers @Default

    Dear community,   I have a war that is running smooth on JBoss 6.1. It happens that I need to bring it to Wildfly 10 and, after going through a lot of minor adjustments, I got stuck on the problem you can see be...
    Profile Photo
    last modified by educlj
  • Recommended ways to use WELD in JUnit (SE), Tomcat (Servlet) and JBoss

    I have project relying on CDI in two places. The target environment of the project is EAP 6.2 but we're also targeting a "lighter" tomcat 7 environment. In addition each maven module has its bunch of associated JUni...
    Profile Photo
    last modified by alainpannetier2
  • In which order does Weld destroy @ApplicationScoped beans?

    Hi,   I have a WELD 2.3.4/Tomcat 8 application that runs in AWS; AWS "auto-scaling" means that my instances of my application will be started and stopped quite aggressively. I have therefore been examining how m...
    Profile Photo
    last modified by chrisjr
  • Memory leak - WELD's optimisation is not being applied.

    Hi,   I've recently discovered a memory leak in my application (sample project is attached). Now I am aware that when Instance<>.get() creates a @Dependent scoped bean, the CDI spec states that the bean "b...
    Profile Photo
    last modified by chrisjr