Questions tagged as 'ejb'

0
answers

How do I inject EJB's that call other EJB's in a JUnit test class?

I'm trying to test a class in JUnit. It turns out that the class I am testing has several EJB's that call other EJB's. How do I inject JUnit EJBs into a test class that calls other EJB's? Thank you.     
asked by 10.10.2018 / 17:20
0
answers

Caused by: javax.ejb.CreateException: Error checking if entity exists: java.sql.SQLSyntaxErrorException: ORA-01722: Invalid number

Hello, I have a problem inserting data using EJB. Here is the error, and my classes until then by insertion. Does anyone know what the problem is? ERROR: 16:35:48,011 ERROR [OrganizationUnit] Error checking if entity exists java.sql.SQLSyn...
asked by 10.07.2018 / 21:52
0
answers

How to block 2 users on the same screen - JAVA

I need to block the access of 2 people on the same screen, for example, two people try to access the registration of a certain product, the second person trying to enter must receive a warning that someone is accessing this register. Anyone have...
asked by 06.07.2018 / 17:56
1
answer

ActiveMQ on Wildfly 12

I'm migrating an application to Wildfly 12 and I'm not able to connect in my queue using ActiveMQ. Log: 20:27:21,862 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 12.0.0.Final (WildFly Core 4.0.0.Final) started in...
asked by 11.07.2018 / 01:48
2
answers

Target Error Unreachable, identifier 'ClienteBean' resolved to null

System error: Error message:    Caused by: javax.el.PropertyNotFoundException: /index.xhtml @ 22.72   value="# {ClientBean.client.name}": Target Unreachable, identifier   'ClienteBean' resolved to null at   com.sun.faces.facelets.el.TagV...
asked by 28.09.2017 / 18:06
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
0
answers

error when trying to upload application using Wildfly

I'm learning EJB, and I got a project that uses EJB, but I decided to use Wildfly. when I upload the application it presents an error. service org.wildfly.request-controller.control-point."livraria.war".undertow (missing) dependents: [ser...
asked by 19.03.2017 / 00:16
1
answer

how to create a bean that returns an entityManeger

I'm using springboot + ejb + cdi + wildfly10 I already created the datasource and I configured it, I was in the interface of the wildfly and the DS is connecting normal. Dao @Repository public interface PessoaDao extends JpaRepositor...
asked by 03.02.2017 / 20:31
1
answer

cdi does not find daos (spring data + ejb + cdi)

The situation is as follows, I'm using the spring boot and the first thing I did was disable the cat tone and use wildfly (10) I used spring data to create Daos public interface AutoresDao extends JpaRepository<Autor, Long >{} Then...
asked by 27.01.2017 / 01:09
0
answers

Access Remote EJB inside another EJB

Good afternoon everyone. I'm in a project that needs to do a lookup of a remote EJB inside another EJB in a different container. TheproblemiswhenItrytodothelookuptheInitialContextisgivingthefollowingerror.11:12:15,377ERROR[stderr](http-lo...
asked by 24.08.2016 / 22:41