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
0
votes
0 answers

CDI injection fails when two copies of implementation exists

I've following issue. For some reasons I have a copy of some jar in two different WAR modules inside one EAR. Unfortunately introducing injection via CDI fails because classloader detects two implementations and it doesn't know which one should be…
Artur Skrzydło
  • 1,135
  • 18
  • 37
0
votes
0 answers

how to use fx:include or switch scene when using weld

I'm struggling with a javafx + weld problem. I'm building application that should switch scenes/views. Application is using weld CDI. I was trying several approaches and none of them is working. Currently my application is based on a solution from…
Bartek
  • 149
  • 3
  • 13
0
votes
2 answers

Weld cannot find CDI producer

WildFly 10.1 used. In modules added single module that contains jar file with interface EzRegistryService. Producer code: package com.ejbtest; import org.apache.log4j.Logger; import javax.ejb.EJB; import…
Rustam
  • 1,397
  • 1
  • 13
  • 17
0
votes
1 answer

WELD Classloading issue after adding deltaspike to an existing primefaces maven project

I am new to primefaces and deltaspike, we initially tried with CDI conversations but had to fall back to deltaspike. I added the jars as mentioned in the https://deltaspike.apache.org/documentation/configure.html#config-maven-indep But I am getting…
Avinash Moram
  • 67
  • 2
  • 13
0
votes
2 answers

WELD-001413: The bean... has a non-passivation-capable dependency Producer Method (CDI 1.2)

I'm trying to upgrade from CDI 1.0 to CDI 1.2 but i'm facing the following problem: org.jboss.weld.exceptions.UnserializableDependencyException: WELD-001413: The bean Managed Bean [class ViewProcessContext] with qualifiers [@Default @Named @Any]…
RicardoS
  • 2,088
  • 1
  • 21
  • 22
0
votes
1 answer

Disable/Enable interceptor at runtime

I have some interceptors that are used for debugging (performance, logging of method usage, etc) our JavaEE applications. In production system I don't want those interceptors to be enabled by default but I want to have the possibility to enable them…
grubi
  • 155
  • 2
  • 16
0
votes
1 answer

weld 2.4.2.Final maven test

we face against the same problem than the one identified here : Weld using alternative producer from src/test/META-INF/beans.xml. With maven and weld se, for test, weld does not use the beans.xml located in test/resources/META-INF. We look on…
granier
  • 1,739
  • 13
  • 25
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
1 answer

AOP on Tomcat with Weld

I'm learning about using AOP about RESTful webservices. I choose Tomcat as platform and Weld to bring CDI, I also use CXF as JAX-RS implementation (this is a commitee specific technological constraint in which I am pretty new). This is my…
Francesco
  • 1,742
  • 5
  • 44
  • 78
0
votes
2 answers

wildfly - use CDI with POJO

I would like use CDI with POJO. Now have a Jaxrs Resteasy webapp running in Wildfly 10.1.0.Final. There is a singleton which returns a ServiceImpl class: public class ServiceFactory { private static Service service = new ServiceImpl(); …
freedev
  • 25,946
  • 8
  • 108
  • 125
0
votes
0 answers

CDI Logger Injection error in Junit test but not on Wildfly server

I come across a strange behavior. I looked for a possible explanation but I did not find (always the same types of answers). My implementation is perfectly deployed under WildFly 10.x and the Logger works perfectly. I created very classic elements…
nletteron
  • 25
  • 5
0
votes
1 answer

WELD-001408 when trying to deploy rest project as war type that references a jar project with jpa content

When I try to deploy my JavaEE 7 war project on a payara 4.1.1 server the following error occurs: Error occurred during deployment: Exception while loading the app : CDI deployment failure:WELD-001408: Unsatisfied dependencies for type RatingEJB…
rudi
  • 3
  • 2
0
votes
1 answer

how to use event in weld (cdi)

I am studying Weld Event from jboss weld event tutorial and I want to write an example which observes an event and print helloword when it was fired. this is my code: //MyEvent when it was fired, print HelloWorld public class MyEvent{} //observe…
nail fei
  • 2,179
  • 3
  • 16
  • 36
0
votes
0 answers

weld cdi add bean programticlly

i'm trying to manually load an javax annotated class and register it as a bean in a java ee 7 (wildfly) container (using weld) , i have written an extentions using deltaspike BeanBuilder: public void afterBeanDiscovery(@Observes…
asafb
  • 92
  • 7
0
votes
1 answer

How to understand "synthetic" bean archive in weld?

I am learning weld. And when I study the source code of org.jboss.weld.environment.se.Weld class it mention synthetic bean archive several times in comment. It seemed it have thing with beans.xml. I guess it is used to tell container load beans…
nail fei
  • 2,179
  • 3
  • 16
  • 36