Top "Cdi" questions

Contexts and Dependency Injection (CDI): Java Platform, Enterprise Edition (Java EE) 5 brought dependency injection (DI) with Convention over Configuration to Enterprise JavaBeans (EJB) 3.0. Java EE 6 introduces the flexible and powerful @Inject dependency injection model (JSR-330 and JSR-299) in addition to the already existing @EJB annotation.

Illegal Syntax for Set Operation

I have a problem in connecting My xhtml page to the managed bean, the action on the commandButton works but …

jsf cdi el managed-bean
org.jboss.weld.exceptions.WeldException: WELD-000049: Unable to invoke private void init()

For some reason, the following code is not working, and I do not understand why. My current, and quite hand-wavy, …

jsf cdi private-methods postconstruct
WELD-001408 Unsatisfied dependencies when injecting EJBs that implement interfaces

Here is the situation. I've got the following interfaces: public interface Parent { } public interface ChildOne extends Parent { } public interface ChildTwo …

glassfish-3 cdi ejb-3.1
How to enable CDI inject in web service (jaxrs/jersey) on java se running grizzly?

How do I allow CDI injection of resources into restful web service resources? I am running on standard java using …

java jersey jax-rs cdi grizzly
JSF 2 localization (managed bean)

I have a properties file for localization: foo=Bar title=Widget Application This is tied in as a resource-bundle in …

jsf jsf-2 cdi managed-bean
Injecting a bean from a different Jar in Weld

I have two Jars A and B where A depends on B. Jar B has a single class: @ApplicationScoped public …

jar cdi ear jboss-weld
Using JSF 2.2.9 on Spring+Tomcat causes java.lang.NoClassDefFoundError: javax/enterprise/context/spi/Contextual

I need to use custom html attributes inside JSF components, and for this the only solution that i found is …

spring jsf jsf-2 cdi
What is CrashLoopBackOff status for openshift pods?

There is more than one example where I have seen this status from a pod running in openshift origin. In …

apache-camel cdi openshift-origin fabric8
WELD-000227: Bean identifier index inconsistency detected - the distributed container probably doesn't work with identical applications

I am using tomcat v7 with Weld v2.2.9.Final and myFaces v2.2.7 after restart server in eclipse IDE and reload …

tomcat cdi weld
Java EE 6 Enterprise Application: Warning "Unsatisfied dependency: no bean matches the injection point" when injecting a bean

I have created a fresh new Java EE 6 Enterprise-Application in Netbeans 7.2. So I have three Projects: EAR EJB WAR In …

servlets netbeans cdi ear