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
-
1
votes0
answers42
viewsOfficial Architecture -> Meta
The question I have is totally architectural. I will expose a case just below to further illustrate the doubt that I am tapping directly into my system. I have a feature that aims to register an…
-
1
votes2
answers578
viewsWhy can’t I upload static data to the JSF datatable?
This is my class: package com.algaworks.pedidovenda.controller; import java.io.Serializable; import java.util.ArrayList; import java.util.List; import javax.faces.bean.ManagedBean; import…
-
1
votes0
answers311
viewsProblem with Widfly
I am having an error starting the library project with Widfly 10. Until the part connecting with the bank was working, agr when connecting with mysql am having problems. I’ve already set up the…
-
1
votes1
answer90
viewsDoes not recognize my createQuery method
I am with a JSF2.2 project with CDI, and I have correctly configured my project for CDI, what is very strange is that the createQuery method is not being recognized, other times did the same way of…
-
1
votes1
answer216
viewsJpa does not create column @lob
I’m mapping a field @lob to save image to a table, but jpa creates the table, but does not create the column. I created the column manually in MYSQL, but then the bytes do not persist either. My…
-
1
votes0
answers120
viewsDAO Method Cannot Save Image
My bean class can already save the image in my specific directory,I know this because I did a test, but it only needs to be able to save the String that is the name of the file I do Fileupload in…
-
1
votes1
answer401
viewsHow to understand the error message?
How to understand this error message? mai 20, 2015 8:25:59 PM com.sun.faces.lifecycle.InvokeApplicationPhase execute ADVERTÊNCIA: /pages/produtoCadastro.xhtml @80,49…
-
1
votes1
answer184
viewsRepeated ID with facelets
The problem is that in a project I use facelets is telling me that there is a component with the repeated ID. Although I scanned the code behind the repeated ID, I couldn’t find it, so I believe the…
-
1
votes1
answer281
viewsConvertnumber JSF negative values
Negative monetary values when using the native JSF converter, <f:convertNumber type="currency"/>, stand with the character '-', before R$. For example: -R$ 56.134.726,99 .xhtml…
-
1
votes0
answers22
viewsAPI JMF or Something Similar Cross-platform
I have a project to do in java, I will need JMF to work with the media in general, the project is nothing more than a program to run the advertisements on TV’s that are in malls and etc. I was…
-
1
votes1
answer93
viewsLogic to inhibit record permanently
Guys I have a "big problem" and I can’t think of anything to solve it so I’d like your help. I have a desktop system that is the intermediary between the server and my web system. This desktop…
-
1
votes1
answer73
viewsTables not being generated - Hibernate
I have 2 tables of my software that are not being generated correctly. SQL is generated, but when checking in Mysql, not the encounters. If I change the tag to: <property…
-
1
votes2
answers53
viewsLoop counter is not incrementing
I’m having a hard time finding the error in a logic that I use for traversing an arraylist. List<Caneta> canetas = new ArrayList<>(); canetas.add(c1); canetas.add(c2);…
-
1
votes1
answer641
viewsPick up object by clicking on a commandLink in the Datatable
I’m trying to catch an object by clicking on a commandLink that is in each column of Datatable, but always from the nullPointerException error. Can anyone help? I’m doing it this way:…
-
1
votes1
answer74
viewsRecord method has no action and link of Dependent x Driver is not done
When developing a simple application where the dependent is linked to his responsible one who is a driver, when I click to create the link and record dependent nothing happens, only the following…
-
1
votes1
answer319
viewsProblem with JSF during form validation
I have a problem with the animal registration form: Follow the part of the diagram involved in the relationship regarding the form: The problem is that when I am registering an animal, I can put the…
-
1
votes1
answer1662
viewsJSF error: javax.el.Propertynotwritableexception
I have an error that I can not solve and do not know the reason Follow error and my classes and view below. type Exception report messageInternal Server Error descriptionThe server encountered an…
-
1
votes0
answers81
viewsJSF and JPA with Eclipselink: Inserting element twice in the database
I’m working on software and I’m having a certain headache to insert some related objects. It is inserting this object twice and the error is not viewable. To see the whole project, follow github…
-
1
votes1
answer531
viewsDatatable does not update immediately after "action"
I have a DataTable with some data when I select a table row and click on finish process that row is saved in my database with the status Finalizado and the Cargo user logged in but this row only…
-
1
votes0
answers225
viewsChange JPA/JPQL record
I am doing my first WEB project and I have a question about using JPA/JPQL/MERGE. The doubt is as follows: I need to change a record of a table, I created a datatable that returns to me a list of…
-
1
votes0
answers147
viewsProblem starting the Tomcat
good afternoon I have the following problem on my production server. I already installed Tomcat 8 and 9 to test, JDK 8, I set everything up straight (I believe) and one of my projects does not go…
-
1
votes1
answer933
viewsError in project pom.xml file
Hello, I have a problem that I could not identify, in my project an error appears in the file pom.xml, I already ran Maven updte in the project, but the error persists, and my repository is . jar is…
-
1
votes1
answer1203
viewsWELD-001408: Unsatisfied dependencies for type Servicelocator with Qualifiers @Default
I’ve been trying for a while to implement a JAX-RS (Jersey) server with Datasource, already migrated from Tomcat to Glassfish, and now from Glassfish to Wildfly 11, but I’m having the error below…
-
1
votes0
answers121
viewsInput spaces when writing something
I have an application in Java Web, I have an input text and I would like to put a button or something like that, because when I type something inside this input, if the user wants to go click this…
-
1
votes0
answers208
viewsError 404 Tomcat
I’m starting with Maven, I put the dependencies I want on pom.xml and created a page xhtml to test for error 404: The requested resource is not available. Nothing appears on the console, it’s blank.…
-
1
votes2
answers364
viewsDatatable of the first faces does not update selection variable
Based on the first example of the site Datatable Selection where a variable(linhaSelec) receives the value selected by clicking on a <p:commandButton/> I decided to mount my implementation but…
-
1
votes2
answers2639
viewsconfirmDialog does not work
I have a delete button inside my dataTable, but every time I click on it confirmDialog does not appear. I am doing as follows: <p:column style="width: 100px; text-align: center"> <p:button…
-
1
votes1
answer78
viewsError running web application
I installed Tomcat on a server and I am trying to access my application but always gives this error: The requested resource (/ProjetoAuditoria) is not available. When I Starto on my machine other…
-
1
votes1
answer521
viewsOnetomany mapping with HIBERNATE associative table - JPA
I need to do a hibernate mapping of a relationship 1:N in two tables, however there is an associative table that has as columns the ids of the other two tables. Example: The table Servicos may…
-
1
votes2
answers104
viewsSending Servlet attributes to more than one JSP?
I have a Servlet that does the following: L_sessao.setAttribute("Login", usuario); response.sendRedirect("InicioCliente.jsp"); It sends the user name to the Homeclient.jsp page, on this page I can…
-
1
votes0
answers38
viewsJava-ee, primefaces component order list
Has anyone ever worked with the first-face component orderlist? Because I want to use it in my project and I’m not getting it, could you help me? You are generating an exception and also do not know…
-
1
votes1
answer247
viewsHow to Enable Java EE in Apache Netbeans IDE 10
I downloaded the final version of Apache Netbeans 10.0 on official website, however Java EE is not enabled, I go to the IDE plugin itself, but the download option does not appear.…
-
1
votes1
answer31
viewsDifferent web applications use the same connection pool
Hello! I have two Webs applications that are connected to a single database in the bank, how do I make them enjoy the same connection pool? I create the c3p0 variables in the persistence.xml of…
-
1
votes1
answer256
viewsThe <p:datatable> is not paginated
Get a page that gets a stop. <f:metadata> <f:viewParam name="id" value="#{MyBean.MyObject.id}" /> <f:event type="preRenderView" listener="#{MyBean.exibir}" /> </f:metadata>…
-
1
votes1
answer105
viewsSub reports are on top of each other
Hello! My application has to make a report with two sub-reports,one of them stands on top of the other,q is the sub-report of knowledge, someone knows why? Code report knowledge: <?xml…
-
1
votes2
answers818
viewsReferencing CSS in jsp via$pagecontext.request.contextpath in tomcat8 does not work
I am using Tomcat 8. My css and js files do not load into jsp via $pagecontext.request.contextpath in tomcat8. I can only load css if I set the absolute path from the webapp directory.…
-
1
votes1
answer17
viewsType="datatime-local" does not take seconds
Soon the W3C went on to discontinue "datatime" and use "datatime-local", but I can’t take more seconds to make a specific report. Friends can help me?
-
1
votes1
answer55
viewsJakartaee vs Spring vs Java SE with JPA
Speak for me, baby? Reading the Oracle documentation I found the following excerpt: @Persistencecontext protected Entitymanager entityManager; Hence the EJB container will inject a standard Unit…
-
1
votes0
answers452
viewsHow do you save images within the project?
Greeting to all, I am working on a Java web project that is using JSF with Primefaces, Maven, CDI with JPA. My web application is successfully entering the records, the application is a news…
-
1
votes1
answer192
viewsHow to use the upload approach saving the path in the bank?
I created a Java web project that is using JSF with Primefaces, Maven, CDI with JPA. My web application is successfully entering the records, the application is a registration of news, where it is…
-
1
votes0
answers76
viewsException when running project
I have a project Maven where I tried to add a more recent dependency on JSF After these attempts the project always presented errors. I created a new project and copied all classes, pages etc. Now…
-
1
votes0
answers336
viewsProblem opening a modal
I’m using a framework called BootsFaces and every time I try to open a modal from a commandButton the modal opens but stays this way: As you can see the modal is not enabled. button that opens the…
-
1
votes0
answers120
viewsAdd new inputText to JSF page by pressing a key
I have a form where I can have several codes registered, I would like to provide only one inputText at first, if there is need to insert more than one code I press a hot key and then another…
-
1
votes1
answer188
viewsVraptor: conflict of routes
I am developing a news system for a client, and I am going through a difficulty, at the moment that I will record the news at the bank, the following message: java.lang.Illegalstateexception: There…
-
1
votes1
answer514
viewsThe find() method of my entityManager from DAO Generica is giving Nullpointer, how to correct?
The change of my DAO is like this: private EntityManager entityManager; public void alterar() throws Exception { System.out.println("T encontrada"); System.out.println("iniciando Alterar id: " +…
-
1
votes2
answers1849
viewsHow to understand shopping cart logic in a JSF project?
I’m developing a prototype of Ecommerce being that I’m still trying to learn the logic of shopping cart. By that link or this other of videos on Youtube it makes the following steps: It creates a…
-
1
votes1
answer555
viewsProblem with Primefaces autocomplete
I have a <p:autoComplete> working, and I have a commandButton that opens a dialog so that I can make a new registration. The dialog opens, I fill the fields but when saving this exception is…
-
1
votes1
answer268
viewscommandbutton executes method, but being null values. Why are inputstexts values not being assigned to class attributes?
In all the examples I saw of the code below, the normal one was to start the xhtml page to create a new client-like object. Through the values entered in the inputs set the attributes of this object…
-
1
votes0
answers152
viewsWhat to do when a <p:dialog> closes in less than a second?
I’m creating one to edit a client’s database. It loads the data with the values of the attribute of the object passed, but in less than a second it closes again. What to do? XHTML code (client…
-
1
votes2
answers722
viewsHow to edit a database value using JSF?
I’m trying to edit a database record using JSF. The logic is simple, there is a client list, and when you press the edit button in front of each client in the list, a form is opened, with inputTexts…