Questions tagged [weld]

Weld is the reference implementation (RI) for JSR-299: Java Contexts and Dependency Injection for the Java EE platform (CDI)

Weld is the reference implementation (RI) for JSR-299: Java Contexts and Dependency Injection for the Java EE platform (CDI)

See http://seamframework.org/Weld

592 questions
4
votes
2 answers

How to configure error page location for NonexistentConversationException?

I need help handling the expired/non-existent conversation when ?cid=XX is in the URL. I have tried to put org.jboss.weld.context.ContextNotActiveException
Yangrui
  • 1,217
  • 2
  • 17
  • 41
4
votes
1 answer

why I can't inject child bean class of not bean abstract parent class

I have a parametrized abstract class with one parametrized constructor: public abstract class BasicEntidadController implements Serializable { public BasicEntidadController(EntidadBean entidadSessionBean) {....} //…
wgualla
  • 61
  • 6
4
votes
2 answers

Testing with CDI, mocking a bean

I am wondering how i am doing tests with CDI. and mocking classes during injection. if i have the class: @Named @RequestScoped public class ItemProcessor { @Inject private ItemDao itemDao; public void execute() { List items =…
Trind
  • 1,583
  • 4
  • 18
  • 38
4
votes
1 answer

Is Seam3 and Weld CDI the same thing?

Maybe this seems like a foolish question but I am really confused. Is Seam 3 and Weld CDI the same things? I am reading some posts which refers to "CDI (Weld) / Seam 3", should I consider them as the same thing?
Yashar
  • 1,122
  • 2
  • 15
  • 43
4
votes
1 answer

WELD-000044 Unable to obtain instance from org.jboss.weld.bean-se-module-ProducerField

I am trying to inject an entity manager in a DAO class and test it, using weld container, but i keep getting the following exception: org.jboss.weld.exceptions.NullInstanceException: WELD-000044 Unable to obtain instance from…
Maria
  • 43
  • 6
4
votes
3 answers

How to bootstrap weld-se in a JUnit test

I have a maven project for unit tests and would like to use CDI. I've put the weld-se dependency in pom.xml like this : junit junit
baraber
  • 3,296
  • 27
  • 46
4
votes
1 answer

CDI conversation scope propagation: transient vs long running

From the Weld CDI documentation: The conversation context automatically propagates with any JSF faces request (JSF form submission) or redirect. It does not automatically propagate with non-faces requests, for example, navigation via a link. I was…
Panayiotis Karabassis
  • 2,278
  • 3
  • 25
  • 40
3
votes
1 answer

Delegate bean resolution to another IoC container

Back in the middle age, my company created his own IoC container and since then our application is running with it. But the day has come for us to switch to CDI/Weld. Instead of switching the whole thing to CDI (we honeslty can't...), we would like…
Rapster
  • 484
  • 1
  • 5
  • 23
3
votes
0 answers

Error with Weld when I deploy a Spring app in wildfly

I have a problem trying to deploy a Spring app in wildfly. the error is apparently related to Weld but I'm not sure why it uses Weld and not spring dependency injection. this is the error that the console shows: ERROR…
3
votes
1 answer

Get all beans with qualifier that has a binding value

I have a custom qualifier in my appliation that can be used like: @Person(name = "bob") public class Bob implements IPerson { ... } where the name value of the Person qualifier is binding. (Not annotated with @Nonbinding) One part of my application…
Sebastian
  • 1,642
  • 13
  • 26
3
votes
2 answers

Is it possible to inject a bean to phaselistener when using JSF 2.3, tomcat with weld cdi implementation?

I want to inject a @SessionScoped and a @RequestScoped beans into my PhaseListener implementation, but I got NullPointerException. I use tomcat with weld implementation to achieve CDI. I started to migrate JSF 2.2 to 2.3, so I changed to CDI from…
BravoNine
  • 101
  • 2
  • 9
3
votes
1 answer

Interceptor warnings in wildfly 11 deployment originating from deltaspike

During the deployment of my test.war in Wildfly 11 I see a couple of warnings: 09:45:32,714 WARN [org.jboss.weld.Validator] (MSC service thread 1-4) WELD-001478: Interceptor class org.apache.deltaspike.core.impl.throttling.ThrottledInterceptor is…
3
votes
1 answer

How to configure Jersey 2.16 on Tomcat 8.5 + Weld 3.0

I'm currently running Jersey 2.25.1 in a Tomcat 8.5 container with Weld 3, but fail updating to Jersey 2.26. The problem seems to be the changed hk2 integration. If I try to use the old way, simply adding jersey-hk2:
balta
  • 87
  • 1
  • 7
3
votes
1 answer

Omnifaces 2.x fails when used in a Spring Boot environment with Weld

Finally I successfully bootstrapped Weld in a Spring Boot environment as explained here. CDI works with no problem both for JSF using Mojarra and for Web Services using Jersey. But now I encountered a problem when trying to include Omnifaces 2.6 in…
Josep M Beleta
  • 581
  • 4
  • 19
3
votes
1 answer

Can automatic module read classes of named module in exported package in Java 9?

I am trying to see how Weld CDI container can work with JPMS. So I have the following configuration. I have my named module and weld-se-shaded as automatic module. In my module I have module my.module { requires weld.se.shaded; exports…
Pavel_K
  • 10,748
  • 13
  • 73
  • 186