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
answers142
viewsProblem rendering JSF page
I have a very "boring" problem, yesterday I had a system JSF working perfectly with all pages opening correctly. When I enter the system today the page is like this: No component of Primefaces or…
-
1
votes1
answer1066
viewsFormat date in Angular for Java.util.Date
I have the following date generated in Angularjs: 2015-09-14T18:38:03.637Z when I try to give a POST the following error happens in the backend: Caused by: java.text.Parseexception: Unparseable…
-
1
votes2
answers237
viewsWhy isn’t jsf recognizing Istener in the Bean?
Why jsf is not recognizing the Bean Reader? My bean: /** * Listener que escuta a mudança do tipo de Solicitante * * @param event */ public void mudarSolicitante(ValueChangeEvent event){…
-
1
votes2
answers290
viewsWhat is the life cycle behavior of JSF 2 when validating mandatory fields?
I have a customer registration form with two fields, the first field is the CPF with mandatory and the second Name with optional. When editing a client with CPF and Name populated, delete the two…
-
1
votes1
answer1317
viewsHow to solve the date validation problem - Calendar - Primefaces?
Loading the date in a Calendar (Primefaces) normally loads: Code: <p:outputLabel value="Data de Nascimento" for="data-nascimento" /> <p:calendar id="data-nascimento" locale="pt"…
-
1
votes1
answer297
viewsError when injecting object: returning null
When I inject an object into the class it returns null, it seems that it is not instantiated. Exception in thread "main" java.lang.NullPointerException at…
-
1
votes1
answer281
views@Inject for manually instantiated object?
I have a class called Application which is a listener, it instantiates objects of ServidorRadius where it needs to access the repositories that are injected with CDI, however radiusRepository is…
-
1
votes2
answers112
viewsjava.lang.String cannot be cast to com.sisEnade.tcc.modelo.Questao
good afternoon. I have the following error: java.lang.String cannot be cast to com.sisEnade.tcc.modelo.Questao However, I was unable to resolve the error. The goal of the implementation is to create…
-
1
votes1
answer72
viewsHow to view Questions recovered from a DAO on the same JSF page
good afternoon. I have a page called simulated.xhtml in which I receive some parameters (Filter) to make a query in the database according to the filter. Everything is already working, what I wanted…
-
1
votes3
answers959
viewsHow to make a simple JSF download?
How to make a simple JSF download? I have a list of attachments on <p:dataTable> and would like to implement a simple download. I implemented with <a href>, the link about the file name…
-
1
votes1
answer324
viewsTarget Unreachable, 'reply' returned null - Selectoneradio
I’m not getting the value of mine selectOneRadio, comes as null: <p:dataTable id="exibePerguntas" var="questao" paginator="true" rowsPerPageTemplate="2,3,5,10,12" paginatorPosition="bottom"…
-
1
votes1
answer568
viewsJava/eclipse does not recognize Path GET annotation
I am developing a Restful application, using eclipse and jersey (No use framework). But I’m having a problem with @Path annotations, @GET. When I use these annotations there is an error in the line…
-
1
votes3
answers3098
viewsHow to use <f:setPropertyActionListener> with Passthrough Elements in JSF 2?
I am using Passthrough elements in my JSF project, and I need to do something similar to this: <h:commandLink action="#{meuBean.acao()}" value="clique aqui"> <f:setPropertyActionListener…
-
1
votes0
answers177
viewsProblem with table generation (tutorial algaworks)
I’m reading the book Java EE 7, with JSF, primefaces and CDI. I got to the configuration part of Hibernate, but I’m having problems. I configured my application in a J2EE environment, with JSF and…
-
1
votes1
answer769
viewsHow to decrypt encrypted email in SHA-256?
I’m encrypting an email and saving it in the bank, how do I decrypt that same encrypted email. Follow the code I used to encrypt. public String getEmailCriptografado(String email){ email =…
-
1
votes1
answer177
viewsMaven Spring MVC + JPA Project
I’m new to Spring MVC, created an example Maven project for Spring MVC using Hibernate and JPA. I found some problems when configuring persistence.xml but I could not use dartasource managed by…
-
1
votes1
answer463
viewsLifecycle of @Applicationscoped at Ear
I have an application with several WEB modules and an EJB inside an EAR as shown below: In the EJB module I created a class annotated with @ApplicationScoped, my goal is for this class to store…
-
1
votes0
answers46
viewsApplication does not starta struts2 and spring4 listeners
I’m using struts2 + spring4 server-based jboss 7.1 on my application. As reported in the title, I’m not getting up the application because the listeners They’re not being squeezed. Someone can tell…
-
1
votes1
answer431
viewsJPA / Hibernate - Lazyloading Onetomany duplicating records
Well, I have the following structure: public class FinCxaTransacaoGrupo { @Id @GeneratedValue(generator="gen-uuid") @GenericGenerator(name="gen-uuid", strategy = "uuid2") @Type(type="pg-uuid")…
-
1
votes1
answer174
viewsHow to configure Jboss AS 7.1 with Demoiselle 2.4.1 to operate with distributed transactions?
Hello My scenario: JSF/Demoiselle application that invokes an EJB method, both hosted on a Jboss AS 7.1.1 server. During Insert and update operations on a CRUD page, the Demoiselle application has…
-
1
votes1
answer365
viewsHow to read properties file to configure JPA?
I have a file . properties to configure my project’s database. However, I cannot read the file. Someone gives a force? Entitymanagerproducer @ApplicationScoped public class EntityManagerProducer {…
-
1
votes0
answers396
viewsJson returns empty (web service with Jersey)
I am developing a web service using Jersey and the Json returned by one of the methods is coming empty. The strange thing is that the other methods are following the same logic and are working…
-
1
votes1
answer809
viewsHow to map an html page in Spring MVC
I have a Spring MVC project that will provide the Rest service to the front-end. But when creating a page . html the project does not recognize it and always from 404. Is there any configuration I…
-
1
votes1
answer67
viewsRefresh page inserts again
I’m starting web development with java and I’m doing some tests and I came across the following situation, I created a form that loads a list based on every click of the button, however, when I…
-
1
votes0
answers1054
viewsJava ZIP Address Search
Good morning, you guys! I have a zip code search engine that is no longer working. When I use the URL passing my zip code it returns the query. Thanks for the help! Here is a example link to test…
-
1
votes1
answer139
viewsError while publishing Java 7 - Java 7 vs Java 8
I rented a VPS server and when trying to connect my android application with Java EE, I received the following message: type Exception report message app/server/CSelerServer : Unsupported…
-
1
votes0
answers49
viewsHow to add the necessary permissions for the Printer Job to work on Tomcat7
Ambience My environment is Tomcat7 and I am using Java 1.8, Windows 10 and I am using a PDF Reader to test the print. My user is a machine administrator. Problem I am trying to send a PDF for…
-
1
votes0
answers24
viewsJsfExceptionHandler ConstraintViolationImp messageTemplate
I have the mapping in the user class: @NotNull(message = "Contato não pode ser vázio.") @ManyToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER) @JoinColumn(name = "contact_id") @Getter…
-
1
votes1
answer94
viewsProblem with JSF
I have a screen and I would like to each product added, I could choose a quantity and then calculate that quantity multiplying by the value of the product. However, I have no idea how to do this,…
-
1
votes1
answer100
viewscan’t change my object from a datatable - JSF with Primefaces
I am retrieving my object from the datatable more at the time I redirect the datatable to another page to make a change, it shows an error. More takes the Object ID, I made a convert more…
-
1
votes0
answers464
viewsExternal js function in jsp
Hello, I intend to use an external js Function, a js typeahead, and call it in my jsp input, but it’s not working accordingly. Js import to my jsp. <script src="javascript/todospaises.js"…
-
1
votes1
answer179
viewsChange Dialog is not displaying data
I have a Maven project that is using jsf, jpa and primefaces in which there is a dialog that is being used to do the altualization(update) of the data, only, inputText is empty when it is called…
-
1
votes1
answer80
viewsConsume . jar in java web project
I created a file. jar (script.jar) that contains the "print()" method only returns a string and would like when I clicked a button on my Java Web application (Javaee) this "print()" method to be…
-
1
votes0
answers83
viewsMaven does not load all classes of Webservice wsdl mails
Good afternoon! Personal, I am tempted to use a web service of the post office wsdl to be able to search the address from the zip code, and to download the classes I am making use of the Maven,…
java-eeasked 7 years, 4 months ago JavaX_javaX 141 -
1
votes1
answer88
viewsJavax, @Defaultvalues, @Prepersistent, @Preupdate
I’m learning to play with Javax, and persistence of Java and I want to know if there’s any way to leave a default value for the database. Example in SQL: variacao TIMESTAMP DEFAULT CURRENT_TIMESTAMP…
-
1
votes1
answer134
viewsCannot cast from Object to int JSP
I am developing an application using JSP and servelt in which I want to get the total amount of records from my tb_driver table,created a servelt in which I passed the method that makes the query…
-
1
votes2
answers677
viewsjava.lang.Nullpointerexception JSP Servlet
I’m developing a web application using jsp and Servlet and I want to show all my records from my database and the amount of records in a table, I created a DAO in which I performed the queries in…
-
1
votes3
answers91
viewsRegistration error "Does not recognize the property"
I’m studying Java EE and I came across a mistake, if anyone knows the answer I appreciate it. I have my form: <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html"…
-
1
votes1
answer310
viewsError while trying to delete with DELETE method using web service Rest in Java
I created a Web Service REST in Java. All operations are working except that of DELETE which returns the following error: HTTP DELETE method: @DELETE @Path("excluir/{idpromocao}") public void…
-
1
votes1
answer100
views -
1
votes1
answer78
views -
1
votes0
answers45
views -
1
votes2
answers1756
viewsUploading files with Java
Good morning! I was trying to upload files, where I have a web page that makes a request to my Folder. In the form of the page I have an input of type file and another of type text. The encoding…
java java-ee upload file-upload servletasked 6 years, 10 months ago Carlos Rafael de Oliveira Carn 50 -
1
votes1
answer311
viewsReason for delay of process and configuration of Hibernate (persistence)
I’m setting up a WS server with Java, and I’m seeing some problems, like login via POSTMAN, is taking between 6000 to 7500 ms to respond, and what it really does, is around 50 ms. After being able…
-
1
votes1
answer60
viewsFor don’t go through the whole list
I’m having a problem going through a list. Man for this way: for (int i = 0; i < listaCaixaAbertos().size(); i++) { listaCaixaAbertos().get(i).setFechado(Boolean.TRUE);…
-
1
votes0
answers97
viewsDAO not injecting with @EJB Annotation
I’m making a requisition for "/counter/{id}" by Postman and when the code arrives in notifiedAAO.counter(id), I get the error message saying that notifiedDAO is null. PS: I’m using Wildfly 11 with…
-
1
votes1
answer754
viewsShow output from a JSP page Servlet list
I need to capture an input name, query the database and return the result on a jsp page. I want to show the result in a short snippet of the JSP page, in case I mix the text of the JSP page with the…
-
1
votes2
answers391
viewsconsumptionwebservice Rest returns: No 'Access-Control-Allow-Origin'
Prazados, I have a problem to consume a third party Webservice, when trying to find the same by java script the return I receive is: Xmlhttprequest cannot load…
-
1
votes2
answers592
viewsSpring Modelling JPA Person -> Personal Modelling -> Function
I did the data modeling (UML) but at the time of implementing I’m doubtful how to do. I wish there was only one table Person. In that table person I would have the field tipoPessoa("p","f") and…
-
1
votes1
answer973
viewsJava - error: cannot find Symbol - Even with created object
I created these two classes: Java equipment. class Equipamento{ private int id; private String nome; private String local; public void setId(int id){ this.id = id; } public void setNome(String n){…