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
0
votes
0 answers

Named Bean not injected into another named bean

I am trying to inject a named bean in another one. When I try to access properties of the injected bean , it returns null which means that the injection fails. Here is the first Bean: @Named @SessionScoped public class FirstMBean { String…
Chouch
  • 63
  • 1
  • 1
  • 7
0
votes
2 answers

gradle test failing due to interceptor class not found

I'm working through the exercises in Beginning Java EE 7 except I'm trying to adapt them to use Gradle instead of Maven. For the chapter 2 interceptor exercise, I wrote this build.gradle: apply plugin: 'java' repositories { …
Allen
  • 478
  • 9
  • 21
0
votes
1 answer

OSGi + Weld: FrameworkUtil getBundleContext() returns null

I use Apache Felix and weld and I have two classes: @ApplicationScoped class A { private B b= new B(); } class B { private void foo(){ BundleContext bc= FrameworkUtil.getBundle(this.getClass()).getBundleContext(); } } Object is class A…
user2022068
0
votes
1 answer

Running weld osgi example with felix on java se

I want to do the following solution:Apache Felix + Weld 2.2.10.SP1 for Java SE. For that I want to run one of examples from weld archive - weld-osgi-paint. I use felix 4.6.1, java8 and I have the following bundles which I install and…
user2022068
0
votes
1 answer

Apache felix and org.osgi for weld cdi - constraint violation

I want to do the following solution:Apache Felix + Weld for Java SE. For that I want to run one of examples from weld archive - weld-osgi-paint. For now I have the following bunle…
user2022068
0
votes
0 answers

Pseudo Scopes in Spring

enter code here In JSR-346 (contexts and dependency injection), there is a concept of a pseudo scope. A pseudo-scope is annotated @Dependent and have a dedicated instance of a dependency for the object that needs the dependency. (I generalized it,…
emosms
  • 1
  • 1
0
votes
2 answers

MyBatis CDI beanManager.getBeans fails to find SqlSessionFactory bean in GlassFish 4 and 4.1

I have created a simple Java EE program to experiment with MyBatis but I've hit a problem using the MyBatis CDI module. I have followed the instructions outlined on http://mybatis.github.io/cdi/injection.html, but when my program tries to use…
Paul H
  • 2,104
  • 7
  • 39
  • 53
0
votes
0 answers

#{javax.enterprise.context.conversation.id} is always empty

I'm using this expression on my template.xhtml But when I execute the code the output is always Conversation []. Why is no rendering the returning value for this…
0
votes
2 answers

Deploying to Wildfly 8.2.0

I'm trying to deploy a GWT Errai application to Jboss Wildfly 8.2.0 Final, however, I am getting the following deployment error. Caused by: java.lang.ClassNotFoundException: org.apache.catalina.core.ApplicationContextFacade from [Module…
Magick
  • 4,603
  • 22
  • 66
  • 103
0
votes
2 answers

Jetty Maven plugin (jetty:run goal) + Weld CDI + JSF 2.2 = NPE on ViewScoped beans

Using the following (pretty up to date) components in the web application: Jetty maven plugin 9.2.6.v20141205 Weld CDI 2.2.9.Final Mojarra JSF 2.2.10 The app's web.xml contains the following…
dimitri
  • 874
  • 8
  • 11
0
votes
0 answers

Upgrading my weld-servlet dependency from 1.1 to 2.2.9 .. common error shows up

I'm getting started with some CDI stuff (coming from a Spring background.) I'm following some war examples online and they typically use an older dependency of weld-servlet such as 1.1.10.Final. When I use this dependency my sample app works just…
Rick Reumann
  • 383
  • 1
  • 3
  • 10
0
votes
0 answers

java.lang.IllegalStateException: Singleton is not set at org.jboss.weld.bootstrap.api.helpers.IsolatedStaticSingletonProvider$IsolatedStaticSingleton

I was created a JSF application using JBOSS tool and it worked fine.Then I added some libraries to my WEB-INF > lib folder and now it says an error as follows.What is the reason for it? INFO: Server startup in 7613 ms Feb 15, 2015 9:45:28 PM…
DnwAlgorithma
  • 119
  • 1
  • 4
  • 16
0
votes
1 answer

WELD-001437: Normal scoped bean class javax.faces.component.UIViewRoot is not proxyable because the type is final or it contains a final method

When deploying a dynamic web project with JSF facet to Eclipse+GlassFish, the following error occurs: The message says: WELD-001437: Normal scoped bean class javax.faces.component.UIViewRoot is not proxyable because the type is final or it…
kamil
  • 1
0
votes
0 answers

PropertyNotFoundException when changing JSF @ManagedBean to CDI @Named

I'm using JSF 2.2 + PrimeFaces 5.0 on WildFly 8.2 (Mojarra 2.2.8 + Weld 2.2.6). I've a JSF managed bean with @ManagedBean whose action is invoked by . It works fine. When I change it to a CDI managed bean with @Named, then it throws…
Rasshu
  • 1,764
  • 6
  • 22
  • 53
0
votes
2 answers

Injection failed with Jersey, Weld, and DeltaSpike

I'm working on a JAX-RS project. I uses Jersey, Weld, and DeltaSpike. @Path("test") public class TestResource { @GET @Path("now") public String now() { return new Date().toString(); } @GET @Path("myProperty") …
Jin Kwon
  • 20,295
  • 14
  • 115
  • 184