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
-
0
votes1
answer65
viewsInjection of dependencies failure
I am new to the world of Hibernate and when I run this application, I get the following exception (error refers to persist EntityManager): java.lang.NullPointerException Caused by:…
-
0
votes1
answer226
viewsHorizontal Scroll Bar, selectOneMenu - Primefaces
Good Morning, I am developing an academic project using JAVA EE, JSF, Primefaces, CDI, Hibernete among other technologies... The layout is responsive and I’m using Panelgrid to organize the form…
-
0
votes0
answers397
viewsChat in Spring JSF and Primefaces
I need to develop a chat for our website. Developed in: JSF 2.2 Srping 4.2 Hibernate 5 Primefaces 5.3 Css bootstrap I already downloaded a project from github, it works cool but is very poor, wanted…
-
0
votes1
answer147
viewsApplication works in eclipse and stops working after generating JAR executable
I am working on two apps here in the company that are giving me a certain headache for a reason that the solution should be simple but I am not able to locate the error, the two applications work…
-
0
votes1
answer1115
viewsHow can I take values from selected checkboxes and send as a List to Spring MVC?
All right? I’m having a doubt, I’m developing a system using Spring MVC and HTML 5 in View,e como renderizador estou utilizando o Thymeleaf. I’m trying to get all the selected values from a set of…
-
0
votes0
answers109
viewstag p:commandButton does not do what is in managedBean
I’m starting now at jsf primefaces and I’m in trouble. My commandButton is not executing the method that is in managedBean and is not shooting anything on the console when you click on it (even when…
-
0
votes1
answer219
viewsJava Poi does not download
I’m using the poi 3.15 library to generate excel on a web system, but I’m having trouble downloading the file, locally it works but when I publish it does nothing. I put it at the beginning like…
-
0
votes1
answer38
viewsError 404 while running jersey on apache tom-cat
I’m using jersey more every time I run error: 404 in apache tom-cat. package br.com.gomes.LojaDeVendas.util; import javax.ws.rs.ApplicationPath; // chamando o pacote do service import…
-
0
votes1
answer57
viewsURI Rest with Httpservlet
So, guys, I’m developing a mini framework for study purposes, using the Java front controller, and I came across the following problem. First of all I’ll explain how it’s working. I embed the Jetty…
-
0
votes0
answers61
viewsError: HTTP Status 500 - org.json.Jsonobject cannot be cast to jdk.nashorn.api.scripting.Jsobject
In my java system appeared this error: I’m sweating the POSTMAN tool to study the case. HTTP Status 500 - org.json.Jsonobject cannot be cast to jdk.nashorn.api.scripting.Jsobject Code: import…
-
0
votes1
answer158
viewsHow to Insert List with JPA
Good afternoon! I am making a web service that receives a Json from the application, disembowels and inserts into the database. I can disembowel normally, the problem occurs at the time of entering…
-
0
votes1
answer1126
viewsHTTP Error Status 405 Servlet
I’ve been doing the "5.5 First Servlet" exercise of the Caelum FJ21 Java Web booklet, "http://localhost:8080/fj21-agenda/oi" to access the page occurs error: HTTP Status 405 - HTTP method GET is not…
-
0
votes1
answer97
viewsPassing Parameters between a jsp and two servlts?
I have a doubt perhaps a little difficult to be clarified!!! I’m using a programming methodology called MVC, as everyone knows, and in this situation (Java EE) in the controller is the Handler…
java-eeasked 7 years, 8 months ago DeathProgrammer 1 -
0
votes1
answer38
viewsUcanaccess problem in Select with Between Dates
I am having a problem when performing a query having as condition a period of two dates, this query in MS Access works perfectly however via code with ucanaccess library I get the error of 'Unknow…
-
0
votes1
answer294
viewsJSP with Servlet
I’m trying to get Servlet to work as a controller I was following the booklet from Caelum but I can’t find the error the jsp to Servlet @WebServlet(urlPatterns = "/LoginInfo") public class LoginInfo…
-
0
votes1
answer46
views -
0
votes1
answer479
viewsFile path (Java Web)
I’m working on a web project and I’m having a problem with files(java.io.File). The problem is only when running the web application, if it is Java Application the problem does not exist. When…
-
0
votes1
answer100
viewsTransfer to "dd/MM/yy" format
I’ve been doing the exercise "6.4 Optional exercises: List of contacts with scriptlet" of Caelum and there is a question that says so : "2) Note that the date appeared in a complicated way to read.…
-
0
votes1
answer48
viewsValue of h:selectOneMenu is not being set
I’ve created JSF forms several times, but I’m not understanding why value that selectOneMenu not being defined ("set"). <h:form> <h:selectOneMenu id="nova-matriz-select"…
-
0
votes1
answer316
views -
0
votes1
answer292
viewsEditing a record with Daialog primefaces framework
I’m a beginner in the java and java web world, starting with jsf, primefaces and I’m having a problem that I’m not able to solve. I have a datatable listing some data, I have the ajax event to…
-
0
votes0
answers47
viewsI cannot Update my Object after being recovered
I am trying to update my form after recovering an object and I cannot. My DAO public List<Contato> listar() { List<Contato> contatos = new ArrayList<>(); String sql = "select *…
-
0
votes1
answer307
viewsProblem with Firebird Hibernate bank connection
I have an application in java that provides Rest services with Servlets and Hibernate, which at first works perfectly. I can make thousands of requests to various services that recover information…
-
0
votes0
answers390
viewsMaven plugin build error
I use the following plugins to compile and run my web project in Intellij IDEA: pom.xml //Código do pom.xml omitido . . . <dependency> <groupId>javax.servlet</groupId>…
-
0
votes2
answers2434
viewsError while booting application with Spring Boot
I am creating an application using Spring Boot with JPA. When I go up the application, the following message is launched: Description: Cannot determine Embedded database driver class for database…
-
0
votes1
answer664
viewsValidation of fields with Javascript in JSP
function validar() { var nome = document.getElementById("nome_passageiro").value; var data = document.getElementById("dt_nascimento").value; var cpf = document.getElementById("cpf").value; var…
-
0
votes1
answer550
viewsSeparate content in the CSS menu
I want to leave the links of the pages Control Drivers,Control Passengers,Control Racing, the menu a little more separate but spaced, but I’m not getting. <%@page contentType="text/html"…
-
0
votes1
answer24
viewsError syntax in query with Postgresql JSP sort
I made a select in the database in which will make a query according to name, and order it but when executing select happened the following error. public List<Motoristas>…
-
0
votes1
answer372
viewsEntering data automatically when loading the JSP page
I am developing a web application using jsp, in which I register a mototrista but soon when loading the jsp page the application already tries to register alone the driver data, thus giving the…
-
0
votes2
answers238
viewsIs it possible to reuse the parameters of a Query in JPA?
Hello, I have a question regarding Parameters of the object Query in the JPA. I am implementing pagination of my tables using the Primefaces with LazyDataModel and in the function I use to make the…
-
0
votes1
answer56
viewsWhen returning validation error in the form, object gets the entered values
On the screen I have a datatable that I fill with a list of objects. Using f:setPropertyActionListener i set a list object to an auxiliary object and show it in a dialog. In the save method I speak…
-
0
votes1
answer135
viewsI cannot put Servlet value on the JSP page
I am trying to validate the login and password of the user, in which if you do not enter the login and password fields a message will appear on the screen "Please fill in the login fields or…
-
0
votes1
answer191
views -
0
votes0
answers234
views -
0
votes0
answers19
viewsMake Global selection in the App
I wanted to know how to make the selection of the global year in the application and work with the data only with the selected year. Do I have to make Managedbean Applicationscope? How do I navigate…
-
0
votes2
answers460
viewsNo result when sending data from a JSP form
I’m trying to make a mini-login screen, get the form compare data and after that redirect to a page JSP. <html> <head> <meta http-equiv="Content-Type" content="text/html;…
-
0
votes1
answer734
views -
0
votes1
answer1037
viewsDynamic Table with Ajax and JSP
I am learning Java Web and would like to know if they could help me in the following: I have a form that I insert data into the database, and below it a table in which I list what was entered into…
-
0
votes1
answer119
viewsDoubt about Filter - JSP
well I’m learning JSP and I’m trying to make a filter where the user is not logged in it redirects to a login page, and I’m not getting it. NOTE: I created a controller Servlet that makes Dispacher…
-
0
votes1
answer50
viewsError Returning Query Using Like
I am trying to make a jpql query with like using JPA. However, it is not working. User class repository public class UsuarioRepository extends RepositorioGenerico<Integer, Usuario> { public…
-
0
votes1
answer434
viewsDifficulty generating a JSON object in the correct order
I am trying to generate a JSON object by following this model: { "schemas": [ "urn:ietf:params:scim:schemas:extension:oracle:2.0:OIG:User", "urn:ietf:params:scim:schemas:core:2.0:User",…
-
0
votes1
answer353
views -
0
votes1
answer257
viewsAssemble a product table as a java jsp showcase
I’m having a hard time presenting a showcase product list using Java and JSP. I can get the data, but I don’t know how to fill this table using the <c:forEach> My table would have this…
-
0
votes1
answer270
viewsUpload JSF File with ajax
I’m trying to upload any file by the element h:inputfile jsf itself, and, I try to do this with ajax, but when I try to upload this error appears in the browser console... Uncaught TypeError: Cannot…
-
0
votes0
answers642
viewsHow to fix in my code: Null Pointer Exception
my database has those responsible with values of "Supervisor" and "Manager". However, I do a search to get the Employees responsible and no return. See my getResponsaveis method in my class "Maid.":…
-
0
votes1
answer34
viewsHow do I make a for in a list and change results using javaEE
I have an object called (Bank) that has several accounts, with balance in these accounts I make payments of various expenses. what I want is to get all the expenses paid and to give low in the bank…
-
0
votes0
answers68
viewsError executing project in Tomcat
Hello folks I’m trying to run a Javaweb project on Tomcat, but when I run it gives this error: HTTP Status 404 - /Drugstore/faces/templates/modelSystem.xhtml type Status report message…
-
0
votes2
answers214
views -
0
votes1
answer592
viewsHow to use Mysql in Java EE?
I have a java (desktop) application that does some operations in writing the logs to a table in Mysql, I need to do a page that will show me this log. I did some tests, but did not succeed. I am…
-
0
votes1
answer442
viewsSend login and password in Javamail email
I am developing a web application using jsp and Servlet and I would like that when sending the email an image is passed and the login and password but the email only send the image and does not send…