Questions tagged as 'java-ee-7'

2
answers

sending email in java does not show the error when it can not send the same

I created a system where the user himself registers and the password is sent by email. If you can not send the email, it generates an error and does not create the user, notifying the user. It was working while you were using your own mail serve...
asked by 08.03.2017 / 15:12
2
answers

Is it possible to limit the amount of rows of a class attribute that is a list via JPQL?

I have the following query in JPQL FROM User u INNER JOIN FETCH u.enderecos e WHERE u.id =:id ORDER BY e.id DESC A user can have more than ten addresses, so we want to bring only ten addresses and if the user wants, he loads ten times. I...
asked by 25.08.2014 / 19:58
1
answer

Problem in the initial configuration of the project of the 2nd edition JavaEE book with JSF Prime Faces and CDI

Galera, I began today to read the book that I mention in the title of this question. Following step by step I created the server in the eclipse, the project and the initial servlet following the instructions in the book. But following the...
asked by 23.03.2015 / 12:12
1
answer

Lazy loading in PrimeFaces DataTable does not bring log data

I have a lazy load on DataTable of PrimeFaces, and on this table I upload I want to edit a record. Clicking the line will open a dialog with a form to edit that record. However, when you click the line, it opens...
asked by 19.08.2018 / 21:11
1
answer

Spring, Angular JS and exception handling in the Service layer

I have an application that uses jasper-reports version 6.2.0 with spring-mvc version 3.2.14, java-ee-7 , tomcat 8 and on the front end we use angularjs . The requests rest are made via ajax . The application is all set to receive o...
asked by 04.12.2015 / 13:44
2
answers

Extract JDBC Connection from EntityManager using JTA

In a JavaEE environment, is it possible to extract the JDBC connection ( java.sql.Connection ) using JTA ? I have a datasource in WildFly, where I inject as follows: @PersistenceContext private EntityManager entityManager;...
asked by 08.01.2018 / 19:47
1
answer

Spring and Jasper - Browser does not understand streaming for download

I have an application that uses jasper-reports version 6.2.0 with spring-mvc version 3.2.14, java-ee-7 , tomcat 8 and on the front end we use angularjs . The requests rest are made via ajax . Spring perfectly understands the object...
asked by 01.12.2015 / 18:25
0
answers

Exception trapping for logging, using AOP with CDI in Java EE 7

Below I have part of a class, of which I want to eliminate the repetitive logging code through AOP. /** * Javadoc omitido */ public abstract class JpaDao<T extends LongIdentifiable> implements GenericDao<T> { @Overr...
asked by 14.05.2015 / 21:38
1
answer

omnifaces does not recognize CDI configured in tomcat

Good morning, everyone. I'm doing the book project "algaworks-ebook-java-ee-7-with-jsf-primefaces-and-cdi-2a-edicao-20150228" and I'm having trouble adding omnifaces . When I go up tomcat, I get the following error: ... INFO: WELD-ENV-001...
asked by 26.05.2016 / 15:49
1
answer

Is it possible to inject a bean into a singleton with enum?

We have a system that uses Struts 1 and singletons based on enums. Now we have a dependency that was written using Spring 4.3.6.RELEASE which should only be used with other systems that also use Spring, so all declared Spring dependencies hav...
asked by 04.03.2017 / 03:23