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
1 answer

A bug in Weld ( CDI implementation)?

OS: Windows 7 JVM: JavaSE 1.7 Java EE: JBoss AS 7.1.1 scenario: @Path("/test") @RequestScoped public class TestService { @Inject private Instance dummyinInstance; @Path("/execute") @GET public void execute() { …
Belin
  • 343
  • 1
  • 5
  • 17
0
votes
1 answer

Error Weld when starting WildFly 8 with Spring 3

When I update my application, from Jboss-as 7.1.1.Final to Wildfly 8.0.0.Alpha4, there was an error that I can not fix. I think this error is related to the new version of org.jboss.weld modules, which were 1.1 in the previous version of JBoss, and…
raul
  • 33
  • 2
  • 6
0
votes
1 answer

CDI Injection raises "WELD-001408" for multimodule project

I have a project with some web artifacts (.war) and I'm facing problems to Inject simple POJOs. The following code represents the simplest working case: .war (WAR1) public class MyManagedBean { @Inject private MyPojo myPojo; } POJO in…
axcdnt
  • 14,004
  • 7
  • 26
  • 31
0
votes
2 answers

Overridden @PostConstruct called twice on CDI view-scoped bean (Weld, Seam 3)

We're having problems with duplicate @PostConstruct calls on a base class hierarchy. Here's the base class first: public abstract class AbstractManager implements Serializable { private List entities; @PostConstruct // when annotated…
Kawu
  • 13,647
  • 34
  • 123
  • 195
0
votes
0 answers

Jboss as7 ejb injection inside cdi beans

I have developed an ear application using ejb3.1, jsf2.0 and cdi enabled. I have packaged my application as ear with ejb modules defining the session beans, ejbremote jar defining the remote session interfaces and the jpa entities, and the war…
maress
  • 3,533
  • 1
  • 19
  • 37
0
votes
1 answer

Weld 1.1 + Solder causing unsatisfied dependencies?

I was experiencing weird occurences of "WELD-001408 Unsatisfied dependencies". By all rules and docs, the dependency should be resolved. It was normal @Produces method and @Inject in some other bean. @Produces @ApplicationScoped public Properties…
Ondra Žižka
  • 43,948
  • 41
  • 217
  • 277
0
votes
2 answers

Error configuring Weld 2.0 project with tomcat 7 container

Trying to deploy a war project under tomcat7 and i am facing the following issue / error: (Only with weld servlet 1.1.12 final i was able to deploy the project) INFO:…
davidfdr
  • 129
  • 1
  • 3
  • 15
0
votes
2 answers

Weld Servlet not working when downgrading from JBoss AS 7 to JBoss AS 5

I have an app that runs fine on jboss7, it uses jee6 apis: jax-rs and CDI. Due to production limitations I was asked to adapt it to run on Jboss 5.1.0. To make things easy I created a minimal application, with only one service and one injection. It…
ciczan
  • 340
  • 2
  • 8
0
votes
2 answers

Weld @Inject ApplicationScope bean creates new instance in every inject point

I'm trying to understand CDI using Weld. Got the next structure: @ApplicationScoped public class MainFacade { @Inject private FooFacade fooFacade; private static int ins=0; public MainFacade() { super(); ins++; …
Minolan
  • 173
  • 3
  • 11
0
votes
1 answer

Servlet on Jetty 8 (non embedded!) + Weld for CDI

I want to deploy a WAR to Jetty 8. The WAR contains a simple servlet that has a dependency injected into it via CDI (Weld). All the examples/questions I've found online only seem to deal with embedded Jetty - nothing about just using Jetty as an…
Shan
  • 23
  • 3
0
votes
3 answers

Bootstrap Javafx 2.0 with Weld

I am trying to bootstrap a small javafx application using Weld-SE. I was able to run the application if I remove the @Inject annotation on the Menubar and instantiate it manually. But the moment I add @Inject, the application throws exception.…
ShaggyInjun
  • 2,880
  • 2
  • 31
  • 52
0
votes
1 answer

enable CDI injection into a bean created by a producer method

Producer methods are very useful for creating instances programmatically and publishing them in a context. The problem is that all properties of an instance created by new and returned by a producer method are not injected by CDI. In the Weld…
jactor
  • 1
0
votes
1 answer

In weld how do I initialize an object before its injected

I have a simple POJO class that I inject in to many places. There is no explicit Producer for it. I just do @Inject POJO mypojo and it works great. Now my problem is that I want to initialize the POJO object(which involves reading from a datasource)…
Suraj Chandran
  • 24,433
  • 12
  • 63
  • 94
0
votes
1 answer

Modifying class annotations using CDI

Trying to use CDI extension event ProcessAnnotatedType to change @javax.ws.rs.Path of JAX-RS resources. void process(@Observes ProcessAnnotatedType pat) { if (!pat.getAnnotatedType().isAnnotationPresent(javax.ws.rs.Path.class)) { …
deephacks
  • 151
  • 9
0
votes
1 answer

Weld on Weblogic 10.3.6

I am trying to run a application based on Weld, JPA2, Vaadin on Weblogic 10.3. My problem is that Weld seems to register all Beans but they get not injected into my servlets. Following log message is suspicious: 1433 [[ACTIVE] ExecuteThread: '6' for…
Christian
  • 3,503
  • 1
  • 26
  • 47
1 2 3
39
40