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
votes1
answer274
viewsHow to make it load the full Welcome-file url
In web.xml it is mapped like this: <welcome-file-list> <welcome-file>agendamento/index.xhtml</welcome-file> </welcome-file-list> When opening the application in the browser…
-
1
votes2
answers8798
viewsHow to install Java EE perspective in Eclipse?
I want to start studying Java for the web (Servlets, JSP, EJB, Servlets and JSP). I have already installed Tomcat, JRE, JDK 7 and Eclipse Kepler Standard. How do I set up Eclipse to add JEE…
-
1
votes2
answers545
viewsRight structure to work with java (JSP)
I’m starting to develop with java (Jsp). And I would like to know the correct structure of working (only with java "pure"). Would that be: model (Classes with get and set) dao (classes that extend…
-
1
votes2
answers263
viewsHibernate Warning HHH000444 using Oracle 10g with Wildfly 8.0.0 - follow-on Locking
When making some queries in a view using JPA (2.1) with hibernate, I’m having this Warning. Though it’s working and it’s only one Warning, It bothers me a little bit. WARN…
-
1
votes1
answer243
viewsCheck which Websocket sessions are inactive
How to check if a session is active, when the device that was connected to the Websocket server suddenly shut down? For in this situation, if I use the method Session.isOpen() the return is true. I…
-
1
votes1
answer2214
viewsDisplaying error messages in a web application
I have developed a simple web application to study some concepts related to Servlet among others. I mapped the file web.xml of my application to display a página de erro in case an exception occurs.…
-
1
votes1
answer213
viewsData modeling problems with Persistence.xml
I created a college application to create automatic tables by Hibernate with JPA however it gave error in some tables, that were these; Catalogued Orderly Commodity but this generating the following…
-
1
votes1
answer722
viewsSearch database using JSF
I am programming an application in JSF, my application can do the function of Record and Change without any problem, but as I am using Java web technology now I am finding a certain difficulty in…
-
1
votes1
answer906
viewsDoubts in the use of the dataExporter
Guys, I’m using the primeFaces support to pdf the contents of a datatable. The problem is that the pdf does not bear the name of the columns, only the content. In the examples I saw in the showcase,…
-
1
votes3
answers1615
viewsCreate mask for fields
I am developing a system and in it I need to create mask for some fields, the problem that this system was started in a somewhat old version, I can’t say for sure what it is but I will be posting…
-
1
votes0
answers36
viewsHow to set the location of the "Resources" directory?
I’m creating a project in Apache Wicket and as I’m new at it, I’m trying to define background-images and grab some Javascript functions from Bootstrap. The problem is that I am unable to define the…
-
1
votes1
answer504
viewsHow to map a http request parameter to an Enum in java?
I’m making an ajax requisition like this: $.ajax({ type : 'POST', url : apiURL + '/play', dataType : "json", data : { against : "ANYBODY" }, success : function(data, textStatus, jqXHR) { // ... },…
-
1
votes1
answer498
viewsError running JSF page on Tomcat
Guys, I have a problem here that is hard to solve. I’m trying to list some disciplines on a JSF page, follow the code: Disciplinabean.java @ManagedBean(name="disciplinaBean") @SessionScoped public…
-
1
votes0
answers364
views(Hibernate2) How to use createSQLQuery to return uncharted values
Good afternoon, Using HQL, I’m having trouble catching the name of customer price list. Therefore, I decided to try using Native SQL via Hibernate. However, I am not able to do it in Hibernate 2...…
-
1
votes1
answer621
viewsUpdate event in "p:commandLink" component does not render
I have a datatable presented within a Dialog primefaces, when I click on commandLink of the line I desire, I want to take that value and render it within a inputText from my screen, but I’m getting…
-
1
votes1
answer665
viewsProblem using Dialog Prime Faces
Good night, I’m developing a simple CRUD using JSF, but I’m having trouble using Prime Faces functions. I want to make the insertions, changes and exclusions through Dialogs...but so far I could not…
-
1
votes3
answers490
viewsWhy not use an Application Container like Jboss when using Spring?
Whenever the use of Spring is discussed together with Jboss or other container, professionals tend to question why use a container of JEE applications. So I ask myself, why not use it? Would it be…
-
1
votes1
answer161
viewsFileunput Primefaces does not update the attribute;
I have a repeating structure: <ui:repeat var="item" /> Inside it I print some fields. One of them is the <p:fileUpload/> So far so good. The problem is time to do the action, when I…
-
1
votes2
answers1859
viewsError occurs when performing resource injection into the bean
Bean: package br.com.drogaria.bean; import java.sql.SQLException; import java.util.ArrayList; import javax.annotation.PostConstruct; import javax.faces.bean.ManagedBean; import…
-
1
votes2
answers895
viewsManipulating a List inside a foreach in a view
I have a doubt that should be simple to solve, but I’m not able to develop a logic, or even may be doing it the wrong way. Well, I have a table in which I go through a table called "categories"…
-
1
votes1
answer470
viewsHow to redeem a key in a Json using Gson (Google)
good night. For the first time I am manipulating a Json file with Java, because many colleagues have always told me that it is very easy to manipulate data, especially with the Google library…
-
1
votes0
answers35
viewsUpload xlsx Spring MVC and compare data with SQL
I’m trying to upload an xlsx file and compare it to my database table, but I’m not getting it, as my file is too big I can’t read it with Apache POI and then compare it with the SQL table. Can you…
-
1
votes1
answer205
viewsHow do I call the intercept() method of an Intercept class, in another project method?
All right, guys? Well, I’m having a hard time and I’d like a little help. I have the following method from my Acessarintercept class: @Intercepts @RequestScoped public class AcessarIntercept {…
-
1
votes1
answer465
viewsBreaking net.vidageek.mirror.exception.Reflectionproviderexception error: Could not invoke method, how to fix?
I am in a code where at the moment I run this java method from Htmlunit: // SIMULANDO UM NAVEGADOR WebClient client = new WebClient(BrowserVersion.getDefault()); client.setJavaScriptEnabled(false);…
-
1
votes1
answer584
viewsHow to treat error 404 and 500 in vRaptor?
I have seen tutorial of vraptor4 teaching to put this error in web.xml, to redirect, the following xml code: <error-page> <error-code>404</error-code>…
-
1
votes1
answer358
viewsGoing to a particular tab
This is my menu: <p:menubar> <p:submenu label="Clientes"> <p:menuitem value="Cadastro" action="#{nomeBean.cadastrar} outcome="funcionario.xhtml" /> <p:menuitem value="Consulta"…
-
1
votes3
answers5288
viewsProblem with access to Tomcat at time of deployment
I am working on a Javaee project in Netbeans IDE 8.0.1 using Tomcat 8.0.9 as a container. The problem occurs at the time of project execution, the IDE asks for a user and password and I provide…
-
1
votes1
answer654
viewsCommandbutton Primefaces does not call the method
Man commandbutton does not show error when clicked, but also does not execute the method. Commandbutton code: p:commandButton action="#{clienteMB.cliente.Salvar}" value="Incluir"/ Method code:…
-
1
votes1
answer127
viewsSend a List<Entity> on Redirect
I have a list and I need to send it to another page to fill a table, when the redirect ends the page loads only the table does not fill because the list has been emptied, as I keep it with the…
-
1
votes1
answer126
viewsRichfaces fileUpload does not invoke Listener
I’m using the latest version of Richfaces, I copied the example of show case on the Richfaces website, and the example does not invoke the Istener, I’ve tried everything, someone could help me?…
-
1
votes1
answer727
viewsList in Textfield or an editable Combobox when user type - Javafx
Someone more experienced, could inform me if Javafx has any way to make a list as you type in the textfield. Example: When you type your facebook email, and you type the first letter and your email…
-
1
votes1
answer138
viewsSessionscope is not coming on Request
I have a bean to log in, when I try to get it in the filter class request it is coming null. The information that is coming on the console is this. 17:29:57,968 INFO [stdout]…
-
1
votes2
answers578
viewsHow do I block access to an application from the user’s IP?
How do I block access to a web java application by the user’s IP. The application will be hosted outside the company environment, but need that by certain profile can be accessed from outside. I…
-
1
votes1
answer122
viewsUse of val() in script makes me miss line breaks
I have a problem. I am implementing a chat page using the following script: <script> $(document).ready(function(){ $("#enviar").click(function(){ var mensagem = $("#campodetexto").val(); var…
-
1
votes1
answer88
viewsEvents and changes in a JSP?
Hello. I have a jsp being a chat (due to a restriction, I am using Struts 1). In this JSP, I have the following div: <div class="conteudo" id="conteudo" name="conteudo">. I need to, return an…
-
1
votes1
answer438
viewsNull object fields when trying to persist with JSF and JPA
I am trying to persist an entity and when I try to persist it plays an error of Constraint Violation, performing the debug, I noticed that the object is instantiated but the fields are null.…
-
1
votes1
answer51
viewsHow to connect a Query to a Container?
TypedQuery<Empteste> minhaLista = em.createQuery("Select d from Empteste", Empteste.class); List<Empteste> results = minhaLista.getResultList(); I want that my list result to appear in…
-
1
votes1
answer1978
viewsPage does not load Primefaces components
My page is not loading the Primefaces components, in this case a datatable. The end result is thus both in Chrome and in the Eclipse navigator itself: Just follow my code: listMarcas.xhtml…
-
1
votes0
answers99
viewsA3 Digital Certification
I have recently been engaged to develop an application that you should use Certificação Digital A3 using a token. I have no experience with digital certifications and wanted to know how to start…
-
1
votes1
answer49
viewsProblems with the Hibernate update
I’m having some unforeseen events with Hibernate in my application. I wonder if the implementations of annotations made in class java are taken to the database or processed only within the system,…
-
1
votes1
answer2947
viewsError: package javax.Servlet does not exist import javax.servlet. *
I created the directories correctly, copied the code and now does not compile and returns this error. I am compiling by the terminal using javac. http://pastebin.com/WLaGQit3 package…
-
1
votes1
answer1100
viewshow to convert a request. String parameter to integer
In a program I have to do I arose this difficulty Familia.setSalariodoPai(request.getParameter("salariodoPai")); but this request is returning a String and I would need Integer .Bs that stretch is…
-
1
votes1
answer95
viewsRecover disk image via callback
Well, I am developing a feature that aims to upload an image (this step has already been accomplished) and soon after I "recover" the same to perform the selection of some color in it (Colorpicker…
-
1
votes3
answers3382
views -
1
votes1
answer32
viewsExcess EJBS in Managedbean
Good morning, I have a question as to how the Container works in the injection of the EJBS will be that the quantity of EJBS injected in Managedbean can significantly interfere in the performance of…
-
1
votes0
answers279
viewsError: Java.lang.Stackoverflowerror:, com like no Hibernate(loop Query.getResultList())
I have a method: public static List<Texto> getTextoPorIdAlternativoLike(String idAlternativoTexto) { Texto texto = new Texto(); String where = "t.idAlternativo like :idAlternativo";…
-
1
votes1
answer1203
viewsProblem with coin mask on Primefaces
I’m using JSF, and it’s not working my coin mask, did I miss some of the code? here is the code below <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"…
-
1
votes1
answer177
viewsError. WARN: WELD-000335: Conversation context is already active
I am presenting the following error in my Glassfish server 4.1 output: WARN: WELD-000335: Conversation context is already active, Most likely it was not cleaned up properly During Previous request…
-
1
votes1
answer1878
viewsValidate date less than current date
My question is as follows. I have a JSP form for the registration of students with several attributes, one of them is the date of birth. Until then I was registering the date only validating the…
-
1
votes1
answer29
viewsSpring + Hibernate
Good morning! I’m studying Spring MVC, Maven and Hibernate. In the structure of the project created with Maven, where I put the file applicationContext.xml ? Thank you.