Questions tagged as 'cdi'

0
answers

Error running application with command "local heroku"

I'm trying to deploy a JSF, CDI, and JPA application in Heroku, but at the time of running local with the "local heroku" command it gives this error: link GRAVE: A child container failed during start java.util.concurrent.ExecutionExc...
asked by 10.03.2018 / 01:14
1
answer

javax.ws.rs.client.Client set timeout

I have a web application where at a certain point I make requests in endpoint using JAX-RS RestEasy as follows: // Outros códigos acima @Inject private Client client; ... WebTarget webTarget = client.target(URL).path(ENDPOINT);...
asked by 07.02.2018 / 21:05
0
answers

CDI + DAO GENERIC Unsatisfied dependencies

Personally I'm getting an exception when injecting my DAO. Unsatisfied dependencies for type [ProjectDao] No bean matches the injection point. ProjectDao.class public class ProjectDao<T> implements Serializable{ private f...
asked by 03.02.2018 / 19:54
1
answer

Error when saving in bank (Unable to build entity manager factory)

I'm trying to implement a registration but when I click the button to save the following error appears in the console: dez 18, 2017 3:49:14 PM org.hibernate.ejb.HibernatePersistence logDeprecation WARN: HHH015016: Encountered a deprecated java...
asked by 18.12.2017 / 19:10
1
answer

CDI is not working with Tomcat7 by maven + JSF

I'm not getting the CDI to work, I'm using the maven tomcat7 plugin. The beans.xml is created and in the WEB-INF folder, context.xml is also in the META-INF folder, I also put the dependencies of the CDI, both implementation and specification...
asked by 03.11.2017 / 19:31
1
answer

Tomcat v8.5 does not boot, displays error: Child container failed during start

I'm doing a college work, a simple crud with JSF2, Hibernate, Primefaces and CDI. But at the moment I'm going to start the project in Tomcat I get the following error: GRAVE: A child container failed during start java.util.concurrent.Execution...
asked by 27.08.2017 / 19:01
1
answer

Problems with CDI + Weld on Wildfly

I'm trying to create a EntityManagerProducer and it seems like in the examples found on the internet something very simple, but it's not being. Then it concludes that I'm doing something wrong following my coding and configuration. Ah...
asked by 30.06.2017 / 19:06
1
answer

How to integrate CDI-Unit with Jersey Test Framework?

Hello. I'm working on a ws rest with CDI and Jersey. I want to create a unit of tests with JUnit and due to the CDI I ended up using the CDI-Unit Runner. I found the CDI-Unit simpler than WeldJUnit4Runner. Now, I need to add the Jersey Tes...
asked by 27.05.2017 / 08:12
1
answer

Injection dependency of .jar subproject

I have a EJB application that has a lib jar as a built-in dependency for code reuse. My .jar has a class that has been annotated with @RequestScoped , and I need to retrieve it in my ejb. I'm using the following line, does...
asked by 24.03.2017 / 21:39
1
answer

How to use CDI in WebService?

I am trying to inject a @Injection ed bean into a WebService , but the bean is always null. Dependency injection is working on my project. When I use @Injection inside a Managebean for a jsp page everything is ok. @WebService p...
asked by 15.03.2017 / 20:30