Good morning, everyone!
I managed to solve by doing the following:
created a parameter in the report named LOGO_DIR
which matches my system’s image folder
and filled in the report call
Classerelatorio.java ...
FacesContext fc = FacesContext.getCurrentInstance();
ServletContext context = (ServletContext)fc.getExternalContext().getContext();
String path = context.getRealPath(File.separator) + "resources/jasper" + File.separator;
String logo = context.getRealPath(File.separator) + "resources/images" + File.separator;
params.put("SUBREPORT_DIR", path);
params.put("LOGO_DIR", logo);
inside the report, in Jasper, I created a String field that receives the parameter LOGO_DIR + "nameImage.png"
I will reverse the edition, it is not a forum in which we indicate that it was solved in the title, but in marking a response as accepted
– Jefferson Quesado