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.
___