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
1 answer

Trying to make a Java EE/JPA application run, but I keep getting errors from Observer

I set up JPA with a MySQL data source, after hours of driver problems, this finally works. Now, when I try to deploy it, I keep getting weld errors about Observer. I'm not sure what this means, I couldn't find anything about it. I would be grateful…
Kevin Van Ryckegem
  • 1,915
  • 3
  • 28
  • 55
0
votes
1 answer

CDI do i need producer for objects with default constructor?

In my project i use weld se. I have a problem injecting "GroupedExchangeAggregationStrategy" into one of my constructors. This object has a default no argument constructor. Beans.xml is set to discover "all". But i get unsatisfied dependency for…
dermoritz
  • 12,519
  • 25
  • 97
  • 185
0
votes
1 answer

Instantiate CDI beans dynamically or inject in non-cdi-beans

I'm new to CDI and hope someone can help me. Well, let me explain problem: I implemented a main bean which is called by JSF EL. This bean handles a list of objects. Just imagine something like List. These car objects are constructed in the…
Roman B
  • 81
  • 7
0
votes
1 answer

jsf faces Inject not working while deploying to wildfly

I am using JPA ecilpse link in my project. following is my pom.xml sms sms 1.0-SNAPSHOT war
Jayendra Gothi
  • 682
  • 2
  • 11
  • 26
0
votes
0 answers

java.lang.NullPointerException at com.sun.faces.config.ConfigManager$ProvideMetadataToAnnotationScanTask.initializeIvars after adding Weld

I am trying to use OmniFaces for converters. However it will not initialize. I am running eclipse on Ubuntu. I have not implemented any converters or any other OmniFaces code in the project yet. But the intention is to use list converters and…
user2130951
  • 2,601
  • 4
  • 31
  • 58
0
votes
1 answer

Instantiate list of objects with CDI

I am currently refactoring some legacy code and came across a snippet as below. How do I avoid the instantiation of 'CompanyAuditor' class and use CDI to hanldle it? return compDAO.getAll() .stream() .map(…
ShellDragon
  • 1,712
  • 2
  • 12
  • 24
0
votes
1 answer

Should we disable weld subsystem if CDI is not using?

My application is built on JSF 2.2.4 and EJB 3.2. It is not using CDI. Application is running on WildFly 8.2. Should we disable weld subsystem if CDI is not using?
Valsaraj Viswanathan
  • 1,473
  • 5
  • 28
  • 51
0
votes
1 answer

Does EJB 3.2 / CDI have an equivalent of Spring 4 Meta annotations?

Does somebody know how to create a "shortcut" for a couple of annotations in CDI? You know, something called meta-annotations in Spring world: @Singleton @Transactional(value = TxType.REQUIRED, dontRollbackOn =…
G. Demecki
  • 10,145
  • 3
  • 58
  • 58
0
votes
2 answers

OSGI+CDI: strange behaviour with system printers detecting

I have CDI+OSGI javase application. CDI-Weld,OSGI-felix and pax-cdi. And I have the following code in "CDI-main" @ApplicationScoped public class Foo{ public void postCreate(@Observes ContainerInitialized event, BundleContext ctx) throws…
user2022068
0
votes
1 answer

Fully disable Weld JSF integration in Wildfly 8.2

I'm in the process of migrating a Seam 2.3 web application to EE7. Currently the application runs on Wildfly 8.2 (with Bill of Materials version of all dependencies) and runs fine, except for a performance issue: pages take minutes to load, or never…
Daan van Yperen
  • 674
  • 6
  • 26
0
votes
0 answers

Weld+CDI+JAVA-FX (Firing Events)

I am following this tutorial http://java.dzone.com/articles/fxml-javafx-powered-cdi-jboss for the moment the @Inject works perfectly with JavaFX. I would like to make full advantage of CDI-Weld using CDI Events and placing @Observers in the…
LuCG
  • 109
  • 9
0
votes
1 answer

CDI+OSGI: bundle packages scope

I use javase and solution osgi (felix)+cdi(weld)+paxcdi. I have two bundles A and B. Bundle B is a lib bundle. In bundle A I have one class and one package. package com.example.firstpackage; import com.example.secondpackage.Class2; public class…
user2022068
0
votes
1 answer

Injecting arbitrary enum with WELD CDI

I am trying to provide an opportunity to inject an arbitrary enum given injection point and string value (that is obtained in Produces method) Arbitrary means if I have enum My and enum Your I would like to inject both of them or any other one with…
Anjenson
  • 117
  • 1
  • 11
0
votes
1 answer

Issues with CDI when injecting generic type : Wildfly 8.2.0.Final

We are facing weird injection issues in Widfly due to CDI changes. We have interface public interface Command { } and many classes implement this interface like this public class ApproveUserRequests implements…
Srivathsan
  • 49
  • 1
  • 7
0
votes
1 answer

CDI injection with generic interfaces

I have a problem with CDI injection. I want to build my DAO Layer with JPA and my Business Layer with EJB then using CDI to inject my DAO into Business Threat Logic. For this, I define for my DAO layer One generic dao interface with contains CRUD…
aristos
  • 129
  • 3
  • 14