Questions tagged as 'java'

1
answer

How to manipulate multiple banks with Hibernate?

I'm testing Hibernate and I ran into a question. I have the following configuration: hibernate.cfg.xml <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration...
asked by 30.11.2018 / 15:47
2
answers

Specifying an EJB-client with Maven

I am not able to use the interfaces of an EJB-client generated by Maven. I have basically 2 separate projects with different functions. An EAR that contains EJB's and a WAR that uses EJB's interfaces to the EAR package. Following structure...
asked by 31.01.2014 / 16:55
0
answers

Problem to write foreign key in table

I'm developing a java web project - using Spring, Thymeleaf, Html, Mysql. In this project I have two classes that are related by foreign key. (Technical and Cargo). In my view (addTechnical.html) I created a combobox using select to fetch the...
asked by 18.08.2018 / 04:11
0
answers

Error for importing JDBC from sqlServer with Maven

In my web java application, I needed to add a connection to a sql server database, so I put it as maven dependency as described below: <dependency> <groupId>com.microsoft.sqlserver</groupId> <artifactId>...
asked by 06.08.2018 / 17:00
1
answer

Spring - dependency injection into Thread

I need a little help. I'm doing some tests with Spring Boot and I have my services + some processes that I want to run in thread. Each thread will run its own service. When I do service dependency injection for my main class and step into...
asked by 15.08.2018 / 19:46
0
answers

Problems running Java Application in Docker

I have the following problem. I created a container with 1GB of memory and 16GB of Swap, I'm using Oracle JDK 8 Update 171 (64bit) with Debian 9. Set the Java_OPTS parameters for the JVM to read CGROUPS. The container is rising correctl...
asked by 06.08.2018 / 22:20
1
answer

Reporting problems with JasperReport

In my work, I'm developing a Java EE application, with web service REST (Jersey), Hibernate and JQuery on the front end. All of my system requests use ajax and I'm having trouble generating the report and displaying it on the screen for the user...
asked by 01.08.2018 / 19:52
1
answer

Error: Could not parse configuration: hibernate.cfg.xml

I am developing a Java Web application using Hibernate to persist the data in MySQL. At the time of testing hibernate for class main, the following error is displayed on the console: jul 18, 2018 4:12:44 PM org.hibernate.annotations.common.re...
asked by 18.07.2018 / 20:53
1
answer

How to transoform JSON into an array of objects of a specific class, and does this class have compound attributes?

I encountered the following problem when trying to transform a String JSON into object list. I have the following situation: I have a Response class that has some attributes, among them a list of " Post ", an object of cla...
asked by 17.05.2015 / 05:09
1
answer

Retrieve value from PATH environment variable in Linux using Java

I did not find a good topic on this subject and decided to create this question for those who are experiencing this problem. When using System.getenv("PATH") , all values of this environment variable are not listed. Tested points: Exec...
asked by 19.10.2018 / 19:21