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
-
19
votes2
answers982
viewsSelectonemenu is not loaded when selecting object for editing
I have a component SelectOneMenu (Primefaces) of cities, which is loaded according to the selected state. My component is with following behavior, right after saving the object and then selecting it…
-
16
votes1
answer9352
viewsDifferences between JSF and JSP
Web programming a little while ago (4 months) and went straight to JSF, I mean I didn’t study anything about JSP. I started taking a course and my teacher kind of belittles JSF saying that it has…
-
15
votes1
answer27253
viewsDifferences @Onetomany, @Manytomany, @Manytoone, @Onetoone
I wanted to build a database with Java Hibernate as below: Doubts: What’s the difference between @OneToMany, @ManyToMany, @ManyToOne, @OneToOne? And what would your statement look like in Java?…
-
15
votes2
answers2907
viewsWhat is Jakarta EE?
Only Javaee nomenclature changed or other significant changes will occur? Will be compatible with Javaee 8-? Javaee and Jakartaee will be maintained by the same community?
-
14
votes3
answers337
viewsDoubt about the responsibility of a get()
It is acceptable to have a method getter that you receive a parameter to be able to have a return variation? Example: getAllNome("M"); <- retorna tudo que for masculino. getAllNome("F"); <-…
-
14
votes3
answers20505
viewsHow to resolve the error - The superclass "javax.servlet.http.Httpservlet" was not found on the Java Build Path
I’m using Eclipse Mars.1 for web development, I received this error when including a file JSP, The superclass "javax.servlet.http.HttpServlet" was not found on the Java Build Path. I also have…
-
14
votes1
answer5215
viewsWhat is JNDI technology?
I am starting studies on corporate applications, and according to my teacher I will need this java technology and I would like to know what exactly is the JNDI.If possible wanted an example of its…
-
12
votes2
answers1221
viewsSpring Security with Java EE
Hello, I am developing a Maven Enterprise Application EAR project and am currently implementing the authorization part using Spring Security with Annotation instead of xml. Structure of the Project:…
-
12
votes1
answer2480
viewsDifferences between Java application servers
I would like to know the main differences between Glassfish, Jboss and Apache Tomcat application servers. Is there any specific aspect I should check before choosing one to start development? Are…
-
10
votes1
answer2239
viewsIs it worth developing in Javafx for Web, Mobile and Desktop?
I’d like to know how Javafx is going, if it’s already consolidated, if it’s still a gamble.. I really liked the look and the "Write Once, run Verywhere".
-
10
votes1
answer10730
viewsWhat is the difference between sendRedirect and requestDispatcher.forward?
What is the fundamental difference between the use of methods response.sendRedirect("Alguma pagina"); and RequestDispatcher despachar = request.getRequestDispatcher("/Alguma pagina");…
-
9
votes1
answer139
viewsHow does the data capture of a form work?
I have this code to get data from a form: @WebServlet(name = "computador", urlPatterns = {"/computador"}) public class computador extends HttpServlet { @Override protected void…
-
9
votes2
answers1183
viewsAdd multiple objects to a list
I’m developing an application web, where I have a list of an object called frames, well, every time I click on a button I add a new object to that list, only the problem is this: When I try to add a…
-
8
votes1
answer81
viewsUser without access to resources mapped in the Security-role of the web.xml
What is the behavior of security-role of web.xml when the user does not have access to project resources? It is default for Weblogic to return a 404? This status is configurable? There is the…
-
7
votes2
answers4016
viewsPays to migrate from Swing to Javafx?
Currently most of my applications are made with Swing. I’ve done 2 small projects web with JSF+Primefaces+Hibernate. My question is this:: It pays to quit Swing and study Javafx, or it’s better to…
-
7
votes2
answers455
viewsJAX-RS Resource as Session Bean or CDI Managed Bean?
Today I ran into an interesting problem trying to inject an EJB into a JAX-RS feature (in Glassfish 4.1, running the pre-installed version of Jersey). @Stateless public class MeuEJB implements…
-
6
votes1
answer3110
viewsDecoder for CAPTCHA
I need to turn a captcha into text, being specific, to perform the download of NFE on the site Receita Federal, and for this I have read about the OCR however, it does not seem to be 100%…
-
6
votes2
answers1478
viewsEntitymanager with JTA multiple connections
I’m having a bit of an unusual problem, but I’m looking for a solution. I have a scenario where I have several databases (postgresql) allocated in several clients, all databases have the same…
-
6
votes1
answer1333
viewsChange validation behavior in Primefaces components
I have 2 generic templates for crud. The commandButton Template search CRUD.XHTML (Code 2) is with the following logic: (When opening the page, all input fields are disabled, when you click the…
-
6
votes3
answers10207
viewsWhat is the JBOSS?
I’m reading a book about distributed applications and he occasionally references Jboss. I would like to know what it consists of and its usefulness?
-
6
votes1
answer310
viewsIs it possible to have Java SE and Java EE on the same machine?
I can install Java SE and Java EE on the same machine?
-
6
votes2
answers942
viewsProperly configured hibernate does not insert into database
My code does not enter in the database Mysql. It identifies all database, tables and fields, but insertion is not done. Usuariodao.java package br.com.sistec.dao; import org.hibernate.Session;…
-
6
votes1
answer383
views -
6
votes1
answer103
viewsHow to create an application from a Maven file?
I was working with EJB and dealing with four simple Maven projects, a web project ,a desktop project (JSE Swing), a project (JSE) that had only the interface and ultimately a web project (which I…
-
6
votes1
answer502
viewsManage transactions in Java EE @Transactional
I’m having trouble trying to "inherit" the transaction from Java EE of my layer of service to the layer of repository. My intention is for the transaction to target my service function. Enabling me…
-
5
votes1
answer158
viewsUse of Spring Security
Guys I’m using the spring security in a project, I was informed that I should take the jdbc driver and put it in the Omcat lib folder for the whole spring process to work properly, because it would…
-
5
votes1
answer812
viewsLoad objects related to @Onetoone
concerning the doubt that I have is basic, but it is taking my sleep. I have an entity in which I call Destination. In the Destination entity I have several relationships of the type @OneToOne with…
-
5
votes2
answers1147
viewsDifferences and use of RMI, Socket and JPA
I am new in java and would like a help to understand better RMI, Socket and the JPA, and better understand their utilities and when applied, because I don’t see much to choose between them. I did a…
-
5
votes1
answer460
viewsHow do I communicate Javascript data in JSF?
I am developing an application that performs digital signature. In it, I upload a file PDF that has the address stored in a variable JavaScript. In the background, there is an application in JSF,…
-
5
votes1
answer1469
viewsHow to make a site multilingual and identify the country of origin?
I am developing a site in Javaee and would like it to be multilingual (at least English, Portuguese and Spanish). But I would like to know how large websites, such as Facebook, for example, do to…
-
5
votes1
answer422
viewsHow to create a sign-up page using JSF + Spring
I am creating a user registration page but am finding the following error: type Exception report message Unable to create instance for class: managedBean.Cadastrobean. Description The server…
-
5
votes1
answer606
viewsHow to configure Apache Log4j to write to the Bank through Hibernate?
I am starting to use Log4j from Apache and would like to know how to configure it by XML file to record the logs in the database using Hibernate?
-
5
votes1
answer5783
viewsConversion of Dates to Mysql database
Hello! Well, I’m using xhtml and primefaces. On my xhtml page, I have a field for date and use the converter to save in the database, I have a problem with the day. If I want to save 30/04/1989 In…
-
5
votes2
answers718
viewsWhat is the most threads supported by Java EE?
I’m analyzing how to rewrite the architecture of a Java program I’d like to know how many threads the scheduler (Scheduler) supports? or how can I infer this amount based on the processing power of…
-
5
votes1
answer5094
viewsSetting up Tomcat 7 in Eclipse results in HTTP Status 404
I downloaded the version tar-gz Tomcat 7 and linux manually set the variable CATALINA_HOME entered the command $CATALINA_HOME/bin/startup.sh and I stopped http://localhost:8080/, worked normally…
-
5
votes1
answer718
viewsHow to destroy a Session in java?
To invalidate a session, my teacher passed the following code: HttpSession session = request.getSession(false); if (session!=null){ session.invalidate(); } But after the logout, when I click Back in…
-
5
votes1
answer1173
viewsRedirect to another page only if the user is authenticated
I have a login screen where I authenticate a user, but when I put one action to switch page regardless of whether the user was authenticated or not the page opens. My question is to know where I…
-
5
votes1
answer19133
viewsHow to create a custom Exception/Exception in Java
Java, brings with it several ready-made Exceptions, Illegalargumentexception, Illegalstateexception, Runtimeexception, among others. Creating a Custom Java Exception? I have the following method -…
-
5
votes3
answers11756
viewsChange format of a date from yyyy-MM-dd to dd-mm-yyyy
I have a dataTable where I display some data but the date is coming in format yyyy-mm-dd how do I change the format of this date so that I can display it correctly in my dataTable? And where do I do…
-
5
votes1
answer666
viewsSend xmlns:xsi and xmlns:xsd namespace in the webservice Soap response
I have a webservice developed in java working perfectly, only that I need to send the namespace xmlns:xsi and xmlns:xsd as shown in the example below: <soap:Envelope…
-
5
votes1
answer54
viewsLink does not send parameters and redirects to Servlet
I put on my index page where I have three links one with T-shirts, Bermuda and Pants on href I put so that when clicked on the link it was redirected to Servlet and sent the parameters according to…
-
5
votes1
answer590
views -
5
votes1
answer861
viewsHow to run DOS command in JAVA with Administrator privilege?
Hello, I have a program where I need to every run of it, go on the server, pick date and time, and change on the local PC. I am running the following command line: Runtime.getRuntime().exec('DATE…
-
5
votes1
answer2602
viewsget login username with Spring Security
Hello, I come here to ask for help about Spring Security. I would like to know how I can get the username logged in. I use authentication with login and password but when I use the search method it…
-
4
votes2
answers6870
viewsJboss - "Unable to get Managed Connection for java:/Appds"
The following exceptions are occurring in my application: 10:52:34,506 ERROR [br.com.app.dao.NotificacaoDAO] (http--0.0.0.0-8080-77) java.sql.SQLException: javax.resource.ResourceException:…
-
4
votes2
answers632
viewsAlternative to JPA Implementation
I am using JPA in a project, with the Hibernate implementation, still using Java 7. And constantly Permgen runs out of space. I know it’s because of Hibernate, how new I am in this java technology.…
-
4
votes2
answers856
views@Predestroy on @Viewscoped
I noticed that @Predestroy in @Viewscoped scoped Beans is only called if the session that was active expires or if I force a page redirect (?faces-redirect=true). Without these conditions, the bean…
-
4
votes0
answers149
viewsEnterprise Application Project dependency problem
I’m having trouble with a java project ee. (Enterprise Application Project). I’m using wildfly-8.0.0.Beta1 server. The structure of my project is as follows:: I already put the EJB Project in the…
-
4
votes2
answers949
viewsProblems with JPA - Hibernate does not persist WHOLE object
Good morning guys! I have the following entities: package br.com.sistema.entidade; import javax.persistence.Entity; import javax.persistence.Id; import javax.persistence.IdClass; import…
-
4
votes2
answers538
viewsMaven project with Hibernate and Glassfish does not generate database
I have a Maven project and I’m having problems generating the database, I’m using Hibernate and Glassfish 4. No error is generated, just no data is generated, I’m new with Maven maybe I’m forgetting…