Questions tagged as 'java'

0
answers

Error when searching the database using Java, Hibernate and Spring. Use of Beans and Autowired

I'm trying to search my program, but errors appear:    org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'courseSpringDataApplication': Unsatisfied dependency expressed through field 'personReposi...
asked by 11.03.2018 / 22:26
1
answer

Implementing ContainerRequestFilter with Jersey

I'm doing the token implementation through this tutorial , but when I try to implement the ContainerRequestFilter the program issues the error below. The error occurs only with the implementation of the class. How can I modify my settings so...
asked by 17.03.2018 / 15:30
0
answers

Error: "No Persistence provider for EntityManager"

I have a project in Eclipse with an application that persists in the Postgresql 9.6 database through Hibernate, but Java is not recognizing the persistence-unit name that is set in persistence.xml , even this name by checking with the name pa...
asked by 17.03.2018 / 09:59
0
answers

Migrating web system in Tomcat for glassfish error with SSL

Hello, I have a system running on Tomcat with SSL, I migrated it to Glassfish, when I send to the server without security (SSL) it works normally, the problem occurs when I enable the security on the server and try to deploy it. I think the p...
asked by 20.03.2018 / 20:42
0
answers

Duvida Dialog + SelectOneMenu JSF

Hello, I'm trying to open a dialog with a selectonemenu, depending on what the user selects. My SelectOneMenu is like this <p:column headerText="Mecânica"> <h:commandButton> <h:selectO...
asked by 20.03.2018 / 19:18
1
answer

Execute actions from the selected item in JComboBox

I wanted to assign value to another class, whichever is selected in JComboBox . For example, if the "Active" item in a combo is selected I wanted to assign a value to a string of an external class if the user had put the combo item "Idle"...
asked by 13.03.2016 / 21:29
0
answers

Error uploading Maven application using Hibernate: org.apache.openejb.OpenEJBException

I'm having problems uploading my application to tomcat7 with maven managing dependencies. I know the error is due to not finding the class specified, but since I do not have much experience with hibernate, I would like to know: Is it necessary t...
asked by 09.03.2018 / 14:31
1
answer

Wrong time recording

I have these 3 classes as a template. Object: import java.io.Serializable; import java.util.List; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; i...
asked by 08.03.2018 / 12:53
0
answers

Display a list of files in a directory using Java Web

Good afternoon, I have a directory called "musics" with 23 files. I'm using this class: public listarArquivos() throws IOException { File file = new File(diretorio); File musicas[] = file.listFiles(); int i = 0; for (int j =...
asked by 14.03.2018 / 19:56
0
answers

I can not remove element from list

When I upload photos using FileUpload , I can not delete from the list where I am adding. I use this StremedContent to be set in the contentNova list every time the method is called by FileUpload . The problem is when I de...
asked by 07.03.2018 / 19:04