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

Parallel webservices access in a Weld CDI environment

We're developing a Web Frontend using JSF 2 and Weld Cdi on Tomcat. Now I've a problem executing multiple webservices in parallel to optimize the request time. The user may select mutliple items form a list. For each selected item, the process…
1
vote
1 answer

tomcat 7.0 + JSF + CDI support in intellij idea

I get this error during tomcat load: C:\Projects\asdf\ejb7\out\artifacts\ejb7_war_exploded\WEB-INF\lib\weld-se.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/el/Expression.class I've created project with web and…
Stepan Yakovenko
  • 8,670
  • 28
  • 113
  • 206
1
vote
3 answers

Converting from Seam to weld CDI

I am converting a project from Seam to CDI and I am quite new in these fields. I am stuck in converting @Startup, @Cretae, @RequestParameter , @Out , @AutoCreate ,@ Destroy tags, what is the alternative for these tags in Weld CDI?
Yashar
  • 1,122
  • 2
  • 15
  • 43
1
vote
1 answer

WELD-000315 Failed to acquire conversation lock

I'm creating a JSF 2 application using PrimeFaces 3.4.2 and CDI on JBoss EAP 6. The application has a section that uses a long running conversation for 3 pages. When the user navigates to the first page that uses the conversation they have 2 links…
jodt
  • 55
  • 2
  • 9
1
vote
2 answers

Weld injected HttpSession into the session scoped bean is null

I'm running GWT app on Jetty 6.1 with Weld 2.0. Got the next code: @SessionScoped public class SessionContext implements Serializable { @Inject private HttpSession httpSession; public SessionContext() { …
Minolan
  • 173
  • 3
  • 11
1
vote
1 answer

weld-se and netbeans: debugging not working

I am attempting to port a javaSE application to Weld SE to gain dependency injection support. The application starts and behaves correctly (I changed the main to an observer for the ContainerInitialized event, added the beans.xml and I am starting…
Emmanuel Touzery
  • 9,008
  • 3
  • 65
  • 81
1
vote
1 answer

Java Weld null expressionFactory

I use JBoss AS 7.1.1 + CDI (Weld) + JSF + Intellij IDEA. I created project and downloaded files: 1. jsf-api.jar 2. jsf-impl.jar 3. jstl-1.1.0.jar 4. weld-servlet.jar And everything is ok, until I start using Weld (create beans.xml and rename…
Shallow
  • 57
  • 3
  • 9
1
vote
0 answers

CDI conversation id is always 1 and NonexistentConversationException caught when trying to resume conversation

I have two JSF controllers and three backing beans which are sharing a CDI conversation. After the first controller is invoked, a call is made to a non-JSF web application to log the user on (OpenAM/OpenSSO) and then the second controller is…
Caleb
  • 524
  • 5
  • 18
1
vote
2 answers

weld-osgi getting started

Recently i read this documenentation and also this announcement, basically targetting the weld-osgi releases. I am really interested in how to get this to work in JBoss AS 7.1.x. Can someone please point me to a solution that works? Thanks
Paul Plato
  • 1,471
  • 6
  • 28
  • 36
1
vote
1 answer

Arquillian Weld-EE test setup with ant+ivy

I set up a project following the getting started guide. I have to use ivy. These are my dependencies:
Jan Galinski
  • 11,768
  • 8
  • 54
  • 77
1
vote
1 answer

What is CDI (Weld) equivalent for Guice's Names.bindProperties(Binder, Properties)?

There's a convenient method in Google Guice which allows binding of properties in one call: Names.bindProperties(binder(), myProperties); which are then injectable by annotation: @Inject @Named("my.properties.server.url") private String…
Boris Pavlović
  • 63,078
  • 28
  • 122
  • 148
1
vote
2 answers

How to retrieve all existing long-running conversations in Weld?

I'm writing application in JBoss 7.1.1.Final, Weld, Seam 3. I have following bean: @ConversationScoped public class ConversationBean implements Serializable { @Inject Conversation conversation; private Article article; ... } Now, the…
lukas
  • 545
  • 2
  • 7
  • 18
0
votes
1 answer

Basic Weld example with Embedded Tomcat not working

I am trying to use Weld with Embedded Tomcat (10.1.5) using a basic example and settings from official weld docs. This weld injection with same code works fine with Tomcat on Eclipse. However, on Embedded Tomcat, the injected bean is always null. If…
newuser
  • 76
  • 4
0
votes
0 answers

What's the last stable version of CDI/Weld we can use with latest Payara 4.x Server?

I use Payara Server 4.1.2.174 #badassfish (build 192) with default CDI/Weld 2.4.5 (Final), but I know there is newest versions of CDI/Weld. Is there a reliable new version of CDI/Weld to work with Payara 4.x? The default version of CDI/Weld has many…
0
votes
1 answer

is there a way to intercept the begin and end Conversation in CDI?

I would like to intercept calls to methods conversation.begin() and conversation.end(). To do this, I have developed an interceptor binding that I aim to dynamically assign to the Conversation class through a CDI portable extension. However, I can…