Questions tagged [jboss-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). CDI is the Java standard for dependency injection and contextual lifecycle management, a Java Community Process (JCP) specification that integrates cleanly with the Java EE platform. Any Java EE 6-compliant application server provides support for JSR-299 (even the web profile).

http://seamframework.org/Weld

See also

393 questions
0
votes
1 answer

Useful environment for CDI / weld web-applications

I am new to weld and consider what environment is useful for a web-application using CDI (Weld). I want to use JSF or Wicket for presentation and JPA/Hibernate for my persistence layer (including Transaction-Management). The obvious scenario is to…
mastercrusty
  • 1
  • 1
  • 1
0
votes
0 answers

Java SE injecting services from another maven module

I have problem with dependency injection from another .jar module. When I try to inject services from that project, I get error WELD-001408: Unsatisfied dependencies for type MyService with qualifiers @Default at injection point…
deem
  • 1,252
  • 1
  • 19
  • 38
0
votes
0 answers

Can not inject HttpServletRequest object using @Context in jersey class in wildfly-8.2

I am using a jersey-1.19 in wildfly-8.2 with java 7. In one of the methods of the jersey class I am trying to inject HttpServletRequest using @Context annotation. While accessing servlet request object I am getting following error: The…
0
votes
0 answers

JBoss Weld throws strange exception: getTargetClass (duplicate method)

We have a regular CDI bean where we declare a method like: @Named @ViewScoped @LoggedIn public class ComplianceRuleDocumentationManager extends BaseStatusShownDataManager { ... @Override protected Class
Kawu
  • 13,647
  • 34
  • 123
  • 195
0
votes
0 answers

Arquillian Weld EE NullPointerException (invoking method) EAR

I am trying to test with Arquillian + WELD EE in an (ShrinkWrap)EnterpriseArchive. But I am getting a NullPointerException when I start invoking the method. My pom.xml arquillian-weld-ee-embedded
Albert Bos
  • 2,012
  • 1
  • 15
  • 26
0
votes
2 answers

Can't serialize (json) object because weld creates a proxy "Unrecognized field "handler"

I have many DTO classes i my project that are serialize to json to be used for rest endpoints. All extend (direct or indirect) an abstract class "Linkable" that holds the id of the objects and creates self link using injected "UriInfo". To get this…
dermoritz
  • 12,519
  • 25
  • 97
  • 185
0
votes
1 answer

Can you get jboss weld to continually scan for newly added classes during development?

i'm setting up a JSF2 project on tomcat 6.0.29 with weld. also using jrebel - not sure if that makes a difference. In testing out JRebel i can see that updating classes that existed when the container was started are handled fine. however, if i ADD…
0
votes
1 answer

WELD-001408: Unsatisfied dependencies for type HttpSession

I have this (notorious by now) @SessionScoped bean in my JSF project: @Named(value = "appointmentFormBean") @SessionScoped public class AppointmentFormBean implements Serializable { @Inject private transient AppointmentService…
vasigorc
  • 882
  • 11
  • 22
0
votes
2 answers

How to avoid ConcurrentModificationExceptions when using EJB3.1 @Asynchronous

[My Setup: Java EE 6 application, with EJB3.1, CDI/Weld, JSF2 running on Glassfish 3.0.1] I read some articles about the new @Asynchronous methods in EJB3.1, but none of them mentioned the dangers of asynchronous methods and what you really have to…
Wolkenarchitekt
  • 20,170
  • 29
  • 111
  • 174
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

Getting reference to WebServletContext on wildfly

I am attempting to deploy a soap webservice on wildfly 9.0.1-Final. I try to access the WebServletContext by resource injection but it is always null. I do have a beans.xml file in WEB-INF. Following is the class definition. loadProperties is called…
Jeff Gaer
  • 134
  • 1
  • 11
0
votes
1 answer

CDI: get reference to beanManager via static method

I use weld+paxcdi on java se. I can get the reference to beanManager using @Inject BeanManager beanManager; However, it's clear that I can use this way only in objects that are managed by CDI container. How can I get reference to beanmanager in…
user2022068
0
votes
1 answer

What is the difference between weld-osgi, pax-cdi and fighterfish

As I understand these 3 projects are links between CDI and OSGI but what is difference between them?
user2022068
0
votes
1 answer

How to cascade dependency resolution w/ CDI (WELD)

I would like to have a central weld container that holds all my services and so on. This container would however be wrapped by a second container which contains local settings. The goal is if a dependency cannot be found in the outer container then…
mP.
  • 18,002
  • 10
  • 71
  • 105
0
votes
1 answer

CDI and web fragments: not working without beans.xml

I have three maven projects: core (packagetype=JAR) with src/main/resources/beans.xml bean-discovery-mode="annotated" webfragment (packagetype=JAR) with src/main/resources/beans.xml bean-discovery-mode="annotated" webproject (packagetype=WAR) with…
Ginkgochris
  • 455
  • 4
  • 25