Most voted "java-ee" questions
Java Platform, Enterprise Edition, or Java EE (or Java Platform, Enterprise Edition) is a programming platform for servers in the Java programming language.
Learn more…631 questions
Sort by count of
-
2
votes1
answer180
viewsHow to choose which field to serialize - Jackson
I’m using Jackson to convert my objects into Json. The fields I don’t want to serialize milestone with the @Jsonignore annotation, but in some cases I wish I could serialize these fields. Is there…
-
2
votes2
answers444
viewsToo Many Hibernate+Mysql Connections error
I have an application in development in Java using Hibernate and Primefaces, on the item listing screen I have the option to do a search for some information in real time using multiple filters.…
-
2
votes1
answer1181
viewsJSF - java.lang.Illegalstateexception: This web container has not yet been Started
I’m developing a website in JSF but I’m new in Web and I don’t really understand how some things work. The site is a crud simple music and make calls to other applications in jar that are in the…
-
2
votes1
answer2148
viewsSpring Boot configuration error: org.springframework.boot.autoconfigure.Orm.jpa.Jpabaseconfiguration.jpaVendorAdapter
Hello! I am getting the following Stacktrace below when I start Tomcat with my web project after making the settings with Spring Boot. After I created the following classes below, I’m having this…
-
2
votes0
answers162
viewsHeroku does not work after adding dependencies to pom.xml (Maven)
I deployed a java project with Maven, it worked smoothly, but after I put the dependencies in the pom.xml file and push, Heroku no longer runs, not even "hello world". Follows as was pom.xml, then…
-
2
votes1
answer111
viewsDifference of Session in Java
What’s the difference of javax.enterprise.context.SessionScoped and javax.faces.bean.SessionScoped? Can anyone explain?
-
2
votes1
answer119
viewsRedo the Spring cache?
It is possible to schedule that the Spring cache is always redone at midnight? I read the Springs Cache Docs and I found nothing about how to get him to be regenerated.…
-
2
votes0
answers150
viewsMake wildfly lighter for a JSF application
I have an application in Java production, with CDI, JSF with primefaces and Hibernate running on a wildfly 10.1. This application is hosted in the localweb jelastic. But it’s consuming a lot of…
-
2
votes1
answer77
viewsHow to tell whom a class will extend at runtime?
I have the class public class Conhecimento{} This class extends from another class "Cteproc" Only this Cteproc class has "versions" example. V200.Cteproc V300.Cteproc My problem is that in creating…
-
2
votes1
answer667
viewsError changing Primefaces theme
Hello, I’m learning primefaces and I’m trying to change the theme of primefaces. For this I downloaded by Maven. The theme even appears in the dependencies. But the following message appears when I…
-
2
votes2
answers416
viewsUpload files and data SERVLET
How do I receive files and other parameters in Servlet? Follow the sending code: <form action="myservlet" method="post" enctype="multipart/form-data"> <input type="text" name="mytext">…
-
2
votes1
answer317
viewsException returned null Java Web
Can someone help solve an exception being generated in my application? I’m developing a Java web application, I just put one input and a selectonemenu in the application to try to save the data, the…
-
2
votes1
answer167
viewsAction on the button to center text
Someone could help me as I could do so when I type any text into an input, then I have a button on top of my input in which I want to center this typed text. Could someone help me like I can do?…
-
2
votes1
answer626
viewsIncrease content font written in input
Good morning, I am new to Java Web programming, I am developing an application in which I want to write an input word, I want to select that word and increase that source, how can I do that? I’m…
-
2
votes2
answers172
viewsDoes the garbage collector really exist? Why then is there a memory leak in runtimes that use it?
I’ve heard of memory leakage in Oracle.DataAccess.dll and in large applications developed for runtimes with garbage collector. If the garbage collector exists in those runtimes, why there is memory…
-
2
votes1
answer383
viewsHow to assign new Selectonemenu value to entity?
I have a table with several columns, between them I have one that is a SelectOneMenu, the table is loaded with a list of Inscricao. In the status column of the application I have a SelectOneMenu…
-
2
votes0
answers74
viewsJpa/Hibernate causing connection Leak
I have a large project with several classes.There is a connection Leak, every time I make a request, it creates connections coming an hour to hang because of the max of the connection pool. Pojo…
-
2
votes2
answers390
viewsUse or not use "Backing Bean"/"Manage Bean" with JSF?
On page 64 of the Algaworks e-book "Java EE 7, with JSF, Primefaces and CDI", explains the use of the backing Beans, which are managers Beans, responsible for controlling the components of the JSF…
-
2
votes1
answer473
viewsProblem with redirect JSF+Primefaces
I have a menu where I have a submenu Register and inside it a menuItem Usuários in my template, and also have a menuItem Sair. The problem is that the exit only works on the screen Home, which is…
-
2
votes1
answer2035
viewsError importing Maven project into Eclipse: No Marketplace Entries found to Handle
I am new to Javaweb programming and when installing the eclipse and importing my project created by Maven, accuses the error below: No Marketplace Entries found to Handle Maven-antrun-plugin:1.8:run…
-
2
votes1
answer542
viewsHow to redirect the vraptor web.xml link to a Controller?
I have the following codes below: web xml.: <error-page> <error-code>404</error-code> <location>/error/404</location> </error-page> <error-page>…
-
2
votes2
answers215
viewsGraphics in Primefaces
I have a method that makes a query in the bank and returns me a List, in that List I have three data that interest me: Funcionário and StatusTarefa. Example: I have 2 Employees performing various…
-
2
votes1
answer114
viewsavoid stackoverflow while reading and popular relationships
I’m making a library that populates any model with random values, to be used in tests, but it turns out that when I have a relation like below, I get a StackOverflowException Author @Entity public…
-
2
votes1
answer203
viewsDelete method is not called when I click on a commandButton
I have an delete button that sits inside a column of dataTable and when I click on the same the method that is responsible for the user’s deletion is not called. datatable: <p:dataTable…
-
2
votes2
answers426
viewsLoad a large volume of data into a datatable
I’m having the following problem, I can load the data into my dataTable but it gets very heavy, until the IDE one hangs. How could I fix this problem? I heard about Lazy but I don’t understand how I…
-
2
votes2
answers918
viewsProblem creating Maven project on Eclipse Mars
I was using the Maven in the Eclipse Luna Normally, I decided to test the new version of Eclipse and when I create a project Maven some exceptions are thrown: Description Resource Path Location Type…
-
2
votes1
answer3456
viewsHow to configure Log4j to generate a file in the WEB-INF folder with different dates?
I want to generate *.log or *.txt files with different dates (e.g., file-log-22-10-2015.log) within the WEB-INF folder of my Javaweb project I created the log4j.proprieties file as follows:…
-
2
votes0
answers635
viewsHow to fix encoding problems on a web application page?
I am developing a JAVA application with the Spring framework v3.1.0, however, when trying to access a page shows error of encoding: Evolu㧠How to solve this problem? I found several ways, but none…
-
2
votes1
answer969
viewsTable paging with Angularjs
I was trying to put a pagination in my table, after a help I managed to partially solve the problem, but it was not the way I expected. I can get the currentPage every click on <pagination>…
-
2
votes1
answer498
viewsjava.lang.Classcastexception: Converter JSF error
I am implementing the Converter below: @FacesConverter(forClass = Cargo.class) public class CargoConverter implements Converter { @Inject private CargosRepository cargoRepository; public…
-
2
votes2
answers236
viewsDatatable does not populate object? JSF
I have the following problem: I have a DataTable which is populated with entities of the type Login that belongs to Usuario as a relationship. A button called Add Login calls the method addLogin()…
-
2
votes1
answer2069
views -
2
votes0
answers414
viewsHow do I clear a <p:messages> from the form by Bean?
I have the following situation: 1. I have a xhtml with <p:tabView> with id="tab"; 2. In this tabview I have 3 tabs and each one with its photons and <p:messages> with their respective…
-
2
votes0
answers458
viewsConfigure jboss to request digital customer certificate
I am making a web application using jboss EAP 6.1. As one of the requirements, the system must perform user authentication via digital certificate. For this I have properly configured jboss to run…
-
2
votes1
answer740
viewsHow to make Hibernate read a table in a Mysql database and write to another table in Postgresql?
I need to consult a database in Mysql and take a table from there to write to a database in Postgresql by Hibernate/JPA. I set up the persistence.xml as follows: <?xml version="1.0"…
-
2
votes2
answers1712
viewsHow to name a Hibernate/JPA Constraint?
Using the class: @Entity public class Pessoa{ @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long idPessoa; @Column(nullable=false, unique = true) private String nome; @OneToOne…
-
2
votes1
answer2032
viewsHow to create style condition in Jaspersoft Studio?
How can I put a style condition in Jasper Studio checking if the value is positive put green in foreground, if it is 0 or negative put red in foreground? I pass the following to the datasource…
-
2
votes1
answer38
viewshttp get method called automatically
Good morning guys, I’m implementing the get a Servlet method here with a very simple logic. If the user passes a url in the default: ".../entities/id", the editing form should be opened with the…
-
2
votes2
answers836
viewsJSF - How to pass a Bean function as an argument to a Javascript function?
I’d like your help. I am developing a system in JSF, and I have the following need: I would like to pass a bean function as an argument from a function of mine in JS, so that I certain future moment…
-
2
votes0
answers80
viewsCDI Beans inside . jar file are not found by container (Unsatisfied dependencies)
I created a Java project to lib other projects, decreasing code duplicity between projects. This lib project is exported to jar to be included in Web projects. In the Web projects (from which these…
-
2
votes2
answers645
viewsWhere should I place the Try/Catch blocks using MVC?
I am making a web application in java and I have some doubts regarding the block Try catch, I am using the standard MVC and I have the following codes: Controller: try { String pesquisa = "%" +…
-
2
votes1
answer1016
viewsCDI Java - Configuration
I created a simple design containing a Test class and a Testeinterface interface. In the interface test I created any method just to test. In the Test class I only put @Inject Service service; When…
-
2
votes1
answer218
viewsCheck if there is a file in a particular jsf rendered folder
People I am saving image in a certain project folder and I need to check if this file exists in the folder. Was using a command as below:…
-
2
votes0
answers223
viewsGet User name in jsf session
I’m having doubts about how to get the username in the session. I’m using Spring Security 4.2 I have my User Class import javax.persistence.Entity; import javax.persistence.GeneratedValue; import…
-
2
votes2
answers79
views -
2
votes1
answer90
viewsConvert Arraylist to Object[][]
How to convert an Arraylist to a 2D Object. My Current Code: ArrayList<String> a = null; a = new ArrayList<String>(); a.add("ABC"); a.add("DEF"); a.add("1"); a.add("1"); //Converter para…
-
2
votes1
answer593
views -
2
votes0
answers119
viewsPrint with Java with IP-configured printer
Well I needed to solve a problem which is, since the software is going to run in the cloud, I was thinking of sending the information to the printer via the IP-configured printer on the machine,…
-
2
votes2
answers2340
viewsError: "java.text.Parseexception: Unparseable date: "2018-11-14T12:12"
I have the following data insertion interface: The comments below represent attempts to fix the error but none worked. In HTML the type is datetime-local, in the bank the type was created as…
-
2
votes0
answers30
viewsJAX-RS Controllers or Resources compared to Spring MVC
I came from Spring and I’m having a hard time understanding how JAX-RS works in a Java EE application. I have an application running on a Wildfly application server. I created a class to use JAX-RS…