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

FlowDefinition Scope issue in JBoss 7.1 - Migration to JSF 2.2.1

I did the instruction from this website (JSF 2.2 in JBoss 7.1.1 Final). After I overcome the problem posted : ClassNotFoundException for JSTL jar when I try to migrate JBoss 7.1 application to JSF 2.2 I get new issue. No active contexts for scope…
Zaw Than oo
  • 9,651
  • 13
  • 83
  • 131
1
vote
1 answer

Bootstrap Weld 2.1.0 from void main

How can I start an application with CDI that uses Weld within a normal Java SE environment, that is simply started from the command line and has no Glassfish or Tomcat in the background? With Weld 1.x you could do something like public static void…
iuiz
  • 957
  • 1
  • 10
  • 23
1
vote
1 answer

CDI Observing in Arquillian, event not propagated to injected bean

Using Arquillian JUnit (version 1.1.1 respectively 4.11) to setup my CDI (1.0.0.CR7 on Weld 1.1.13.Final) embedded with JDK 1.7.25.... Got the following classes: public class Receiver { private String message; public void catching(@Observes…
Matthew Campbell
  • 1,864
  • 3
  • 24
  • 51
1
vote
0 answers

JBoss and Weld not importing in Eclipse

I'm working through examples in a Beginning Java EE7 book, and the first example calls for me to use Weld in a simple Maven project. I've copied all the files into a Maven project in Eclipse (Kepler). But the Main.java application has an import…
Kyle Walker
  • 559
  • 3
  • 12
  • 25
1
vote
1 answer

Resources not found with CDI/Weld JAX-RS/RESTEasy

I try to setup CDI/Weld and JAX-RS/RESTEasy on Netty in a Java SE environment, but all I get is the following exception: javax.ws.rs.NotFoundException: Could not find resource for full path: http://localhost:8000/ My project has the following…
deamon
  • 89,107
  • 111
  • 320
  • 448
1
vote
1 answer

redirect user to error page (xhtml) after conversation expired through web.xml

My environment is: NetBeans7.2.1, GlassFish3.1, JSF2 and Weld 1.1.0. When the conversation time expires, I would like to redirect to error.xhtml page. Inside web.xml I added this code:
user2046810
  • 393
  • 1
  • 8
  • 21
1
vote
5 answers

CDI bean configuration using beans.xml file

I have very simple CDI bean: package net.resourceAuth; public class Sample { private String text; public String getText() { return text; } public void setText(String text) { this.text = text; } } And now I would like to…
pWoz
  • 1,649
  • 3
  • 20
  • 30
1
vote
1 answer

Inject inherited property values using CDI-Weld

I'm developing a basic Swing application and, even if I always tend to use Spring Ioc (with xml configuration) for dependency injection I want to give a try to CDI-Weld. Having the following structure done in Spring, the container creates a…
Aritz
  • 30,971
  • 16
  • 136
  • 217
1
vote
1 answer

CDI: Annotation to exclude class from scanning

I have a class which is only used optionally, loaded dynamically, when some other dependency is available. But CDI (Weld) scans it and reports an ugly error, see below. How can I get rid of it, ideally using some annotation? Registered contexts:…
Ondra Žižka
  • 43,948
  • 41
  • 217
  • 277
1
vote
0 answers

CDI/Weld, JSF and Google Cloud Endpoints on Appengine

I am trying to combine the above technologies. I have successfully integrated JSF and CDI/weld on google appeninge (thanks to some online tutorials). So, my basic setup should be OK. However, I cannot combine Google Cloud Endpoints into the mix…
1
vote
2 answers

Discovery beans from dynamically loaded jar in JBoss AS 7.1

My Question - Does anybody know how to get an instance of the Deployment interface in Weld? Ideally inside the beforeBeanDiscovery event? I'm trying to implement a plug-in system in my application where the jar is loaded by my war app. I'm using…
Ricardo Memoria
  • 454
  • 1
  • 3
  • 14
1
vote
1 answer

Jetty 8, Weld - Injection isn't working

I'm trying to setup a project using Jetty 8 as the server (jetty-maven-plugin:8.1.11.v20130520), Weld for CDI (weld-servlet:2.0.1.Final), Hibernate for JPA (hibernate-entitymanager:4.2.2.Final, hibernate-jpa-2.0-api:1.0.1.Final) and Jersey for…
1
vote
2 answers

Why is "eager" CDI bean hanging during deployment?

I recently switched from using JSF2 to using CDI/weld. I had 2 eager @ManagedBeans(eager=true) one of which has a list populated using a database query (JPA 2). It worked just fine. I switched to CDI and refactored those beans using the technique…
april26
  • 833
  • 3
  • 14
  • 27
1
vote
2 answers

CDI Query in JavaEE

Here's my scenario: public BaseJPARepository implements BaseRepository{} public AuthorizationsJPARepository extends BaseJPARepository implements AuthorizationsRepository{] public ClearingJPARepository extends BaseJPARepository implements…
1
vote
1 answer

Parallel Tests with Jetty and Weld

I want to execute unit tests on an embedded Jetty with CDI/Weld in parallel in the same JVM. For every test method a new jetty instance with a clean database is created. Execution in sequence works, however, in parallel I'm running into an…
Elmar Weber
  • 2,683
  • 28
  • 28