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

JSF ViewDeclarationLanguage is null, when using Weld on Glassfish 3.1.2

I just tried to add a composite JSF component into my weld project on glassfish 3.1.2. This always fails with a null pointer exception. I traced down the problem and found out, that it results from the following code within the class…
Thomas
  • 41
  • 2
  • 4
0
votes
1 answer

WELD-001303 No active contexts for scope type javax.faces.flow.FlowScoped on direct access

I am playing with JSF 2.2 (MyFaces implementation v2.2.6 and Weld v2.2.7.Final for CDI) since the beginning of the week and I'm facing the following problem : I can't directly access a flow entry point with my brother. For example : My webapp…
Aki
  • 21
  • 1
  • 3
0
votes
1 answer

JBPM 6.1.0 kie workbench not working - Did not find a way to clear Weld's event observer cache.

I downloaded JBPM 6.1.0 and followed the installation steps and started the demo using "ant start.demo". The server started fine. But when I tried accessing the KIE workbench, the UI does not work or come up for most of the links. I find the below…
0
votes
2 answers

Problems with CDI - ( Weld + TomCat7 + JSF )

I'm starting a project with CDI using weld, and am getting the following error when I try to injection: @Inject private UserRepository repository; Console: INFO: Starting Servlet Engine: Apache Tomcat/7.0.12 13:16:22,859 INFO servletWeldServlet:57…
0
votes
1 answer

vraptor/weld project only works on mac

the very same codebase works with no errors on the same tomcat version, just java version remains as the main difference. This stacktrace [ http://pastebin.com/cPCTJGw4 ] is all that i got when i tried to run the project on fedora with java 7…
Sombriks
  • 3,370
  • 4
  • 34
  • 54
0
votes
1 answer

Java Weld CDI alternative Factory

In my production code I have an factory, this factory should be mocked in my test code. I have an interface which both factories implement: public interface FtpTransferFactory { FtpTransfer createFtpTransfer(String host, String…
Velth
  • 1,108
  • 3
  • 15
  • 29
0
votes
2 answers

Java CDI not kicking in

So, my first attempt at CDI kind of went to the dogs. I've read a ton of articles and tried a variety of simple to complex examples without success. Here is my current, simple example. What am I doing wrong? Maven Project: beans.xml (located in…
krystah
  • 3,587
  • 2
  • 25
  • 43
0
votes
1 answer

Xerces XML parsing issue: 'No two Schemas should share the same targetNamespace'. How to fix it?

I am trying to get a web application to run on a weblogic server, but it throws an exception telling that there were more than one xml file using the same namespace. I've searched all XML's and I couldn't find any! It throws the exception that…
rornellas
  • 71
  • 1
  • 10
0
votes
1 answer

Cannot migrate JSF + CDI Project from Tomcat to Wildfly

I am migrating my project which is JSF + CDI from Tomcat+Weld to WildFly, so I removed the web.xml configurations required to have cdi working with tomcat and also removed Weld dependencies from my pom.xml. The problem is I can't have my project…
Marcos J.C Kichel
  • 6,887
  • 8
  • 38
  • 78
0
votes
1 answer

CDI cross BDA bean injection in Wildfly 8.1

I have an EAR file with the following structure: lib jar.jar Test1 Test2 ejb.jar Test1Impl war.war Test2Impl TestServlet The jar.jar contains two interfaces Test1 Test2 The TestServlet injects Test1 which resolves to Test1Impl only if I…
Christian Beikov
  • 15,141
  • 2
  • 32
  • 58
0
votes
1 answer

CDI - Injecting Objects into EJB class by Using Producer Methods in Weblogic 10.3.6

I would like to use CDI to inject objects into an EJB class using a producer method in Weblogic 10.3.6. Weblogic 10.3.6 is a Java EE 5 container and therefore does not support CDI out-of-the-box. To move to Weblogic 12c (which supports CDI…
rudolfv
  • 797
  • 1
  • 9
  • 22
0
votes
1 answer

Configure log4j when using Weld CDI

I'd like to programmatically adjust my logging file locations. Thus I want to overwrite the default values in my log4j.properties file. This is not opposing any problems I am using LogManager.resetConfiguration() and…
Velth
  • 1,108
  • 3
  • 15
  • 29
0
votes
1 answer

HTTP Status 500 - WELD-000335: Context is already active

I am using Tomcat 7 + weld-servlet-2.2.3 and this Context is already active error is frequently occuring in the website. I am using three filters: org.jboss.weld.servlet.ConversationFilter and org.apache.catalina.filters.SetCharacterEncodingFilter,…
Paramesh
  • 567
  • 7
  • 25
0
votes
0 answers

Glassfish4, CDI, anonymous classes

Q: Are you using Glassfish 4 and CDI, and have no problems with anonymous inner classes? If so, please give me a hint which version of which CDI framework you are using. Background: Glassfish4 brings its own CDI framework, which is Weld 2.0…
TAM
  • 1,731
  • 13
  • 18
0
votes
0 answers

Inject between jars

I have a Jar, Helper project, which has a process manager, which controls the execution of threads etal. Where it receives an interface that performs the execution when fired. I have another Jar, Service project, which implements the interface…