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
-
3
votes1
answer73
viewsIs it possible to know which JEE Container is being used during Dispatcher Servlet startup?
After some difficulties with the use of the Spring Security and JBoss using annotations based on API Servlet 3 (Servlet 3.1 more specifically), I discovered that when using Spring with JBoss, in…
-
3
votes1
answer659
viewsWeblogic and libs conflicts: how to know which versions Weblogic already has?
My question is of beginner, but I feel quite lost. I have been working with Java, but have always used Tomcat. I recently needed to make my "webapp" compatible with Weblogic. The problem is that I…
-
3
votes4
answers369
viewsDoubt in database query, error in query
I am doing a work on Java Web ticket sales system and I have a question in my code to bring this data example: In select I consult 3 fields of my table: origin, destination and date the problem that…
-
3
votes1
answer377
viewsSave data through POST in the database with Vraptor
I have two methods in my Controller, one that lists all database data and a method to save data in the database. I can already list all data when accessing URI but when I try to save from that…
-
3
votes1
answer267
viewsJSF page displaying Object reference value
good night. I have a JSF page called simulated.xhtml on which implement a filter to generate the simulated and I’m also trying to display results from the database that have already been filtered on…
-
3
votes1
answer100
viewsSpring MVC error in performing Binding of checkboxes on a list of objects
I have the following piece of code in my .jsp, in which the objective is to dynamically list a passenger list per customer. <f:form id="service-item-form" action="${action}"…
-
3
votes2
answers377
viewsDoubt regarding the management of JPA with Spring in JEE server
I’m starting in Spring MVC and in the book I’m reading the configuration and management of connections is all done by Spring, IE, Spring opens and manages connections with the bank and makes it…
-
3
votes2
answers162
viewsCapture through the Exceptionhandler
I’m trying to capture a javax.validation.ValidationException in my MB to later play an alert. I tried with the three examples below independent but nothing returned. Should I enter any more code ? I…
-
3
votes1
answer1404
viewsHow to convert a byte[] from an image to a jpeg image to load into html?
In the html(jsp) of registration I have a field that the user registers his photo with the tag img with the following result. <img…
-
3
votes1
answer125
viewsWhite space JSTL
I have a very annoying problem, when my jsp is mounted I have a jstl foreach that leaves my final code absurdly giant, worse than I realized it’s just blank space. Follows the code : <c:forEach…
-
3
votes1
answer75
viewsHow to load changes made in native java classes?
Hello, I am trying to run a jar file, replacing some original java interfaces for database connection, changing the setBoolean method to receive an object as parameter. Original: void setBoolean(int…
-
3
votes1
answer570
viewsServlet Container (Tomcat) or Application Server?
I am currently developing a project that uses JSF, JPA, CDI and EJB. I read in several places where they said that Tomcat (Servlet Container) does not have support for these technologies, but…
-
3
votes1
answer105
viewsProblems in displaying the report with Jasperreport
In my work, I am developing a Java EE application, with web service REST (Jersey), Hibernate and Jquery on the front end. All my system requests use ajax and I am having difficulty generating the…
-
3
votes1
answer154
viewsError for Importing JDBC from sqlServer with Maven
In my java web application ,I needed to add a connection to a sql server database, so I put it as a dependency on Maven as described below: <dependency>…
-
3
votes1
answer61
viewsSpring Model 4.3.1
I don’t know how to work 100% with #POST and #GET yet, my problem must be in understanding how requests occur and when my objects are instantiated. Follow methods: CaixaOperacaoController.java…
-
3
votes1
answer145
viewsEntities marked as FETCH LAZY are returning "null" even after a call to the GET method
Hello, good morning friends, Why my entities marked as fetch Lazy are returning "null" even when they are invoked through a get? What I learned in several courses is that when making the first call…
-
3
votes2
answers503
viewsDeleting data from a MYSQL table with Java
I’m trying to delete data from a table with Java but for some reason the code is not working. Excerpt from the code below: public void excluir(ModeloObjeto modelo) throws Exception{ Connection…
-
3
votes1
answer1363
viewsUpdate JSF component via Bean
Inside my code I have two variables called displayMessage and displayImage that are two Strings, as the method is running, the messages are being updated. In my Managedbean messages are updated, but…
-
3
votes0
answers959
viewsProblem saving date with Time Zone (Time Zone) in SQL Server
I need my system to store dates (date and time) with time zone (time zone). The system needs to support multiple databases, so far SQL Server and Postgresql. With Postgresql the time zone…
-
3
votes1
answer597
viewsHow to consume a message from a remote MQ queue using MDB on Jboss servers
I have an EJB class that writes a message in a JMS queue and would like to consume this message from a Messagedrivenbean (MDB) installed on another server. My class successfully writes in the JMS…
-
3
votes3
answers12331
viewshas been blocked by CORS policy: No 'Access-Control-Allow-Origin'
I am developing an integrated Java Backend (Rest Spring) with Angular Front 8. When trying to list the list of users(via JSON) I get this message: Access to Xmlhttprequest at…
-
2
votes1
answer109
viewsChange Active Profiles Spring at runtime
I usually use this code snippet to define the profile of the application <servlet> <servlet-name>dispatcher</servlet-name>…
-
2
votes1
answer792
viewsHow do Hibernate Search sort the result of a search?
I have a indexed search with the Hibernate Search but I can’t get Hibernate Search order the search result in the order of a given column, as for example the name column. But there is a peculiarity.…
-
2
votes1
answer203
viewsHow to intercept only the public methods of a bean Managed?
If you have a managed bean ( @Managedbean annotation), how would it be possible to intercept only the public methods of this bean? The motivation for this would be as follows, suppose you have a…
-
2
votes3
answers422
viewsDoubt about extends Application
Developing for android I can create a class that extends Application. How would I do it in java? There is this or tagging?
-
2
votes2
answers465
viewsJSP Dynamic Change in Jboss AS 7.1
Hello. When working with JSP I find it very bad to have to pause and start the application every time I need to see a change. Have any way to update page changes without doing all this?…
-
2
votes1
answer72
viewsError running Spring Roo
I am trying to install and run Spring Roo. I downloaded it, unzipped it in the opt folder, gave the permissions in the folder and created the links. But when running the command "Roo" a big error…
-
2
votes2
answers537
viewsAutomatic e-mail picking up data from Oracle database
I have to do a Java project that automatically sends an email taking data such as name, CNPJ, etc. in the Oracle database every day at 10:00 am. How to create this?
java-eeasked 10 years, 2 months ago Wesley Costa 159 -
2
votes1
answer332
viewsStruts2 - Is it possible to access a back end method of an Action in JSP?
I’m using Struts2 to build a web application. I have a method in a class called BaseAction, where all other actions extend it, as written below: public boolean isUserFullyLogged() { final Boolean…
-
2
votes1
answer56
views -
2
votes1
answer257
viewsMultiple projects using a single "properties" file
I have a product that is distributed in several independent MAVEN WEB projects that access a single MYSQL base. I decided to divide it into several projects so that each module stays on a different…
java-eeasked 10 years, 7 months ago dellasavia 977 -
2
votes1
answer85
viewsoutputStream writing a byteArray - XSS validation
I am working with a software that goes through a "Security Application" that indicates the lines of code that are potentially insecure (theoretically). Based on the code below, the application…
-
2
votes1
answer1110
viewsHow does Webservice SOAP/Rest work with JAX-WS?
I spent a whole day studying and finally managed to perform authentication with Webservice SOAP using JAX-WS, using Eclipse generated client. When adding the password and password to the SOAP…
-
2
votes1
answer947
views(Hibernate2) Genericjdbcexception: Could not execute query - Closed session error while browsing the platform
Good afternoon! I have a web application and decided to migrate it to Cloud Google. When I start my Cat, the application runs smoothly, but from a certain time, starts to appear these errors.…
-
2
votes1
answer1016
viewsJSF datatable how to fill columns with List<List<Integer>?
I have the following situation. A vector that will store the values that will be registered in the bean public class PainelControleExtratoVO { public Integer[] demandaEmAberto; public Integer[]…
-
2
votes3
answers658
viewsBusiness rules in JSF
In JSF where would be the best place to define business rules? In the model, in the Managed-bean or in a layer of business rules( I am very reluctant to adopt this last approach), or even to…
-
2
votes2
answers576
viewsAdd folder with images on the glassfish web server
Good afternoon, folks how do I leave a folder on my glassfish server with some pictures? Oh when I need to direct access that url.. Someone’s already done it?
-
2
votes1
answer710
viewsDoubt with Spring dependency injection (injected object returning null)
good afternoon to all. Guys, I have a little problem that I should probably be missing or forgetting the order of something. My case is that I have one two controllers. One of them I call…
-
2
votes0
answers2377
viewsWhat is this error javax.servlet.Servletexception: getOutputStream()?
I am generating a report, the moment I click to issue and it displays this error. Exception: javax.servlet.ServletException: getOutputStream() has already been called for this response at…
-
2
votes1
answer725
viewsProblems with selectOneMenu
I have a table and in this table I have the option to edit. Clicking on the edit option opens the dialog and all fields (columns) of the current row I want to edit are filled in. A list is loaded on…
-
2
votes2
answers303
viewsBacking bind with JSF components
I’m a beginner in Java EE and I’m using an e-book from Algaworks "Java EE 7, with JSF, Primefaces and CDI. Up to ManagedBean occurred normally, but when I started backing bean Java could not find…
-
2
votes0
answers167
viewsDoubt migration JSF 2.1 to JSF 2.2
I migrated my application from JBoss AS 7.1.1 to the Wildfly 8.2 and JSF 2.1 for JSF 2.2. Also use Hibernate 4.3.7, JPA 2.1 and PostgreSQL. I am being able to access my application normally, but…
-
2
votes1
answer337
viewsError while trying to update a Primefaces dialog
I have a button that sits inside a column in a datatable, this button opens a dialog which contains a table with some data. But when I try to give a update=":frmPrin:dialogParecer" the following…
-
2
votes1
answer111
views -
2
votes1
answer314
viewsWhat to do to read a column in excel with very large numbers?
How to do for when reading an excel column whose number is too large and prevent it from being interpreted overflowing? In Excel the column is with the number 26468314801. How is a number he carries…
-
2
votes1
answer1476
viewsERROR Could not open Connection and user root
Is happening these errors below in my application: Note: I am using Maven. Follow an image of how the project structure looks in the eclipse: Follow the mistakes below: out 22, 2015 11:03:58 PM…
-
2
votes1
answer59
viewsConvert Datetime to unixtime
Good morning guys, can anyone help me? I have a Java application and I need to do a conversion.. Where is localDate for unixtime.. How can I do that? This is my localDate: for (Telemetry telemetry :…
-
2
votes1
answer1930
viewsCalculation of hours with Java 8
I was doing some tests with Java 8, and I was trying to calculate the difference between times of two dates. I did it in three ways, but I don’t know which one would be the right one and I’d like…
-
2
votes1
answer1026
viewsMap objects through Hibernate with "decentralized" data
I do not know if the decentralized term of the title is correct, if someone is not willing to change. But let’s get down to business. I have a scenario where I am developing a program that manages…
-
2
votes0
answers55
viewsProblems when closing RAD screen splash (v7.5)
I’m having an unusual problem (who doesn’t?), My Launcher/splash screen opens, but it keeps this state even after I choose the desktop and after RAD loads the project. It only closes when I stop all…