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
votes0
answers55
viewsJSON is not returning with the accents
I am with a doubt that I do not know what else to do for him to come without mocking the accents, I have tried several ways to put note of the Spring dom Procudes UFT-8 no solution came handy.…
-
0
votes1
answer66
viewsDoubts About Java WS Slowness and Remove warn
1) I have a question about the slowness of a REST web service that I am mounting. In client communication, the server response takes a few seconds. What I’ve already done: -All processes the…
-
0
votes1
answer174
viewsI cannot register data using JAVA Rest webservice
When registering data in my database using webservice the following error occurs. Sending 'POST' request to URL : http://localhost:8080/FazendaWS/webresources/fazenda/Usuario/inserir Post parameters…
-
0
votes0
answers60
viewsAngular Authentication 2 - Java Servlet
I have a problem using an API to which I can not make changes, it happens as follows, I have a Folder extending from a security library, that library is in charge of making the logins, allow the use…
-
0
votes0
answers97
viewsIllegal use of <when>-style tag without <choose> as its direct Parent
I am developing a web application using jsp and Servlet page and I would like to show the data of my Servlet in two repeat structures one with the produots and the other with the plots but this…
-
0
votes2
answers238
viewsprint a returned Servlet list in a jsp
Good morning, guys I’m killing myself to make my jsp return a list that comes from the BD, I’m taking the information from the bank and I can launch from Servlet to the jsp but not in an orderly and…
-
0
votes1
answer90
viewsTraverse lines from a javaEE, jsf2, and Primefaces datatable with Keyboard arrows?
I found this code on the Internet, but part of it was discontinued xhtml: <p:hotkey bind="down" update=":testform:tabletest" action="#{aBean.moveDown()}" /> aBean: public void moveDown() {…
-
0
votes0
answers223
viewsjava.lang.Illegalargumentexception: org.hibernate.hql.internal.Ast.Querysyntaxexception: Unexpected AST Node: query
I’m having to make a SELECT in JPA that contains an ORDER BY by selecting from another table. Small representation of tables: When I did by SQL it was normal, but when turning into JPA, it did not…
-
0
votes2
answers308
viewsIs it possible to filter a p:datatable when the filterBy attribute is a list of obejtos?
I’m using the P:datatable component of Primefaces and I’m having trouble with the filter. I have a list of Email Sectors and within that list I have another list with the aliases of each email.…
-
0
votes1
answer90
viewsHow to list all Jsonarray data using JSF?
I’m having trouble listing all the data from JsonArray in a JSF, always remains only the last value, already when I use System.out.println(variavel) I can list everything without problems. Page JSF…
-
0
votes1
answer200
viewsHow to use Files.move with Java?
I have created a photo upload on my system, these photos are saved in a temp , I need to move them to a default directory, other than temp. This is the method that creates the directory : public…
-
0
votes1
answer423
viewsTomcat - RFC 7230 and RFC 3986
I’m having a problem : Error Parsing HTTP request header My apache server Tomcat 8 is rejecting the requests for a system which I did an integration, the error is due to characters that are in the…
-
0
votes1
answer322
viewsFailure to startar Tomcat
When I try to start the TomCat 7 in my project called ribeiraoreefshop, triggers the error of start the main one would be as follows: Failed to start Component [Standardengine[Catalina].…
-
0
votes0
answers80
viewsMain way and Junit does not run on the console
I’m using version 2.1 JPA, from Hibernate version 5, and when I run both main and Junit methods, nothing appears in the console not even any error. The client class and address contain your ids.…
-
0
votes1
answer699
viewsUpdate JSF only works in the whole form (Primefaces)
good night. I’m racking my brain with a problem that seemed simple I have a form with some fields, when selecting a combobox I want to hide and display some fields. I am using p:ajax to perform the…
-
0
votes2
answers260
viewsSpringmvc controller does not redirect to another controller
No Controller Logincontroller.java @Controller @RequestMapping("/login") public class LoginController { @Autowired private UsuarioRepositorio usuarioRepositorio; @RequestMapping(method =…
-
0
votes1
answer337
viewsHow to submit via java post?
In a system all data is exposed via URL due to the sending method GET. I need to send via POST. Code: <!DOCTYPE html> <html> <head> <meta charset="ISO-8859-1">…
-
0
votes1
answer122
viewsHow to count how many occurrences of an attribute in a list are equal to a value? JSF
I need to count how many status equals '1'. I used this to count how many objects I had in the list and it worked. Now I can’t count only those who have status equal to 1. <h:outputText…
-
0
votes1
answer26
views@update form not working, Java EE
I tried with the options @form, :matricula, matricula_form... and nothing. When I delete the bank’s license plate, only after the page refreshes it’s gone, I’m forgetting something??? Below is code…
java-eeasked 6 years ago Thiago Correia Lima 1 -
0
votes0
answers152
views@Stateless on CDI project
Person, I have the following structure in my project (CDI): BEAN: @Named @SessionScoped public class ClienteMB extends BaseAbstractMB<Cliente, ClienteDTO> implements Serializable { @Inject…
-
0
votes1
answer71
viewsHow to Download SQL Server File using Servlet
I have a basic application where I save files in the database SQL Server using Java, the part of insert into the bank I’ve done, I’d like to know how to download the file that is in the bank via…
-
0
votes1
answer334
viewsBug in simple example JSF + Primefaces
I tried to run a simple example with JSF and Primefaces but I believe it is something related to some incorrect configuration. The application is running on Tomcat 9.0.13, below the project…
-
0
votes1
answer67
viewsJava Jersey HTTP, cannot receive browser parameters
Hello I would like to receive a parameter from the browser and print using webservices with Jersey, however the parameter does not reach my method, it is not to be printed. XML <?xml…
-
0
votes1
answer101
viewsRest only returns XML
good evening to all, I’m making a Restfull API for mere learning and ran into a simple problem, but I couldn’t find a solution on the internet. I created this class to control games: @Path("/games")…
-
0
votes1
answer50
viewsHow to do web design with wildfly 16?
I can’t see a HTML File, Webcontent, from file testing through the link (localhost:8080/Loucademia/teste.html), gives error(404); which means that I am not able to access it through the browser. My…
-
0
votes1
answer50
viewsDecrease items in shopping cart (Java Web)
Good afternoon, I am creating a shopping cart, the add item part is working perfectly but the decrease item part is not working, follow the code. public void adicionar(Produto produto) { int…
java-eeasked 5 years, 7 months ago Jackson Felipe Magnabosco 140 -
0
votes0
answers27
viewsHow to remove image transparency and input text and make the Forms background transparent
Good morning, I just wanted to make the only form background more transparent but it changes everything inside, does anyone have any tips ? thanks... <h:body> <p:growl id="mensagem" />…
-
0
votes1
answer60
viewsError trying to update record with Spring MVC
Good afternoon devs... I am studying spring mvc, in my system I have a controler that has a mapped method as @getmappint(/search/{id}), as below: @GetMapping("buscar/{id}") public ModelAndView…
-
0
votes1
answer156
viewsUpload the image into the context of the java jsf project
I have a project in JSF put. One of the parts is to add the image to the product by making the upload of the image. That’s why I’m using the primefaces p:fileUpload, it works, but the image is…
-
0
votes1
answer334
viewsIncrease number of Tomcat connections pool
I have a problem in my production server, where my tomcat has locked when a connection is requested from the bank’s connection pool. When I climb the tomcat I see in the log the following message :…
-
0
votes0
answers179
viewsPostgresql when creating tables and columns. OBS: Version 11.5, last version of Postgresql
Galera is the following, when I will create the tables and columns in postgresql using pgAdmin4, when I create the tables , they save her name and the field name between "". example: As you see in…
-
0
votes1
answer33
viewsSpring session attribute is not shown in JSP via JSTL
I have a Credential class that I use to store session user information (it’s annotated with @Sessionscope and @Component). When I print some attribute of this class, it usually appears, but if I try…
-
0
votes1
answer57
viewsTrunc Hibernate
I have the following query that I need to search in the database for schedules according to the dates reported (initial date and final date). Let’s say I made an appointment for the 20th/10th/19th.…
-
0
votes3
answers339
viewsSpring Boot does not recognize the controller when a request with parameters is sent
Spring Boot does not recognize my controller if I submit more parameters in the request. For example: If I send a normal GET request spring boot recognizes my controller:…
-
0
votes1
answer82
viewsissue when connecting mysql to java using jdbc
LoginDAO.java: public class LoginDAO { private static String sql = "select * from login where login=? and senha=?"; private static String url = "jdbc:mysql://localhost:3306/escola"; private static…
-
0
votes1
answer73
viewsJava: Error passing references in a Supertype using Convert Pattern to convert DTO/Entity
I’m doing a serialization process of a DTO class for Entity and vice versa. And for that, I use a design pattern called Convert Pattern. At first, I created a generic class that performs these…
-
0
votes0
answers30
viewsDoubt about Javaee with Wildfly 18
I would like to know what this log is about. [org.jboss.as.ejb3.deployment] (MSC service thread 1-5) WFLYEJB0473: JNDI bindings for session bean named 'ContaService' in deployment unit 'deployment…
-
0
votes1
answer41
viewsHow to return data through the Java Criteriaapi from more than one table?
I have a class that doesn’t persist: Peopleware.java public class PessoaDadosSearch{ private Long idPessoaDadosSearch; private String nome; private String cpf; private String municipioResidente;…
-
0
votes1
answer45
viewsDynamic joptionpane in Java: combobox
Is it possible to make Joptionpane dynamic ? I’m having difficulty registering new entries in the countrys array[]. I’m using Java 1.8 sdk Code import javax.swing.JOptionPane; import…
-
0
votes0
answers8
viewsI can’t use httpsession java web 7 spring mvc 4
When I try to use the httpSession have @RequestMapping(value = "efectuarLogin", method = RequestMethod.POST) public String efectuarLogin(@RequestParam("usuario") String usuario,…
java-eeasked 4 years ago octavio cossa 15 -
0
votes0
answers37
viewsI need to Associate two entities in @Manytomany with JPA using Mysql, but it is not saved in the composite table (usuario_item)
I need to make the connection between user and item for a login system I’m stagnant in this error 2 days ago. I searched for forums and tutorials and could not get anything to help me. If possible…
-
0
votes0
answers10
viewsError in passing parameter Confirm Dialog Primefaces
I am using version 7 of the first faces with JSF 2.2 By clicking the delete button the parameter is not passed correctly. <p:column headerText="Ação"> <p:commandButton icon="fa fa-fw…
-
0
votes0
answers44
viewsException java.lang.Noclassdeffounderror: javax/xml/Ws/Endpoint
It is a simple code, where I will create a Webservice with SOAP, but when I run the code in Eclipse it presents me the following error: Exception in thread "main" java.lang.NoClassDefFoundError:…
-
0
votes0
answers16
viewsERROR IN THE ARTIFACT
I’m trying to run a little Java project of a course of Servlets that I’m doing at Alur@Intellij and I’m having problems with Artifact. The instructor had just created a common Java project and used…
-
0
votes0
answers20
viewsHow to find the Status Code of a feign. Response when there is no server response
If you use Postman to request a server, I always get Status Code. We will use this website as example for server. Where I put Status Code 599 as seen: Now using the Postman: How can I get this code…
-
0
votes1
answer24
viewsParse problems with inherited JAVAX WS CORE fields
I have a return class, which has its attributes set to return in the response in json or xml, depending on the query. I need to insert two new fields in this return, but they are very specific, that…
-
0
votes1
answer42
viewsHow can I reconnect to the database by putting variables on standalone instead of in Java code
I need to include the variables urlLot, user and pass in the standalone so you don’t have to change the code and recompile every time I switch environments. Unfortunately I can’t think of any way to…
-
-1
votes1
answer442
viewsThe power of Java
I recently saw a Infographic pointing JavaScript as the most used language in the year 2015. And also direct see here on Sopt several posts about JQuery and JavaScript. My question is this, it is…
-
-1
votes1
answer2773
viewsUnable to build Entity manager Factory errors Help aq please
Unable to build Entity manager Factory errors in application. JPA, Hibernate, Postgresql, MAVEN, Tom Cat and Eclipse. These errors have occurred below: nov 03, 2015 8:33:35 PM…
-
-1
votes1
answer148
viewsI’m having trouble saving the contents of a docx in pdf
I have a Rest method that takes a Word document, replaces the placeholders and converts it to PDF and saves it to a directory. But I have a Nullpointerexception I couldn’t solve, someone can help?…