weld Questions

1

Solved

This might be a silly question, but I am puzzled by it and I could not find any clear explanation anywhere. HK2 is a dependency injection framework implementing JS330, the foundation of Glassfish...
Spartan asked 13/8, 2014 at 15:56

1

TL;DR We get @SessionScoped bean instances injected that have the content of another session lately we have been experiencing serious problems with two of our customer systems. Our customers a...
Nobukonoby asked 29/7, 2014 at 14:4

3

Solved

How to fully disable WELD on WildFly. I don't need it, because I use another DI framework. Exception 0 : javax.enterprise.inject.UnsatisfiedResolutionException: Unable to resolve a bean for 'or...
Puga asked 13/2, 2014 at 14:15

1

Solved

I have an application which is packaged in an EAR containing many JARs (with EJBs, libraries, 3rd-party-libraries, ...) and a single WAR (again containing some other JARs). The application is deplo...
Nims asked 2/4, 2014 at 9:41

1

I am trying to define a startup class for my application in Weld CDI with @Singleton and @Startup annotations (running on tomcat 7), but my PostConstruct method is never called. Here is my Startup...
Hudson asked 7/5, 2013 at 7:55

1

Solved

I'm trying to combine RESTEasy with Weld on AppEngine but having troubles to do constructor injection. I've added the RESTEasy CdiInjectorFactory context param and the Weld servlet listener. My R...
Mydriatic asked 30/1, 2014 at 21:13

1

Solved

I'm using Jetty 9.1 and Jersey 2.5.1. Jersey has built-in support for Jetty, so I start my server like that: public static void main(String[] args) { URI baseUri = UriBuilder.fromUri("http://loc...
Pyrone asked 8/1, 2014 at 15:8

1

Solved

I'm running an application in the following environment. GlassFish Server 4.0 Mojarra 2.2.4 PrimeFaces 4.0 final PrimeFaces Extension 1.1.0 OmniFaces 1.6.3 After adding OmniFaces, the following...
Actinal asked 4/12, 2013 at 10:11

3

Solved

I want to use weld-se for unit testing CDI. However, I am stuck with this problem that Weld cannot resolve beans. I created a mini-project to demonstrate the problem with gradle for building. I ha...
Padlock asked 29/9, 2013 at 17:2

2

I ran into this confusion today. Quote from Weld's documentation (right under Section 9.3), By default, all interceptors are disabled. We need to enable our interceptor. We can do it using bean...
Clostridium asked 15/10, 2013 at 6:2

1

Solved

I want to use interceptors in a Java-SE application and I am using weld as CDI implementation and i'm testing this here: The Main-Class: public static void main(String[] args) { WeldContainer ...
Madelinemadella asked 13/7, 2013 at 8:28

4

When I use field injection in a class, like so: @Inject private MyClass myField; can I make any assumption about the "safe publication" status of this field? Or put differently, and assuming tha...
Sumerology asked 13/12, 2012 at 16:43

3

Solved

I'm trying to set up a very simple implementation of weld in java SE. I have the extension class: public class MyExtension implements Extension { void beforeBeanDiscovery(@Observes BeforeBeanDi...
Chilly asked 25/1, 2013 at 11:50

© 2022 - 2024 — McMap. All rights reserved.