From dd83bb2cc27ee61ae810da2dfff5390ba9f4ab3c Mon Sep 17 00:00:00 2001 From: "Niels Erik G. Nielsen" Date: Tue, 12 Mar 2013 17:20:14 -0400 Subject: [PATCH] This needs to go in jar (library) rather than the war (app) Goes for Glassfish as well as JBoss it seems. This sort of defies one purpose of dependency injection. You want to be able to code alternative implementations in a library, but have the application using that library decide deploy-time which implementation to use. Strangely enough this works in Tomcat 7 with Weld included in the jar. I believe following ticket is about this issue: https://issues.jboss.org/browse/CDI-18 --- src/META-INF/beans.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/META-INF/beans.xml b/src/META-INF/beans.xml index b87599c..7edbcfd 100644 --- a/src/META-INF/beans.xml +++ b/src/META-INF/beans.xml @@ -4,4 +4,10 @@ xsi:schemaLocation=" http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd"> + + com.indexdata.pz2utils4jsf.config.Pz2ConfigureByWebXml + + + + \ No newline at end of file -- 1.7.10.4