weld Questions
1
I'm developing a webapp with NetBeans and Glassfish 4.1.1. and I'm using JSF and CDI to manage the backing beans for the facelets. Since shortly after changing anything in the code I always get an ...
Stomatology asked 19/3, 2016 at 17:29
2
I am trying to configure Jetty with JSF and Weld CDI. After following this manual, I stumble upon the following stacktrace:
Caused by: java.lang.IllegalStateException: Singleton not set for STATIC...
Egger asked 22/3, 2016 at 21:34
1
Whenever I startup GlassFish 4.1, I get the following two warnings in my GlassFish log:
WELD-001700: Interceptor annotation class javax.ejb.PostActivate not found, interception based on it is not ...
Raneeraney asked 15/12, 2014 at 5:17
3
Solved
I am using code like below:
public Configuration {
private boolean isBatmanCar = someMethod(...);
@Produces
public Car getCar(@New Car car) {
if(isBatmanCar) {
car.setName("BatmanCar");
}
...
Internationale asked 10/4, 2014 at 8:16
1
I am using Weld SE to use CDI in my application. Since some libraries may have @Inject annotations and and don't want to let Weld scan all the libraries. Therefore I wanted to exclude certain packa...
2
Solved
When trying to deploy an ear we get the infamous WELD-001408 (see below for stacktrace).
Problem: It seems that WELD can't inject an EJB via @Inject into a CDI managed bean (!= @ManagedBean) in a ...
Wyck asked 3/12, 2015 at 11:51
2
Solved
Wildfly 8.2.0
I have a Stateless EJB and an interface.
@Local
@Stateless
public class Bean implements IBean{
...
}
@Local
public interface IBean {
...
}
But I get a WELD Error. If Bean doesn't...
2
Solved
I would like to inject constant string message to managed bean in JSF web application using CDI, here is producer class:
@Named
@RequestScoped
public class StringProducer {
@Produces
@Named("me...
Carbon asked 6/2, 2014 at 23:26
3
Solved
I have a web project using Resteasy (which in turn uses Weld) and is deployed to Tomcat 7.0.22 (I put the specific version here in case this issue is particular to this version).
I have a ServletC...
1
In my project , I use JSF+JPA+CDI+WildFly 8.2 in the persistence layer. I have a BasicDao , like this:
public class BasicDao<M, K> {
private org.jboss.logging.Logger logger = org.jboss.log...
Attached asked 13/7, 2015 at 3:26
1
I have a class which I want to be a bean
public class SomeBean{
public SomeBean(){
//default constructor
}
public SomeBean(String someStr){
//constructor with arguments.
}
}
In order to cr...
3
In CDI 1.2 there is a way to check if a class instance is proxified? I need this because I need to get the name of original class, not the proxy name.
@Inject Bean bean;
public void sysout() {
/...
2
We are using Wildfly 8.2.0.Final, Maven 2.2.1, Seam 2.2.0.GA, and Weld 2.2.6.Final.
We have an EAR file with a legacy WAR, a new WAR, and a bunch of other modules. The legacy WAR relies on Seam, b...
2
Solved
I have a question regarding the lifecycle of session scoped CDI beans.
As far as I understand, a session scoped CDI bean is constructed by the container when the session starts and destroyed when t...
Vortex asked 21/5, 2015 at 20:53
1
Solved
The setup
I have a Wildfly 8.2.0.Final application server running a cluster in domain mode using the full-ha profile. The cluster consists of two instances of wildfly, master and slave, each runni...
Gennie asked 7/5, 2015 at 8:38
2
Solved
I am trying to use Weld-SE for dependency injection in a dropwizard application. I can bootstrap Weld and inject in the Application class like so:
public class App extends Application<AppConfig...
Instep asked 4/11, 2014 at 23:27
1
Solved
I found How can I inject a data source dependency into a RESTful web service with Jersey (Test Framework)? but I think I'm gonna ask a little bit different question.
This is a follow-up question o...
Rigorous asked 23/4, 2015 at 9:13
1
Solved
I was using,
Mojarra 2.3.0-m01
OmniFaces 2.0.
PrimeFaces 5.1 final
PrimeFaces Extension 3.0.0
GlassFish Server 4.1
And other Java EE artifacts.
Injection points in @FacesValidator like as fo...
1
I configured Jetty 9.2.5 + Weld 2.2.7 (currently the latest versions) as described by the Weld documentation.
Everything works fine, except the lookup of the BeanManager by JNDI. Lookup of other J...
1
Solved
I'm using Omnifaces 1.8.1 and Whenever I deploy my application to Glassfish I get the following warning which causes some delay in the deploy process.
Warning: WELD-001519 An InjectionTarget imple...
2
Solved
What is the scope of an interceptor in CDI?
aka, is this legal? Would I get the same instance of this interceptor every place it's invoked?
@RequestScoped
public class SalesForceControllerInterce...
Melena asked 19/7, 2014 at 16:32
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
4
Solved
I'm getting BusyConversationException while navigating through pages in my jsf project. This mostly happens if the user tries to navigate to another page during an ajax call. This also happens when...
Iota asked 3/12, 2012 at 10:38
3
Solved
We are in the process of disentangling a classic legacy monolithic EAR-packaged Java EE application. Our (most complex) component wiring pattern is as follows: component A 'requires' interface X, w...
Junia asked 26/7, 2013 at 8:41
3
Solved
I got a stupid problem when deploying my Java Application on JBoss. Before I changed my source code using an interface class everything was fine. So here is my problem:
public interface FWInterfac...
Deutero asked 9/5, 2014 at 10:4
© 2022 - 2024 — McMap. All rights reserved.