Questions tagged as 'java-ee'

2
answers

___ ___ erkimt error occurs when performing resource injection in Bean ______ qstntxt ___

Bean:

%pre%

Page:

%pre%

Exception:

  

javax.servlet.ServletException: An error occurred when performing resource injection on managed bean MBfabricantes       javax.faces.webapp.FacesServlet.service (FacesServlet.java:659)       org.apache.tomcat.websocket.server.WsFilter.doFilter (WsFilter.java:52)

    
______ ___ azszpr28385

The resolution of this was:

In the factory connections, specifically in the method, I put the following command (although my Java version is 7):

%pre%     
______ azszpr31582 ___

An additional to your own answer (This should be a comment, but strangely in some questions I am unable to comment (I am a new user)).

You make DriverManager.registerDriver (Driver driver) redundant. What was happening is that your application's DriverManager was not being notified to register the driver. See the static startup section of the com.mysql.jdbc.Driver class:

%pre%

Not that this is important, but it's the way JDBC Drivers work (they only need to be triggered once to be automatically registered). To avoid a strong direct coupling of your class with the driver, choose to do

%pre%

Usually on an application server, this code snippet is not required.

    
___

Bean: package br.com.drogaria.bean; import java.sql.SQLException; import java.util.ArrayList; import javax.annotation.PostConstruct; import javax.faces.bean.ManagedBean; import javax.faces.bean.ViewScoped; import javax.faces.model.ListDataMode...
asked by 07.08.2014 / 07:08
1
answer

Send a ListEntity in Redirect

I have a List and I need to send it to another page to fill a table, how much the redirect ends the page loads but the table does not fill because the List has been emptied, how do I keep it with the information? MinhaBean @ManagedBean(name...
asked by 06.11.2014 / 16:22
1
answer

How to make it load the complete 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 is opening right, but I need this url t...
asked by 06.03.2014 / 15:02
1
answer

Problems with data modeling with Persistence.xml

I created a college application to create automatic tables by Hibernate with JPA but it gave some error in some tables, which were these; Catalog OrderDAO ProductDAO but is generating the following error, When I click on Catalo...
asked by 25.09.2014 / 01:13
1
answer

How to map a http request parameter to an enum in java?

I am making an ajax request like this: $.ajax({ type : 'POST', url : apiURL + '/play', dataType : "json", data : { against : "ANYBODY" }, success : function(data, textStatus, jqXHR) { // ... }, e...
asked by 15.04.2014 / 22:00
1
answer

FileUnput PrimeFaces does not update the attribute;

I have a repeat structure: <ui:repeat var="item" /> Inside it I print some fields. One of them is <p:fileUpload/> So far so good. The problem is when it's time to do the action, when I click the save button it assigns...
asked by 31.07.2014 / 19:20
2
answers

Servlet attributes for more than one JSP?

I have a Servlet that does the following: L_sessao.setAttribute("Login", usuario); response.sendRedirect("InicioCliente.jsp"); It sends the user name to the HomeClient.jsp page, on this page I can recover it without any problems. But I need...
asked by 16.10.2018 / 20:33
1
answer

Error executing JSF page in Tomcat

Well, I have a problem here that is difficult to solve. I'm trying to list some disciplines on a JSF page, follow the code: DisciplineBean.java @ManagedBean(name="disciplinaBean") @SessionScoped public class DisciplinaBean { private...
asked by 06.01.2015 / 02:53
2
answers

Datatable of primefaces does not update selection variable

Based on the first example of Datatable Selection where a variable (% with% ) I get the selected value when I click on a linhaSelec I decided to mount my implementation but the variable that would have the value of the selected line is...
asked by 25.04.2018 / 20:59
1
answer

WELD-001408: Unsatisfied dependencies for type ServiceLocator with qualifiers @Default

I'm trying to implement a JAX-RS (Jersey) server with DataSource, I've already migrated from Tomcat to GlassFish, and now from GlassFish to WildFly 11, but I'm having the error below that I can not find a solution. >    Caused by: org.jboss.we...
asked by 10.03.2018 / 15:39