Questions tagged [jboss-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). CDI is the Java standard for dependency injection and contextual lifecycle management, a Java Community Process (JCP) specification that integrates cleanly with the Java EE platform. Any Java EE 6-compliant application server provides support for JSR-299 (even the web profile).

http://seamframework.org/Weld

See also

393 questions
0
votes
1 answer

Weld dependency injection issues

I have a POJO that I create to hold context for the client of a RESTful API, similar to this (actual class is proprietary). class MyPOJO { @Inject public AnInjectedInterface obj1; @Inject public AnotherInjectedInterface obj2; …
SteveB
  • 483
  • 1
  • 4
  • 18
0
votes
1 answer

CDI (weld 3.0.3.Final) not calling @PostConstruct if @ApplicationScope

I ran into a bit of an interesting problem as I was going through my latest application and working on coverting beans to @ApplicationScope since I really only needed 1 instance. I have a couple classes I created to inject values from a properties…
Michael Remijan
  • 687
  • 7
  • 22
0
votes
0 answers

How to inject an @Normal (@ApplicationScoped) bean into a @Dependent scope if the bean does not have a no-arg constructor

This post is related to an older SO Post of mine, wherein I was trying to understand the requirements of a no-args constructor by WELD. Right now, I'm trying to figure out if there is a way in CDI to inject an @ApplicationScoped bean (@Normal) into…
Eric B.
  • 23,425
  • 50
  • 169
  • 316
0
votes
0 answers

Portable CDI extension to inject beans at runtime

Referencing this: http://docs.jboss.org/weld/reference/latest-master/en-US/html_single/#_the_literal_injectiontarget_literal_interface Following the instructions from above, i am able to load SomeFrameworkComponent.class dynamically at runtime via…
hrs
  • 379
  • 4
  • 12
0
votes
0 answers

Weld DefinitionException when deploying Spring Boot project to Wildfly

I'm trying to use WildFly to my Spring Boot project, but when I deploy it, the following exception is thrown: {"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"infrendsz-0.0.1-SNAPSHOT.war\".WeldStartService" => "Failed to start service …
Ádám Bozzay
  • 529
  • 7
  • 19
0
votes
1 answer

beanManager.fireEvent doesn't fire with OmniFaces 3.1

***** UPDATED ***** I have the following method in a Stateless Session Bean, deployed in an EAR on JBoss WildFly 12.0.0.Final which is called when the database is updated. import javax.enterprise.inject.spi.BeanManager; import…
NOTiFY
  • 1,255
  • 1
  • 20
  • 36
0
votes
1 answer

JAVA Win Service with procrun and CDI/WELD

I'm creating an OS background service using procrun (Apache JSVC). I want to use WELD as a container. The application by itself (gradle run) works fine. I can see desired behaviour. But when I'm trying to run it as a Windows service, I can see…
Szymon Dudziak
  • 522
  • 5
  • 23
0
votes
1 answer

HttpSessionBindingListener.valueUnbound is not triggered on session timeout

We need to do some DB cleanup on session timeout, so implemented HttpSessionBindingListener and added an object to session on user login, we never remove it from session explicitly. HttpSessionBindingListener.valueUnbound is triggered if we manually…
Avinash Moram
  • 67
  • 2
  • 13
0
votes
1 answer

Weld @Produces dependency has null injection point

I have a generic DAO with a non default constructor that looks something like this (not actually to do with vehicles I'm just trying to provide a simple example) public class GenericVehicleDao { private Class clazz; …
PDStat
  • 5,513
  • 10
  • 51
  • 86
0
votes
1 answer

seam solder (former weld-extensions project) is not initialized

I want to use logger in my java web application. I'm using JBossAS 6.0.0.final, cdi (weld), jsf ... etc. Seam solder proposes to use an abstract logger is not tying to a concrete implementation (slf4j, log4j, etc) using jboss-logging api. In order…
user268292
  • 71
  • 1
  • 3
0
votes
1 answer

Is Weld an Java SE Runtime environment or a container for Java SE?

What exactly is Weld ? Is Weld an Java SE runtime by itself or it is only a container which can be used in my existing JRE ?
yathirigan
  • 5,619
  • 22
  • 66
  • 104
0
votes
1 answer

BeanManager method getReference() is not available during application initialization

I am trying to deploy a war file into Wildfly 10.0.0.Final, the deployment fails with the following error : "{\"WFLYCTL0080: Failed services\" => {\"jboss.deployment.unit.\\\"management-app.war\\\".WeldStartService\" =>…
TheByeByeMan
  • 1,396
  • 2
  • 28
  • 50
0
votes
1 answer

Weld CDI does not log exceptions unless debug level is switched on

We have noticed that if an exception is thrown while CDI events are being processed - for example with @Observes(during = TransactionPhase.BEFORE_COMPLETION) - then the exception is not logged if the log level is above DEBUG. Weld logs something…
Ant Kutschera
  • 6,257
  • 4
  • 29
  • 40
0
votes
2 answers

CDI (Weld) / Seam 3 Persistence module / Glassfish 3 - Unexplainable exception when starting server

I am using Weld, Jboss' implementation of CDI. JPA/Hibernate for persistence. For something different I am giving it a crack on Glassfish 3 which I have not used before. I am using Maven for dependency management. As CDI doesn't have transaction…
Aaron Chambers
  • 1,354
  • 2
  • 12
  • 27
0
votes
1 answer

How to inject external APIs beans with Weld - JSR-299

It's clear to me how to inject an object which is in my domain (I have access to the source) using Weld. You just annotate the implementation with e.g. @Named and @ApplicationScoped, and then annotate the target attribute with @Inject to get the…