jboss-weld Questions

11

Solved

I'm trying to debug Maven tests in Eclipse. When I launch tests with the maven option maven.surefire.debug, I get this error : ERROR: transport error 202: bind failed: Address already in use FATAL...
Hazelhazelnut asked 8/12, 2011 at 8:46

6

Solved

Is it possible to use CDI to inject parameters into method calls? The expected behaviour would be similar to field injection. The preferred producer is looked up and the product is used. What I w...
Starter asked 23/5, 2012 at 10:32

4

Solved

I have a @SessionScoped @Named bean with a @Producer method for a user object: @Named @SessionScoped public class UserBean implements Serializable { //... @Named @Produces @LoggedIn @SessionScop...
Ormiston asked 17/4, 2012 at 6:4

3

Solved

I am using weld,a RI of CDI as dependency injection component in my JSF-EJB-JPA web app. I see in my project we have empty beans.xml in META-INF/beans.xml in ejb.jar and WEB-INF/beans.xml in my WAR...
Mendes asked 8/8, 2013 at 16:26

6

Weld, the JSR-299 Contexts and Dependency Injection reference implementation, considers itself as a kind of successor of Spring and Guice. CDI was influenced by a number of existing Java framew...
Anoint asked 16/4, 2010 at 10:22

2

Solved

I have created a Java project to serve as a lib to other projects, reducing code duplication between projects. This lib project is exported to jar to be included in Web projects (WAR, not EAR). In...
Arria asked 24/8, 2016 at 0:12

7

Solved

I wrote a simple program in java web forms but i am receiving the following error: WELD-000072 Managed bean declaring a passivating scope must be passivation capable. Bean: Managed Bean [class B...
Hic asked 18/3, 2012 at 17:21

3

Solved

I am using Weld as CDI implementation. My integration test, that tries to assemble object graph instantiating Weld container works well, when I have empty beans.xml in src/test/java/META-INF/beans....
Glanders asked 24/10, 2012 at 19:28

5

Solved

I am building a Gradle-based Java SE application built on top of Hibernate as my ORM of choice. My plan is to use weld-se to be able to use CDI annotations for injections of EntityManagers througho...
Wildebeest asked 15/5, 2015 at 9:16

3

Solved

In a project using JPA, I commonly use @Inject EntityManager em; in order to obtain such an object. I saw that many code snippets in the web instead use: @PersistenceContext EntityManager em; ...
Tasimeter asked 16/5, 2013 at 22:9

3

Solved

I am able to deploy a RESTEasy application working well with Weld (meaning my CDI works) but I am having some trouble with my integration tests. I get this error: org.jboss.weld.exceptions.Deploym...
Unsocial asked 24/1, 2017 at 18:48

6

Solved

How can I programmatically inject a Java CDI 1.1+ managed bean into a local variable in a static method?
Partly asked 17/7, 2014 at 8:30

5

Solved

I'm facing the following issue: in one page, I list all users of my application and have an "edit" button for each one, which is a "GET" link with ?id=<userid>. The edit page has a &l...
Lytic asked 30/7, 2011 at 20:46

1

Solved

I am getting an error when deploying my application as follows.. Caused by: org.jboss.weld.exceptions.AmbiguousResolutionException: WELD-001318 Cannot resolve an ambiguous dependency between [ Pro...
Digit asked 29/8, 2011 at 20:5

3

Solved

I have an @AroundInvoke REST Web Service interceptor that I would like to use for logging common data such as the class and method, the remote IP address and the response time. Getting the class a...
Alcaeus asked 8/7, 2013 at 5:47

3

Solved

I'm trying to use CDI for my JSF/Java EE application. I have the following class hierarchy: /** * base controller class * also contains some final methods and an inner enum class declaration */...
Florin asked 1/10, 2010 at 14:44

1

Solved

I have a question about the correct format and usage of the bean.xml file. In my projects I typically used this content for my bean.xml files (no explizit bean declaration used): <?xml version=...
Wording asked 5/10, 2015 at 6:57

3

Solved

When debugging I set a breakpoint to a line that calls a method from another (own) class. On step into I get a Source not found in the editor with the title MyClass$Proxy$_$$_WeldClientProxy.myMeth...
Thrombocyte asked 16/10, 2013 at 11:32

4

Solved

I really need your help. I'm working on this problem for weeks or months now. I apologize for the long post, but I want to explain the problem and my settings as precisely as possible. My JAVA EE ...
Papst asked 31/7, 2012 at 12:42

2

I am struggling to understand the effective lifecycle of a @Dependent scoped bean in both CDI 1.0 and CDI 1.1. My experiments so far have lead me to the following conclusions: A @Dependent scoped...
Zamia asked 18/7, 2014 at 10:4

3

Solved

I'm running into a issue with CDI Injection into a Weld container in JBoss 7.1.1 I've got the following object model : @Stateless class ServiceEjb { @Inject A a; } class A { @Inject B b; } clas...
Fuchsia asked 8/3, 2013 at 17:59

1

Solved

I just updated my Wildfly-8.1.0.Final installation to 8.2.0.Final and deployed my WAR application and ran into deployment error. It said ERROR [org.jboss.as.controller.management-operation] (Deplo...
Hutchinson asked 30/11, 2014 at 17:13

3

Solved

I seem to be having a problem where I have an a4j:commandLink on a rich:popupPanel but the action is not firing. The xhtml looks as follows: <rich:popupPanel id="rate-panel" modal="true" height...
Kuehl asked 1/8, 2011 at 19:38

4

I'm working on a Java EE application, primarily JAX-RS with a JSF admin console, that uses CDI/Weld for dependency injection with javax.enterprise.context.ApplicationScoped objects. Minor debugging...
Niedersachsen asked 23/6, 2011 at 19:16

6

Solved

I'm migrating my app from GlassFish 3.0.1 to GlassFish 3.1.1. Deployment fails, with the following error messages: SEVERE: Exception while loading the app SEVERE: Exception while shutting down app...

© 2022 - 2024 — McMap. All rights reserved.